refactoror / SelBlocks

SelBlocks extension for Selenium IDE
10 stars 7 forks source link

Unexpected Error In For Loop #35

Open saeeprakash opened 6 years ago

saeeprakash commented 6 years ago

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