Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected Error In For Loop #35

Open
saeeprakash opened this issue Jul 6, 2018 · 0 comments
Open

Unexpected Error In For Loop #35

saeeprakash opened this issue Jul 6, 2018 · 0 comments

Comments

@saeeprakash
Copy link

Firefox version:
Selenium version: 2.9.1
SelBlocks version: 2.1

[info] Playing test case CA Dhruva
[info] Executing: |for | i=0;i<=5;i++ | |
[info] Executing: |click | xpath=(//input[@id='radio_1'])[3] | |
[info] Executing: |click | xpath=(//input[@id='radio_2'])[3] | |
[info] Executing: |click | xpath=(//input[@id='radio_3'])[3] | |
[info] Executing: |click | xpath=(//input[@id='radio_4'])[2] | |
[info] Executing: |click | xpath=(//input[@id='radio_5'])[2] | |
[info] Executing: |click | xpath=(//input[@id='radio_6'])[3] | |
[info] Executing: |click | xpath=(//input[@id='radio_7'])[2] | |
[info] Executing: |click | xpath=(//input[@id='radio_8'])[3] | |
[info] Executing: |click | xpath=(//input[@id='radio_9'])[3] | |
[info] Executing: |click | id=submit | |
[info] Executing: |pause | 10000 | |
[info] Executing: |endFor | | |
[error] There was an unexpected Alert! [Score Succesfully Updated
 ]
[info] Test case failed 

Hi I am new to script and implementing for loop in Selenium IDE using selblocks i was struck up with the Unexpected Alert as above. please help in this.

The Script is.
for i=0;i<=5;i++
click xpath=(//input[@id='radio_1'])[3]
click xpath=(//input[@id='radio_2'])[3]
click xpath=(//input[@id='radio_3'])[3]
click xpath=(//input[@id='radio_4'])[2]
click xpath=(//input[@id='radio_5'])[2]
click xpath=(//input[@id='radio_6'])[3]
click xpath=(//input[@id='radio_7'])[2]
click xpath=(//input[@id='radio_8'])[3]
click xpath=(//input[@id='radio_9'])[3]
click id=submit
pause 10000
endFor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant