How to get Xpath of simple text which is outside the HTML Tags? Reference URL: https://agilehelpdoc.blogspot.in/ Reference Screenshot:
How to access Login Screen of timesjobs.com which opens in a pop-up window? URL: http://www.timesjobs.com/ Screen: 1. Navigate to above URL. 2. Click on SIGN IN link present on the top-right corner of the web page.
How to split String if it contains period symbol (.) in between? Problem: I have to write a program which takes file name with any extension as a parameter and it should return the extension of that file.
We can use an Excel sheet as a source of input. We can access data from excel sheet using DataProvider annotation and pass arguments through @Test methods. Mainly this approach is used in Data Driven Framework. Data Driven Framework: A data-driven framework is used to run the same script for a huge amountRead More
How to perform Headless Testing using HtmlUnitDriver in Selenium? Answer: Basically, headless testing is, running a script in the background without any visual of the browser. In simple words, this process doesn’t need any browser. This method can be used on the machines which don’t have any browser installed on them.
This is an small and simple example of Key Driven Framework to execute test cases using excel sheet in Selenium(JAVA). Key Driven framework is based on keywords which are used to control the execution of the script without modifying the actual code. A tester has to just set the keywords whichRead More
iframe is an HTML tag which is used to embed another document or webpage into the current HTML page. We cannot access web elements inside an iframe directly using selenium. We have to first move into the iframe, then only, we can access the elements. This process is called iframe handlingRead More
In our, last post we had learned how to handle iframes on a web page as we can’t access web element present inside an iframe directly. There are multiple ways to handle iframe using selenium. We have to first switch the focus inside the iframe using the switchTo statement onlyRead More
There are few scenarios where we get stuck and unable to locate web element on the page. In this blog I will discuss such scenarios. Here I have taken example of a simple Calendar widget and will learn how to get few type of dates as mentioned below: Print Current date. Use following-sibling to getRead More
XPath stands for XML Path, which helps us to locate any web element using its XML Path or XPath. In the previous lesson we have learnt many ways to locate any web element like HTML Tag id, name, class name etc. When we are unable to identify using any of the mentioned way then weRead More