Validating xpaths

Validating xpaths selenium

To validate whether the xpath we created is valid or not we can go to chrome developer tools and go ... Read More

Partial and complete xpaths

xpaths selenium

Example of complete xpath is below.Complete xpaths are not recommened as if anything on the website ... Read More

Exceptions and Proxy servers handling in firefox

exceptions proxy servers selenium

In order to handle exceptions using firefox driver we create a new profile ``` ProfilesIni allpr ... Read More

Taking screenshot

screenshot selenium

To take screenshot with selenium we can do so using below two lines of code ``` File scrFile = ... Read More

Chrome and Gecko Drivers

chrome driver gecko driver selenium

We make a new project in Eclipse and then go properties ->Java Build path Add external jars and add ... Read More

Chrome options

chrome options selenium

We can make an object of ChromeOptions class ``` ChromeOptions ops = new ChromeOptions(); ``` ... Read More

Custom wait function

custom wait selenium

Below is a custom function in which we pass the xpath of the element we want to click as xpathExpTa ... Read More

Mouse movements in selenium

mouse moverments selenium

In this section we will see how to control the movement of mouse i.e how to move the mouse over a pa ... Read More

Webdriver,Webelement,Action interfaces/classes

Selenium Webelement Action

Webdriver is an interface-All classes that implement webdriver Interface can use its functions on an ... Read More

Implicit wait

implicit wait selenium

We can pause a program for 10 secs by using below line of code ``` Thread.sleep(10000); ``` A ... Read More