Setup Menus in Admin Panel

Technical FAQ’s

In this page, we would place the top, most recently asked Technical queries by our community. This helps to give you quick answers and solutions for your issues and questions.

Q. org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files (x86)\Mozilla Firefox\firefox.exe) on port 7055;
A. Upgrade firefox to 30 if you are using lower version. Also, disable automatic firefox update. Download latest JARs from respective websites
Download FF 30 from here…..n32/en-US/

Q. How to get POI jar? Do I need to install any software to get POI?
A. You can download POI jar files from here
Download zip file and extract on your system. No installation is required.
How to add POI in your Java Project
Open eclipse ->File->Build Path -> External Jar files add here

Q. I would like to know that, in Selenium IDE, are we can record only in Firefox or we can be able to record in any other browser also.
A. IDE is a plugin for firefox browser not for other browsers. So it will work with only FF

Q. ava.lang.IllegalStateException: The path to the driver executable must be set by the system property
A. Use below code to instantiate IE driver
System.setProperty(“”, “D:\\IEDriverServer.exe”);
driver = new InternetExplorerDriver();

Q. What is Selenese?
A. Selenese is the language which is used to write test scripts in Selenium IDE.

Q. What is the difference between “/” and “//” in Xpath?
A. Single Slash “/” – Single slash is used to create Xpath with absolute path i.e. the xpath would be created to start selection from the document node/start node.

Double Slash “//” – Double slash is used to create Xpath with relative path i.e. the xpath would be created to start selection from anywhere within the document.

Q. How do I launch the browser using WebDriver?
A. WebDriver driver = new FirefoxDriver();
WebDriver driver = new ChromeDriver();
WebDriver driver = new InternetExplorerDriver();

Q. How to type in a textbox using Selenium?
A. WebElement username = drv.findElement(“name”));
// entering username

Q. What is the difference between type keys and type commands ?
A. TypeKeys() will trigger JavaScript event in most of the cases whereas .type() won’t. Type key populates the value attribute using JavaScript whereas .typekeys() emulates like actual user typing

Q.Explain what is the difference between findelements () and findelement () ?
A. findelement (): It finds the first element within the current page using the given “locating mechanism”. It returns a single WebElement
findElements () : Using the given “locating mechanism” find all the elements within the current page. It returns a list of web elements.