Selenese commands can have up to a maximum of two parameters: target and Parameters are not required all the time. It depends on how many the command will need. For a complete reference of Selenese commands, click 3 Types of Commands These are commands that directly interact with page elements. Example: the command is an action because you directly interact with the “click” element you are clicking at. Actions The command is also an action because you are putting values into a text “type” box, and the text box shows them to you in return. There is a two-way interaction between you and the text box. They are commands that allow you to store values to a variable. Accessors Example: the command is an accessor because it only the “storeTitle” “reads” page title and saves it in a variable. It does not interact with any element on the page. They are commands that verify if a certain condition is met. 3 Types of Assertions Assert. When an command the test is stopped immediately. “assert” Verify. When a command fails, Selenium IDE logs this failure and “verify” continues with the test execution. WaitFor. Before proceeding to the next command, commands “waitFor” will first wait for a certain condition to become true. Assertions If the condition becomes true within the waiting period, the step passes. If the condition does not become true, the step fails. Failure is logged, and test execution proceeds to the next command. By default, timeout value is set to 30 seconds. You can change this in the Selenium IDE Options dialog under the General tab. Assert vs. Verify
Selenese commands can have up to a maximum of two parameters: target and Parameters are not required all the time. It depends on how many the command will need. For a complete reference of Selenese commands, click 3 Types of Commands Actions These are commands that directly interact with page elements. Example: the “click” command is an action because you directly interact with the element you are clicking at. The “type” command is also an action because you are putting values into a text box, and the text box shows them to you in return. There is a two-way interaction between you and the text box. Accessors They are commands that allow you to store values to a variable. Example: the “storeTitle” command is an accessor because it only “reads” the page title and saves it in a variable. It does not interact with any element on the page. Assertions They are commands that verify if a certain condition is met. 3 Types of Assertions Assert. When an “assert” command the test is stopped immediately. Verify. When a “verify” command fails, Selenium IDE logs this failure and continues with the test execution. WaitFor. Before proceeding to the next command, “waitFor” commands will first wait for a certain condition to become true. If the condition becomes true within the waiting period, the step passes. If the condition does not become true, the step fails. Failure is logged, and test execution proceeds to the next command. By default, timeout value is set to 30 seconds. You can change this in the Selenium IDE Options dialog under the General tab. Assert vs. Verify
Selenium-Notes.docx