Cross-Browser Testing & Parallel Execution In Selenium
Posted in Selenium

Selenium Cross-Browser Testing & Parallel Execution

TestNG in selenium provides a mechanism to minimize the test execution effort by parallel execution of the tests on different browsers simultaneously

Continue Reading Selenium Cross-Browser Testing & Parallel Execution
AUTOMATE WEB TABLE IN SELENIUM
Posted in Selenium

Automate Web Table In Selenium

Web table is a normal table with rows and column, containing some meaningful data. In this tutorial, we will learn how to automate web table using selenium.

Continue Reading Automate Web Table In Selenium
Handle Authentication pop up in Selenium
Posted in Selenium

Handle Authentication pop up in Selenium

An authentication pop up in selenium is similar to alert, where the browser displays a prompt at the top of the screen. The only difference between the authentication pop up and an alert box is

Continue Reading Handle Authentication pop up in Selenium
Handle JavaScript Alert in Selenium
Posted in Selenium

Handle JavaScript Alert in Selenium

Many websites make use of JavaScript alert to draw user’s attention to a specific event. It could be an alert to save the unsaved data if the user hit the back button without saving the form data, an important message, prompt to ask user name, etc. In this tutorial, we will learn how to handle JavaScript alert in selenium.

Continue Reading Handle JavaScript Alert in Selenium
Handle Keyboard Events In Selenium
Posted in Selenium

Handle Keyboard Events In Selenium

Similar to browser navigation commands, selenium also provides certain options to handle keyboard events. This helps in simulation (key press, page up, page down, Ctrl + , etc.) and it appears to the browser that these commands are originating from the keyboard.

Continue Reading Handle Keyboard Events In Selenium
Browser Navigation Commands In Selenium
Posted in Selenium

Browser Navigation Commands In Selenium

Selenium comes preloaded with many cool features and simulating the browser navigation is one of them. It allows a user to simulate forward, back, refresh etc. commands from selenium.

Continue Reading Browser Navigation Commands In Selenium
Send Email Failed Step
Posted in Selenium

Send Email For Failed Step In Selenium

Imagine you have a large automation suite which executes at night at some scheduled time. Skimming through the failed scripts would be a nightmare in the morning. However, Javax mail API make things easier as it could be used to send email for failed step in selenium.

Continue Reading Send Email For Failed Step In Selenium
Re-execute Failed Test Cases
Posted in Selenium TestNG

Execute Failed Test Cases In Selenium Using TestNG

It happens occasionally that a test which was working fine earlier gets failed during execution. If you execute it again, it would get pass. To overcome this issue TestNG provides a listener which would retry to execute failed test cases for a given number of times.

Continue Reading Execute Failed Test Cases In Selenium Using TestNG
Screenshot Failed Test Case
Posted in Selenium TestNG

Take Screenshot Of Failed Test Cases Using Selenium

Screenshots play a vital role in testing. These can be used as evidence for functionality under test, raising a defect or for asking a query etc. During automation, regression suite is usually executed in a remote machine or during off-hours.

Continue Reading Take Screenshot Of Failed Test Cases Using Selenium
Verify the color of an object in selenium
Posted in Selenium

Verify the color of an object in selenium

In web applications, if you leave mandatory fields blank and try to save the page, those fields generally get highlighted in red color. We can use this color property of web elements to identify if any field is left blank.

Continue Reading Verify the color of an object in selenium