Quality Testing

Quality is delighting customers

selenium with test NG:Throwing org.openqa.selenium.firefox.NotConnectedException:

Views: 394

Reply to This

Replies to This Discussion

Actually i am facing a problem while handling web driver program under eclipse showing an exception error as follows .

The firefox version, i am using  is firefox 32.0.3.

selenium java 2.39

selenium server stand alone 2.43.1, (al lthe latest version which is available )

i used to check  simple program below ,

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;

public class Google {

public static WebDriver driver =new FirefoxDriver();

public static void GooglePage(){
driver.get("http://www.google.com");
WebElement element = driver.findElement(By.name("q"));
element.sendKeys("selenium");
element.submit();
System.out.println("Page title is: " + driver.getTitle());
driver.quit();

}
public static void main(String[] args)

{
GooglePage();
}

}

and the error is as follows ,

rg.openqa.selenium.firefox.NotConnectedException: Unable to connect to
host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
*** LOG addons.manager: Application has been upgraded
*** LOG addons.xpi: startup
*** LOG addons.xpi: Skipping unavailable install location app-system-local
*** LOG addons.xpi: Skipping unavailable install location app-system-share
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on
ID:
C:\Users\kishore\AppData\Local\Temp\anonymous2017171235075040456webdriver-profile\extensions\webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi-utils: Opening database
*** LOG addons.xpi-utils: Creating database schema
*** LOG addons.xpi: New add-on fxd...@...com installed in
app-profile
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
*** LOG addons.xpi: New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd}
installed in app-global
*** LOG addons.xpi: New add-on url...@...com installed in
winreg-app-global
*** LOG addons.xpi: New add-on vir...@...com installed in
winreg-app-global
*** LOG addons.xpi: New add-on con...@...com installed in
winreg-app-global
*** LOG addons.xpi: New add-on ant...@...com installed in
winreg-app-global
*** LOG addons.xpi: New add-on onl...@...com installed in
winreg-app-global
*** LOG addons.xpi: Updating database with changes to installed add-ons
*** LOG addons.xpi-utils: Updating add-on states
*** LOG addons.xpi-utils: Writing add-ons list
*** LOG addons.manager: shutdown
*** LOG addons.xpi: shutdown
*** LOG addons.xpi-utils: shutdown
*** LOG addons.xpi-utils: Database closed
*** LOG addons.xpi: startup
*** LOG addons.xpi: Skipping unavailable install location app-system-local
*** LOG addons.xpi: Skipping unavailable install location app-system-share
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on
ID:
C:\Users\kishore\AppData\Local\Temp\anonymous2017171235075040456webdriver-profile\extensions\webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi: No changes found

at
org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:106)
at
org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:244)
at
org.openqa.selenium.remote.RemoteWebDriver.(FirefoxDriver.java:190)
at org.openqa.selenium.firefox.FirefoxDriver.(FirefoxDriver.java:179)
at org.openqa.selenium.firefox.FirefoxDriver.(Google.java:10)

Please any one help me to fix the issue ....(the browser path and all are correct ):)

But i wish to know the  (firefox and  selenium compatibilities ) available for the safe run and any remedy for solving the comfortable run on latest version of (firefox+selenium )

This issue may happen because of your Webdriver is not recognizing the firefox browser. To resolve this issue, you have to download latest .jar files from seleniumhq.org.

Can you please try the same code with latest jar files (Version: 2.44). 

HI Dona,

Use Firefox 31.0 version u did not get this type of issue.

@Dona this is compatibility problem 

RSS

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2019   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service