How to get Xpath of simple text which is outside the HTML Tags? Reference URL: https://agilehelpdoc.blogspot.in/ Reference Screenshot:
automation
QnA | How to access Login Screen of timesjobs.com which opens in a pop-up window?
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.
QnA | Difference between Integer and int keywords.
The basic difference between Integer and int is that Integer is a Class whereas int is a data type. int Data Type We already know that int is a primitive data type. It means that these data types are not further breakable. Any variable declared with int data type can store only numeric values inRead More
QnA | How do I get the default value of data type?
There is a simple process to get the default value of data type. Declare data type without any value, try to access it and you will get your answer. Step-1: Declare variables Declare variables without any value and try to print the value of that variable. Step-2: Default value of data type When we tryRead More
QnA | How to split String if it contains period symbol (.) in between?
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.
TestNG – 20 || Run TestNG Program using main() method.
Running a TestNG Program using main() is very simple. We just need to use the object of TestNG class in main() and all set. Till now we have used below steps to run a TestNG program: Create class files and XML file Rightclick on XML file Select Run As Click on TestNG Suite If youRead More
TestNG -19 || Concept of Parallel Execution.
The fundamental concept of parallel execution is based on the fact that each process should have its own processor. To understand this observe the two different scenarios in the below image: Scenario – 1: We have three containers and one truck to move from Source to Destination. If it takes 1 hour to cover theRead More
TestNG – 18 || Multiple Browser and Parallel Execution in TestNG.
Parallel execution of the script on multiple browser can be handled using the TestNG very easily and in a simple way. It means same set of test cases can be run over the more than one web browser. Multiple Browser Handling First of all, we need to understand the concept of Multiple Browser Handling. ItRead More
TestNG – 17 || Passing multiple Parameters in testng xml.
We can also pass parameters via TestNG XML file. These could be accessible using @Parameters annotation. This has been used in combination with the <parameter> tag in XML File. Parameters Annotation Parameters in TestNG XML File The process of using the Parameter is very simple. In the XML file, we have to use <parameter> tagRead More
TestNG – 16 || Access data from Excel sheet using DataProvider.
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