if i'm trying to run the below written simple code then firefix will be triggered after this it'll t

79 views
Skip to first unread message

ankit gupta

unread,
Feb 4, 2015, 7:44:08 AM2/4/15
to seleniu...@googlegroups.com
if i'm trying to run the below written simple code then firefix will be triggered after this it'll throw error as bellow  
Note: i feel web driver is not working in mine system,i'm not sure wheather webdriver is working or not :-)

=====================================
import org.openqa.selenium.*;
import org.openqa.selenium.firefox.FirefoxDriver;


public class TestScript01 {

    

    public static void main(String[] args) throws Exception {  
    //Setup Firefox driver    
    WebDriver driver = new FirefoxDriver();
    String baseUrl = "http://www.demo.guru99.com/V4/";
   
    // launch Firefox and direct it to the Base URL
    driver.get(baseUrl);


   // Enter username
   driver.findElement(By.name("uid")).sendKeys("mngr1336");

   // Enter Password
   driver.findElement(By.name("password")).sendKeys("dAnavUq");
   
   // Click Login
   driver.findElement(By.name("btnLogin")).click();


   }
    }
============================================
error
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
addons.xpi DEBUG startup
1423053409095 addons.xpi INFO Mapping fxdr...@googlecode.com to C:\Users\ANKIT~1.GUP\AppData\Local\Temp\anonymous1935881835303654381webdriver-profile\extensions\fxdr...@googlecode.com
1423053409096 addons.xpi DEBUG Ignoring file entry whose name is not a valid add-on ID: C:\Users\ANKIT~1.GUP\AppData\Local\Temp\anonymous1935881835303654381webdriver-profile\extensions\webdriver-staging
1423053409096 addons.xpi INFO Mapping omgff...@omnicommediagroup.com to \\global.com\sysvol\global.com\Tools\OMGFFox\omgffox-cck
1423053409097 addons.xpi INFO Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}
1423053409097 addons.xpi DEBUG Skipping unavailable install location app-system-share
1423053409097 addons.xpi DEBUG Skipping unavailable install location app-system-local
1423053409098 addons.xpi INFO Mapping dpmaxz_ng@jetpack to c:\Program Files (x86)\Hewlett-Packard\HP ProtectTools Security Manager\Bin\BrowserExt\dpchrome
1423053409098 addons.xpi INFO Mapping {D19CA586-DD6C-4a0a-96F8-14644F340D60} to C:\Program Files (x86)\Common Files\McAfee\SystemCore
1423053409098 addons.xpi DEBUG checkForChanges
1423053409099 addons.xpi DEBUG Loaded add-on state from prefs: {"app-profile":{"fxdr...@googlecode.com":{"d":"C:\\Users\\ANKIT~1.GUP\\AppData\\Local\\Temp\\anonymous1935881835303654381webdriver-profile\\extensions\\fxdr...@googlecode.com","e":false,"v":"2.40.0","st":1423053370159,"mt":1423053369875}},"winreg-app-user":{"omgff...@omnicommediagroup.com":{"d":"\\\\global.com\\sysvol\\global.com\\Tools\\OMGFFox\\omgffox-cck","e":false,"v":"1.03","st":1414781546819,"mt":1414778740000}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"36.0","st":1423026331655,"mt":1421927556865}},"winreg-app-global":{"dpmaxz_ng@jetpack":{"d":"c:\\Program Files (x86)\\Hewlett-Packard\\HP ProtectTools Security Manager\\Bin\\BrowserExt\\dpchrome","e":false,"v":"1.0.0.5851","st":1411248965172,"mt":1396050870000},"{D19CA586-DD6C-4a0a-96F8-14644F340D60}":{"d":"C:\\Program Files (x86)\\Common Files\\McAfee\\SystemCore","e":false,"v":"15.1.0","st":1414997043194,"mt":1414734535188}}}
1423053409101 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1423053409103 addons.xpi DEBUG getInstallState changed: false, state: {"app-profile":{"fxdr...@googlecode.com":{"d":"C:\\Users\\ANKIT~1.GUP\\AppData\\Local\\Temp\\anonymous1935881835303654381webdriver-profile\\extensions\\fxdr...@googlecode.com","e":false,"v":"2.40.0","st":1423053370159,"mt":1423053369875}},"winreg-app-user":{"omgff...@omnicommediagroup.com":{"d":"\\\\global.com\\sysvol\\global.com\\Tools\\OMGFFox\\omgffox-cck","e":false,"v":"1.03","st":1414781546819,"mt":1414778740000}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"36.0","st":1423026331655,"mt":1421927556865}},"winreg-app-global":{"dpmaxz_ng@jetpack":{"d":"c:\\Program Files (x86)\\Hewlett-Packard\\HP ProtectTools Security Manager\\Bin\\BrowserExt\\dpchrome","e":false,"v":"1.0.0.5851","st":1411248965172,"mt":1396050870000},"{D19CA586-DD6C-4a0a-96F8-14644F340D60}":{"d":"C:\\Program Files (x86)\\Common Files\\McAfee\\SystemCore","e":false,"v":"15.1.0","st":1414997043194,"mt":1414734535188}}}
1423053409106 addons.xpi DEBUG No changes found
1423053409109 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1423053409110 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1423053409111 addons.manager DEBUG Registering shutdown blocker for OpenH264Provider
1423053409111 addons.manager DEBUG Registering shutdown blocker for PluginProvider
*** Blocklist::_preloadBlocklistFile: blocklist is disabled
1423053410546 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider>

at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:118)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:247)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:112)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:194)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:187)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:183)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:96)
at TestScript01.main(TestScript01.java:29)
Exception in thread "main" org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files (x86)\Mozilla Firefox\firefox.exe) on port 7055; process output follows: 
addons.xpi DEBUG startup
1423053409095 addons.xpi INFO Mapping fxdr...@googlecode.com to C:\Users\ANKIT~1.GUP\AppData\Local\Temp\anonymous1935881835303654381webdriver-profile\extensions\fxdr...@googlecode.com
1423053409096 addons.xpi DEBUG Ignoring file entry whose name is not a valid add-on ID: C:\Users\ANKIT~1.GUP\AppData\Local\Temp\anonymous1935881835303654381webdriver-profile\extensions\webdriver-staging
1423053409096 addons.xpi INFO Mapping omgff...@omnicommediagroup.com to \\global.com\sysvol\global.com\Tools\OMGFFox\omgffox-cck
1423053409097 addons.xpi INFO Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}
1423053409097 addons.xpi DEBUG Skipping unavailable install location app-system-share
1423053409097 addons.xpi DEBUG Skipping unavailable install location app-system-local
1423053409098 addons.xpi INFO Mapping dpmaxz_ng@jetpack to c:\Program Files (x86)\Hewlett-Packard\HP ProtectTools Security Manager\Bin\BrowserExt\dpchrome
1423053409098 addons.xpi INFO Mapping {D19CA586-DD6C-4a0a-96F8-14644F340D60} to C:\Program Files (x86)\Common Files\McAfee\SystemCore
1423053409098 addons.xpi DEBUG checkForChanges
1423053409099 addons.xpi DEBUG Loaded add-on state from prefs: {"app-profile":{"fxdr...@googlecode.com":{"d":"C:\\Users\\ANKIT~1.GUP\\AppData\\Local\\Temp\\anonymous1935881835303654381webdriver-profile\\extensions\\fxdr...@googlecode.com","e":false,"v":"2.40.0","st":1423053370159,"mt":1423053369875}},"winreg-app-user":{"omgff...@omnicommediagroup.com":{"d":"\\\\global.com\\sysvol\\global.com\\Tools\\OMGFFox\\omgffox-cck","e":false,"v":"1.03","st":1414781546819,"mt":1414778740000}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"36.0","st":1423026331655,"mt":1421927556865}},"winreg-app-global":{"dpmaxz_ng@jetpack":{"d":"c:\\Program Files (x86)\\Hewlett-Packard\\HP ProtectTools Security Manager\\Bin\\BrowserExt\\dpchrome","e":false,"v":"1.0.0.5851","st":1411248965172,"mt":1396050870000},"{D19CA586-DD6C-4a0a-96F8-14644F340D60}":{"d":"C:\\Program Files (x86)\\Common Files\\McAfee\\SystemCore","e":false,"v":"15.1.0","st":1414997043194,"mt":1414734535188}}}
1423053409101 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1423053409103 addons.xpi DEBUG getInstallState changed: false, state: {"app-profile":{"fxdr...@googlecode.com":{"d":"C:\\Users\\ANKIT~1.GUP\\AppData\\Local\\Temp\\anonymous1935881835303654381webdriver-profile\\extensions\\fxdr...@googlecode.com","e":false,"v":"2.40.0","st":1423053370159,"mt":1423053369875}},"winreg-app-user":{"omgff...@omnicommediagroup.com":{"d":"\\\\global.com\\sysvol\\global.com\\Tools\\OMGFFox\\omgffox-cck","e":false,"v":"1.03","st":1414781546819,"mt":1414778740000}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"36.0","st":1423026331655,"mt":1421927556865}},"winreg-app-global":{"dpmaxz_ng@jetpack":{"d":"c:\\Program Files (x86)\\Hewlett-Packard\\HP ProtectTools Security Manager\\Bin\\BrowserExt\\dpchrome","e":false,"v":"1.0.0.5851","st":1411248965172,"mt":1396050870000},"{D19CA586-DD6C-4a0a-96F8-14644F340D60}":{"d":"C:\\Program Files (x86)\\Common Files\\McAfee\\SystemCore","e":false,"v":"15.1.0","st":1414997043194,"mt":1414734535188}}}
1423053409106 addons.xpi DEBUG No changes found
1423053409109 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1423053409110 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1423053409111 addons.manager DEBUG Registering shutdown blocker for OpenH264Provider
1423053409111 addons.manager DEBUG Registering shutdown blocker for PluginProvider
*** Blocklist::_preloadBlocklistFile: blocklist is disabled
1423053410546 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider>

Build info: version: '2.40.0', revision: 'fbe29a9', time: '2014-02-19 20:55:11'
System info: host: 'APINANNALECT61', ip: '10.82.126.158', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_25'
Driver info: driver.version: FirefoxDriver
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:130)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:247)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:112)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:194)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:187)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:183)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:96)
at TestScript01.main(TestScript01.java:29)
Caused by: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
addons.xpi DEBUG startup
1423053409095 addons.xpi INFO Mapping fxdr...@googlecode.com to C:\Users\ANKIT~1.GUP\AppData\Local\Temp\anonymous1935881835303654381webdriver-profile\extensions\fxdr...@googlecode.com
1423053409096 addons.xpi DEBUG Ignoring file entry whose name is not a valid add-on ID: C:\Users\ANKIT~1.GUP\AppData\Local\Temp\anonymous1935881835303654381webdriver-profile\extensions\webdriver-staging
1423053409096 addons.xpi INFO Mapping omgff...@omnicommediagroup.com to \\global.com\sysvol\global.com\Tools\OMGFFox\omgffox-cck
1423053409097 addons.xpi INFO Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}
1423053409097 addons.xpi DEBUG Skipping unavailable install location app-system-share
1423053409097 addons.xpi DEBUG Skipping unavailable install location app-system-local
1423053409098 addons.xpi INFO Mapping dpmaxz_ng@jetpack to c:\Program Files (x86)\Hewlett-Packard\HP ProtectTools Security Manager\Bin\BrowserExt\dpchrome
1423053409098 addons.xpi INFO Mapping {D19CA586-DD6C-4a0a-96F8-14644F340D60} to C:\Program Files (x86)\Common Files\McAfee\SystemCore
1423053409098 addons.xpi DEBUG checkForChanges
1423053409099 addons.xpi DEBUG Loaded add-on state from prefs: {"app-profile":{"fxdr...@googlecode.com":{"d":"C:\\Users\\ANKIT~1.GUP\\AppData\\Local\\Temp\\anonymous1935881835303654381webdriver-profile\\extensions\\fxdr...@googlecode.com","e":false,"v":"2.40.0","st":1423053370159,"mt":1423053369875}},"winreg-app-user":{"omgff...@omnicommediagroup.com":{"d":"\\\\global.com\\sysvol\\global.com\\Tools\\OMGFFox\\omgffox-cck","e":false,"v":"1.03","st":1414781546819,"mt":1414778740000}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"36.0","st":1423026331655,"mt":1421927556865}},"winreg-app-global":{"dpmaxz_ng@jetpack":{"d":"c:\\Program Files (x86)\\Hewlett-Packard\\HP ProtectTools Security Manager\\Bin\\BrowserExt\\dpchrome","e":false,"v":"1.0.0.5851","st":1411248965172,"mt":1396050870000},"{D19CA586-DD6C-4a0a-96F8-14644F340D60}":{"d":"C:\\Program Files (x86)\\Common Files\\McAfee\\SystemCore","e":false,"v":"15.1.0","st":1414997043194,"mt":1414734535188}}}
1423053409101 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1423053409103 addons.xpi DEBUG getInstallState changed: false, state: {"app-profile":{"fxdr...@googlecode.com":{"d":"C:\\Users\\ANKIT~1.GUP\\AppData\\Local\\Temp\\anonymous1935881835303654381webdriver-profile\\extensions\\fxdr...@googlecode.com","e":false,"v":"2.40.0","st":1423053370159,"mt":1423053369875}},"winreg-app-user":{"omgff...@omnicommediagroup.com":{"d":"\\\\global.com\\sysvol\\global.com\\Tools\\OMGFFox\\omgffox-cck","e":false,"v":"1.03","st":1414781546819,"mt":1414778740000}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"36.0","st":1423026331655,"mt":1421927556865}},"winreg-app-global":{"dpmaxz_ng@jetpack":{"d":"c:\\Program Files (x86)\\Hewlett-Packard\\HP ProtectTools Security Manager\\Bin\\BrowserExt\\dpchrome","e":false,"v":"1.0.0.5851","st":1411248965172,"mt":1396050870000},"{D19CA586-DD6C-4a0a-96F8-14644F340D60}":{"d":"C:\\Program Files (x86)\\Common Files\\McAfee\\SystemCore","e":false,"v":"15.1.0","st":1414997043194,"mt":1414734535188}}}
1423053409106 addons.xpi DEBUG No changes found
1423053409109 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1423053409110 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1423053409111 addons.manager DEBUG Registering shutdown blocker for OpenH264Provider
1423053409111 addons.manager DEBUG Registering shutdown blocker for PluginProvider
*** Blocklist::_preloadBlocklistFile: blocklist is disabled
1423053410546 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider>

at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:118)
... 7 more

Saravanan

unread,
Feb 5, 2015, 5:27:59 AM2/5/15
to seleniu...@googlegroups.com
Hi

There could be Selenium Jar issue, change it and check.

Thanks

Saravanan

ankit gupta

unread,
Feb 5, 2015, 5:46:37 AM2/5/15
to seleniu...@googlegroups.com
i have change the jar as well buit it's the same

tulsi.tester

unread,
Feb 6, 2015, 12:42:43 AM2/6/15
to seleniu...@googlegroups.com
What version of Selenium and Firefox you were working with. Please see the release notes in seleniumhq.org site for the version support of firefox with the latest updates. I assume that you are using Firefox 35.x version. If it's so please downgrade firefox version and use updated selenium jars that is v 44.0.x


On Wednesday, February 4, 2015 at 6:14:08 PM UTC+5:30, ankit gupta wrote:
if i'm trying to run the below written simple code then firefix will be triggered after this it'll throw error as bellow  
Note: i feel web driver is not working in mine system,i'm not sure wheather webdriver is working or not :-)

=====================================
import org.openqa.selenium.*;
import org.openqa.selenium.firefox.FirefoxDriver;


public class TestScript01 {

    

    public static void main(String[] args) throws Exception {  
    //Setup Firefox driver    
    WebDriver driver = new FirefoxDriver();
    String baseUrl = "http://www.demo.guru99.com/V4/";
   
    // launch Firefox and direct it to the Base URL
    driver.get(baseUrl);


   // Enter username
   driver.findElement(By.name("uid")).sendKeys("mngr1336");

   // Enter Password
   driver.findElement(By.name("password")).sendKeys("dAnavUq");
   
   // Click Login
   driver.findElement(By.name("btnLogin")).click();


   }
    }
============================================
error
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
addons.xpi DEBUG startup
1423053409095 addons.xpi INFO Mapping fxdr...@googlecode.com to C:\Users\ANKIT~1.GUP\AppData\Local\Temp\anonymous1935881835303654381webdriver-profile\extensions\fxdri...@googlecode.com
1423053409095 addons.xpi INFO Mapping fxdr...@googlecode.com to C:\Users\ANKIT~1.GUP\AppData\Local\Temp\anonymous1935881835303654381webdriver-profile\extensions\fxdri...@googlecode.com
1423053409095 addons.xpi INFO Mapping fxdr...@googlecode.com to C:\Users\ANKIT~1.GUP\AppData\Local\Temp\anonymous1935881835303654381webdriver-profile\extensions\fxdri...@googlecode.com

anemuday

unread,
Feb 6, 2015, 11:51:47 AM2/6/15
to seleniu...@googlegroups.com
Hi Ankit,

Get Latest version of Selenium Jar and associate to your test/project. It should work.

Thanks,
Uday
Selenium WebDriver Videos


On Wednesday, 4 February 2015 18:14:08 UTC+5:30, ankit gupta wrote:
if i'm trying to run the below written simple code then firefix will be triggered after this it'll throw error as bellow  
Note: i feel web driver is not working in mine system,i'm not sure wheather webdriver is working or not :-)

=====================================
import org.openqa.selenium.*;
import org.openqa.selenium.firefox.FirefoxDriver;


public class TestScript01 {

    

    public static void main(String[] args) throws Exception {  
    //Setup Firefox driver    
    WebDriver driver = new FirefoxDriver();
    String baseUrl = "http://www.demo.guru99.com/V4/";
   
    // launch Firefox and direct it to the Base URL
    driver.get(baseUrl);


   // Enter username
   driver.findElement(By.name("uid")).sendKeys("mngr1336");

   // Enter Password
   driver.findElement(By.name("password")).sendKeys("dAnavUq");
   
   // Click Login
   driver.findElement(By.name("btnLogin")).click();


   }
    }
============================================
error
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
addons.xpi DEBUG startup
1423053409095 addons.xpi INFO Mapping fxdr...@googlecode.com to C:\Users\ANKIT~1.GUP\AppData\Local\Temp\anonymous1935881835303654381webdriver-profile\extensions\fxdri...@googlecode.com
1423053409095 addons.xpi INFO Mapping fxdr...@googlecode.com to C:\Users\ANKIT~1.GUP\AppData\Local\Temp\anonymous1935881835303654381webdriver-profile\extensions\fxdri...@googlecode.com
1423053409095 addons.xpi INFO Mapping fxdr...@googlecode.com to C:\Users\ANKIT~1.GUP\AppData\Local\Temp\anonymous1935881835303654381webdriver-profile\extensions\fxdri...@googlecode.com
Reply all
Reply to author
Forward
0 new messages