Posts

Showing posts with the label automation framework

Selenium 4 Release / Webdriver latest release

Image
Selenium 4 is all set to release this Christmas.  Simon Stewart  (a founding member of Selenium) officially announced it at the recently held Selenium conference in Bangalore. Some major changes in the upcoming Selenium version 4 have been revealed. It’s time to get ahead of the curve and figure out what is going to be changed, added, and deprecated. In this article, we will take a look at a few important features and give some insight on updates you can expect for your automation framework. W3C WebDriver Standardization The Selenium 4 WebDriver will be completely W3C Standardized. The WebDriver API has grown to be relevant outside of Selenium. It is used in multiple tools for automation. For example, it’s used heavily in mobile testing through tools such as Appium and iOS Driver. The W3C standard will encourage compatibility across different software implementations of the WebDriver API. Let’s take an example of how Selenium Grid communicates with Driver executables a...

WebDriver Event Listeners

Image
WebDriver Event Listeners Selenium WebDriver provides a very good framework for tracking the various events that happen while you're executing your test scripts using WebDriver. Many navigation events that get fi red before and after an event occurs (such as before and after navigating to a URL, before and after browser back-navigation, and so on) can be tracked and captured How it works? The Listeners use to listen for the events in the registered webdriver.  It can be any type of event or action. Say, page navigation, element click, changing values in a text field (analogy to javascript onXYZ () series methods) and even exceptions. To enable this feature, Create our own user defined Event listener class Create an EventFiringWebDriverobject by means of webdriver instance, And register the Listener to the EventFiringWebDriver instance. How to create your own event listener classes: You can create a  event listener class in tw...

What qualities should have in your automation framework

The following are some qualities should have in your automation framework. Maintainability  Portability  Flexibility  Robustness  Scalability  Reliability  Usability  Performance