Selenium Tips and Tricks (to be updated)

for best practices when writing automation code. refer: Best practices when writing automation code

1. Dont use static drivers

Static drivers are a bad idea as explained by Simon Stewart, the creator of Selenium WebDriver.

2. Don’t use multiple locators for similar elements

3. If the element is not in the viewport, scroll to it with Javascript

4. sendKeys() can have multiple parameters

5. wait until the number of results is greater than 0

One thought on “Selenium Tips and Tricks (to be updated)”

Leave a comment