Selenium Tips and Tricks
Tips and tricks that work with Selenium WebDriver and Java
Compound class names not permitted?? What the ….
You want to find an element by class name and use very straightforward code:
By buttonClass = By.className(“aaa bbb ccc ddd”);
WebElement button = wait.until(elementToBeClickable(buttonClass));...
What to do if clear() does not clear the text box
You want to do the simplest thing ever with Selenium.
Find a textbox and save it as web element.
Clear the existing value.
Dont change, extend
Test automation is development and it is all about writing good code.
Good code follows principles such as: