Whilst I find the WebDriver API useful, I also find it lacking in certain methods that I wish to do repeatedly throughout my tests. For example, using the driver.findElement(selector).click() method on a WebElement is troublesome when you are automating dynamic JavaScript driven single-page application (SPA) as you’ll often come across ‘stale element’ exceptions as the DOM … Continue reading “Adding your own WebDriverJs helper methods”

https://watirmelon.com/2016/08/02/adding-your-own-webdriverjs-helper-methods/