Using if / else in selenium ide

前端 未结 2 1201
萌比男神i
萌比男神i 2020-12-06 05:05

I have a checkbox that I\'m trying to click in Selenium IDE - but only if it\'s not already active.

I\'m using Selenium IDE to create my tests, and htmlsuite to run

2条回答
  •  时光说笑
    2020-12-06 06:10

    Try this:

    **storeTextPresent || [some_value] || [variable_name]**
    
    **gotoIf || storedVars['variable_name']** == true || **goto_label_name**
    

    // Command to execute if the condition is not met

    **label goto_label_name** 
    

    // This is where the script will jump to when // Command to execute if the condition is met, this part may be off course unrelated to the initial condition

    You'll need to have installed the Flow Control plugin for Selenium IDE.

提交回复
热议问题