Skip to content

Unexpected Error In For Loop #35

@saeeprakash

Description

@saeeprakash

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions