0
votes

When I am trying to run script with selenium I am getting the following error

Exception in thread "main" org.openqa.selenium.WebDriverException: java.io.FileNotFoundException: D:\Shantu!!!!!!! (The system cannot find the file specified) Build info: version: '2.49.1', revision: '7203e46', time: '2016-01-21 17:35:35' System info: host: 'ghijkl-ab562296', ip: '192.168.43.128', os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version: '1.8.0_40' Driver info: driver.version: FirefoxDriver at org.openqa.selenium.firefox.FirefoxProfile.onlyOverrideThisIfYouKnowWhatYouAreDoing(FirefoxProfile.java:132) at org.openqa.selenium.firefox.FirefoxProfile.(FirefoxProfile.java:85) at org.openqa.selenium.firefox.FirefoxProfile.(FirefoxProfile.java:78) at org.openqa.selenium.firefox.FirefoxProfile.(FirefoxProfile.java:67) at org.openqa.selenium.firefox.FirefoxDriver.getProfile(FirefoxDriver.java:288) at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:264) at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:119) at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:218) at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:211) at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:207) at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:120) at practicePackage.New.main(New.java:11) Caused by: java.io.FileNotFoundException: D:\Shantu!!!!!!! (The system cannot find the file specified) at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.(Unknown Source) at java.util.zip.ZipFile.(Unknown Source) at java.util.jar.JarFile.(Unknown Source) at java.util.jar.JarFile.(Unknown Source) at sun.net.www.protocol.jar.URLJarFile.(Unknown Source) at sun.net.www.protocol.jar.URLJarFile.getJarFile(Unknown Source) at sun.net.www.protocol.jar.JarFileFactory.get(Unknown Source) at sun.net.www.protocol.jar.JarURLConnection.connect(Unknown Source) at sun.net.www.protocol.jar.JarURLConnection.getInputStream(Unknown Source) at java.net.URL.openStream(Unknown Source) at org.openqa.selenium.firefox.FirefoxProfile.onlyOverrideThisIfYouKnowWhatYouAreDoing(FirefoxProfile.java:130) ... 11 more

2
please provide the code..murali selenium
Please find the code below package practicePackage; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; public class New { public static void main(String[] args) { // TODO Auto-generated method stub WebDriver driver = new FirefoxDriver(); driver.get("google.co.in/…); } }user3415045
please check answer..thanksmurali selenium

2 Answers

1
votes

It looks like the exception is thrown when you are trying to test the application using a specific firefox profile that you have created.

0
votes

When ever trying to get any URL, we need to provide complete URL means including with http://...

    WebDriver driver=new FirefoxDriver();
    driver.get("http://www.google.com");

Can you please try like this.

Thank You, Murali