![]() ![]() This all goes in the target input field of the if command. This can consist of variables created from prior JavaScript expressions in your test. This is the opening command for a conditional block.Īlong with it you provide a JavaScript expression you would like to evaluate. Conditional BranchingĬonditional branching enables you to change the behavior in your test. ![]() Here are each of the available control flow commands accompanied by their companion and/or closing commands. Available CommandsĬontrol Flow commands work by specifying opening and closing commands to denote a set (or block) of commands. ![]() You can also use JavaScript expressions directly in the control flow commands. These variables can be used in a control flow command. You can use the execute script or execute async script commands to run a snippet of JavaScript at any point during your test and store the result in a variable. JavaScript ExpressionsĬonditions in your application are checked by using JavaScript expressions. This enables you to execute commands (or a set of commands) only when certain conditions in your application are met, or execute command(s) repeatedly based on pre-defined criteria. Selenium IDE comes with commands that enable you to add conditional logic and looping to your tests. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |