I have been posting recently more on medium.com.
See below a list of the recent articles.
I hope that you find them useful.
How to Create Self Logging Selenium Tests
There are a few options here.
One is using the EventFiringDriver class from the Selenium WebDriver API.
The other is about creating custom element classes for each type of element.
How Would I Convert Myself from Manual Tester to Test Automation Engineer?
Someone asked me this intriguing question after a recent meetup.
So I started thinking about I would do it.
What Test Automation Skills Will Be In Demand in 5 Years?
What should a manual tester learn to have a good and long automation career?
Which skills are better for the long run?
Selenium WebDriver Interview Questions
- Why should a company implement test automation at all?
- Describe page object model.
- What are all different ways of finding an element using Selenium WebDriver?
- How do you wait until the title and url of a page are both correct?
- After opening the home page of a site, a popup is displayed randomly. How do you handle this popup?
What Are Test Automation Good Practices?
Test automation is development so it follows all good practices for coding.
But it should follows also good test automation practices as well.
An SDET is a developer and not a tester
Test automation is a development discipline.
It is not a testing one.
How to Go from Manual Test to a Selenium Automated Test?
Step by step approach for decomposing a manual test case to a test case suitable for test automation.
Hi Alex. I have purchased all your kindle ebooks and feel that you have one of the better contents on Automation framework design (i say automation since the same concepts can be applied to even desktop or mobile apps as well).
I had a few question on the page objects that return other page objects.
In your books, you check if the page is loaded inside the cTor of the page itself. I am finding this to be a bit limiting. In my application framework, the login page has a goToMainPage method which returns an instance of the MainPage as part of the method’s signature. However, for some users, the application may present a “FirstTimeUser” dialog which prompts the user to setup password/profiles and other sundries. This dialog may or may not be displayed depending on if this user has logged in before or not.
Lets say that i want to check if this dialog is displayed and handle it inside the LoginPage.goToMainPage method itself.
If we go with the approach of checking for the page’s existance inside the Page’s ctor itself, then i cant check if the Dialog is displayed since everytime i instantiate the dialog, if its not displayed, it will throw an error. Handling this dialog will require instantiation and then calling its “isDisplayed” method before calling other relevant methods on it. However, for consistancy sake, this will mean that all methods that return other methods will need to instantiate the target page’s class and then call the TargetPage.isDisplayed() method and throw an exception if its not displayed, which, which also seems semi ideal since now the job of determining if a page is loaded and throw an exception is the responsibility of the calling page.
I wanted to know what your thoughts on the matter are i.e. what approach do you use and generally prescribe?