How to Amend the JavaScript of the Web Application Under Test With WebDriver
Amending the page under test can introduce risk, but if we know what we are doing, then it can make automating some conditions easier.
How to Wait with WebDriver
How to synchronise on application state? How to Wait with WebDriver? Thread.sleep is not the answer, so what is?
How to Trigger Blur Event with WebDriver Java?
Sometimes we need to find alternative ways to interact with a page becuase buttons might need more than a click.
How to highlight elements in use with Selenium WebDriver?
How can we highlight the elements in use with Selenium WebDriver?
Data sharing abstractions
TLDR; use abstractions for precision and create new abstraction layers which model state and data flow rather than adding it to lower level classes.
This post was created as a response to a question I was asked over email regarding approaches for modelling data re-use in abstractions.
How to Bypass .click() and issue a click event
For the first time, in a long time, I’ve had to bypass WebDriver click() method and use JavaScript to issue a click event.
In this post I’ll explain why, and look at the pros and cons of doing so.
Question: Can selenium be used for real world testing? & Does it take longer than manual?
TLDR; Question: Can selenium be used for real world testing? And does it take longer to create different scenarios/permutations than just testing the system manually? A: Yes, Probably
How to Debug WebDriver JavascriptExecutor in Java
TLDR; JavascriptExecutor requires us to learn JavaScript and use the Browser Console, and check your locator assumptions using FirePath
Question: What is the best Page Object framework for Java?
TLDR; Q: what is the best Page Object framework? A: I don’t know. I don’t use any
How to investigate and debug a Selenium WebDriver `@Test` error
Here’s the situation. You’ve written some code to automatically execute your application. You’re using Selenium WebDriver. Bam. Something goes wrong. You don’t know what to do. Here are some tips.