Selenium User Extensions

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.