Selenium User Extensions
It's easy to extend the Selenium IDE to add custom actions, assertions and positioning, policies, which are selenium object prototypes by adding methods, with the help of JavaScript. At startup, selenium automatically looks through these prototype methods, using the name pattern to identify which actions, assertions, and locators are.
Let's use JavaScript to add a ' while ' loop in the selenium IDE.
Step 1: To add a JS file, first navigate to Https://github.com/darrenderidder/sideflow/blob/master/sideflow.js and copy the script and location to save it in the local folder as " Sideflow.js ", as shown in.
2nd step: Start the Selenium IDE now and navigate to options >> options as shown in.
3rd Step: Click on the "Selenium Core Extensions" area under the "Browse" button and point to the JS file we have saved in step 1th.
4th Step: Restart the Selenium IDE.
5th step: Now there will be a chance to get some more commands, such as "Label" "while" and so on
6th step: Now, we create a loop within the Selenium IDE, which is capable of executing as shown in.
Selenium User Extensions