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
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 poi-bin-3.12-20150511.zip 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 webdriver.ie.driver system property
A. Use below code to instantiate IE driver
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(By.id(â€œnameâ€));
// entering username
Q. What is the difference between type keys and type commands ?
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.