Selenium Basic
2

Step by step selenium – step 4, Finding X-path…1/2

In Selenium test automation, if webobject properties does not have id, name, class then we left with 2 options- Option 1 calculate xpath Option 2 Calculate XssSelector In this post, we will calculate about the xpath and various XPath expression for webobjects whose attributed are changing dynamically. There are 2 …

Selenium Basic
1

Step by step selenium – step 3, what is findelement method

Abstract- So far, we have learned how to launch a web browser, entering values in a text box and clicking button. In this post, we will learn about findelement method. Test automation is all about get and set, which means get from web and set into web. Talking more specifically- …

Selenium Basic

Step by step selenium – step 2 -How to enter value in text box and how to click a button.

Abstract- In Previous post, we have learnt how to launch a web-browser in selenium. In this post we will learn how to enter values in a text box and how to click a button. We will be using chrome browser for this posts well. package TestNG_Classes; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; …

Selenium Basic

Step by step selenium – step 1, How to launch a web browser

Introduction – In this blog post, we will see how to run first test in selenium and what are necessary configuration required for invoking browser. There are 2 basic configuration to invoke a browser. First step, download and configure selenium standalone jar. Visit -https://www.seleniumhq.org/download/ , Refer below screenshot. Config the …

Test Automation
1

What is ITestListner interface and its Use in Selenium

There are several interfaces available in TestNG that allow you to modify TestNG’s behavior or to give test scripts additional strength. These interfaces are broadly called “TestNG Listeners”. Here are a few listeners which are commonly used: 1- IAnnotationTransformer 2- IAnnotationTransformer2 3- IHookable 4- IInvokedMethodListener 5- IMethodInterceptor 6- IReporter 7- …

Test Automation

How to Capture Screenshot in Selenium Webdriver-3 different ways

Abstract– Capturing screenshot is an essential feature of a test automation framework, They help in defect analyses once after test execution is over. In this blog post we will see how to capture screenshot, there are different ways to capture screenshots. Which includes- 1- Capture full Page 2- Capturng full …

Test Automation

What is Headless browser automation

Hello Readers, In this post we will read about headless browser automation and how to use or invoke different headless browser using selenium. First of all lets understand What is a headless browser? A headless browser is a web-browser without a GUI-Graphical User Interface. The major difference with browser having …

Test Automation

Selenium-Easy way of finding broken/Error links

Hello Readers, In this blog post, we will see how to use selenium in finding status of various links present over a web page. HTTP response status codes indicate whether a specific HTTPRequest has been successfully completed. Responses are grouped in five classes: informational responses, successful responses, redirects, client errors, …

Automation by Artifical Intelligence
Test Automation

TestNG-Definition, Examples and its Usage

TestNG is a testing framework inspired from JUnit and NUnit, its existing features has make it more powerful. TestNg provide seamless integration with Jira, Jenkins, Cucumber, Maven etc It has given rich libraries for better test development to Software test developers . Some of the common features(Referred testng.org) of TestNg …

Test Automation

How to handle Stale Element Reference exception in Selenium Webdriver

In this post we will see how to handle how to handle stale element reference exception. First of all we should understand what is stale element – Stale Element means an old element or no longer available element. Assume there is an element that is found on a web page …