Mostly Used Commands in Selenium

Creating New Instance of Firefox Driver WebDriver driver = new FirefoxDriver(); Above given syntax will create new instance of Firefox driver Command To Open URL In Browser driver.get(“”); This syntax will open specified URL of software web application in web browser. Clicking on any element or button of webpage driver.findElement(“submitButton”)).click(); Above given syntax will click… Continue reading Mostly Used Commands in Selenium


What is XPath There is an XML document and if you want to navigate throughout the document and search an element or attribute in the xml you need a query and that query is XPath. Hence XPath is a query language used to traverse through an XML document. It is used commonly to search particular… Continue reading XPath

JavaScriptExecutor in Selenium

What is JavaScriptExecutor JavaScriptExecutor is an interface which helps to execute Javascript through selenium driver. It has two methods ‘executescript’ & ‘executeAsyncScript’ to run JavaScript in the context of the currently selected frame or window. This belongs to the package org.openqa.selenium that mean you have to import org.openqa.selenium.JavascriptExecutor; Why we Use? Javascript plays very important… Continue reading JavaScriptExecutor in Selenium