Selenium 2.0A1

41 views
Skip to first unread message

PerfectStorm

unread,
Dec 15, 2009, 2:06:48 PM12/15/09
to webdriver
I seem to be getting "Unable to find browser with id of null when I
open a new browser with firefox 3.5.5. It opens the browser but doesnt
navigate to the url it just throws this exception just curious if
anyone else sees this. I don't get it with ie.

PerfectStorm

unread,
Dec 15, 2009, 3:01:36 PM12/15/09
to webdriver
UPDATE

It only happens when I pass in a profile. If I leave out the profile
it runs fine.

Simon Stewart

unread,
Dec 15, 2009, 4:10:50 PM12/15/09
to webd...@googlegroups.com
The stack trace would be a really useful debugging aid....

Simon
> --
>
> You received this message because you are subscribed to the Google Groups "webdriver" group.
> To post to this group, send email to webd...@googlegroups.com.
> To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.
>
>
>

PerfectStorm

unread,
Dec 15, 2009, 4:24:51 PM12/15/09
to webdriver
Sorry about that. Here it is

org.openqa.selenium.WebDriverException: Unable to find browser with id
null
System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1',
java.version: '1.5.0_18'
Driver info: driver.version: firefox
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.openqa.selenium.firefox.Response.ifNecessaryThrow
(Response.java:105)
at org.openqa.selenium.firefox.FirefoxDriver.executeCommand
(FirefoxDriver.java:346)
at org.openqa.selenium.firefox.FirefoxDriver.sendMessage
(FirefoxDriver.java:327)
at org.openqa.selenium.firefox.FirefoxDriver.sendMessage
(FirefoxDriver.java:323)
at org.openqa.selenium.firefox.FirefoxDriver.fixId(FirefoxDriver.java:
365)
at org.openqa.selenium.firefox.FirefoxDriver.<init>
(FirefoxDriver.java:145)
at org.openqa.selenium.firefox.FirefoxDriver.<init>
(FirefoxDriver.java:118)
at org.openqa.selenium.firefox.FirefoxDriver.<init>
(FirefoxDriver.java:110)
at
com.gsicommerce.webstore.webdriver.utility.BrowserTypeFactory.getBrowserInstance
(BrowserTypeFactory.java:62)
at
com.gsicommerce.webstore.webdriver.utility.BrowserTypeFactory.getBrowserInstance
(BrowserTypeFactory.java:29)
at
com.gsicommerce.webstore.webdriver.utility.Common.newWebDriverAtHomepage
(Common.java:43)
at
com.gsicommerce.webstore.webdriver.checkout.CheckoutVisa.testStandardVisaCheckout
(CheckoutVisa.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
at org.junit.internal.runners.MethodRoadie.runTestMethod
(MethodRoadie.java:98)
at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:
79)
at
org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters
(MethodRoadie.java:87)
at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:
77)
at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod
(JUnit4ClassRunner.java:88)
at org.junit.internal.runners.JUnit4ClassRunner.runMethods
(JUnit4ClassRunner.java:51)
at org.junit.internal.runners.JUnit4ClassRunner$1.run
(JUnit4ClassRunner.java:44)
at org.junit.internal.runners.ClassRoadie.runUnprotected
(ClassRoadie.java:27)
at org.junit.internal.runners.ClassRoadie.runProtected
(ClassRoadie.java:37)
at org.junit.internal.runners.JUnit4ClassRunner.run
(JUnit4ClassRunner.java:42)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run
(JUnit4TestReference.java:45)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run
(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run
(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main
(RemoteTestRunner.java:196)
> > For more options, visit this group athttp://groups.google.com/group/webdriver?hl=en.- Hide quoted text -
>
> - Show quoted text -

Simon Stewart

unread,
Dec 15, 2009, 4:40:11 PM12/15/09
to webd...@googlegroups.com
If you go to the running Firefox instance and look at the installed
extensions, which version of the webdriver extension are you using?
You can find out by going to "Tools -> Add-ons"

Simon

PerfectStorm

unread,
Dec 16, 2009, 1:01:21 AM12/16/09
to webdriver
I finally uninstalled firefox and reinstalled it did not seem to work
when i only removed the extension. I am seeing another weird issue I
am navigating to an https site and it won't allow me to confirm an
exception and move on. I can get it to work if I remove firefox driver
extension.
> > com.gsicommerce.webstore.webdriver.utility.BrowserTypeFactory.getBrowserIns­tance
> > (BrowserTypeFactory.java:62)
> >        at
> > com.gsicommerce.webstore.webdriver.utility.BrowserTypeFactory.getBrowserIns­tance
> > (BrowserTypeFactory.java:29)
> >        at
> > com.gsicommerce.webstore.webdriver.utility.Common.newWebDriverAtHomepage
> > (Common.java:43)
> >        at
> > com.gsicommerce.webstore.webdriver.checkout.CheckoutVisa.testStandardVisaCh­eckout
> >> > For more options, visit this group athttp://groups.google.com/group/webdriver?hl=en.-Hide quoted text -

Eran M.

unread,
Dec 16, 2009, 6:48:20 AM12/16/09
to webd...@googlegroups.com
Hi,

The WebDriver extension attempts to handle untrusted SSL certificates itself, which is why you may not be able to change it manually. You could set the FirefoxProfile not to allow untrusted SSL certificates and add this exception yourself. Can you specify the reason this SSL certificate is invalid? (has it expired, does the domain name not match, etc).

Eran

2009/12/16 PerfectStorm <john.m...@gmail.com>

PerfectStorm

unread,
Dec 16, 2009, 10:16:18 AM12/16/09
to webdriver
Your suggestion worked. When I set the profile to accept certificates
to false I was able to bypass the certificate error manually. The
domain has an invalid security certificate(SSL_ERROR_BAD_CERT_DOMAIN).

Do I need to add a defect for this?

On Dec 16, 6:48 am, "Eran M." <eran....@gmail.com> wrote:
> Hi,
>
> The WebDriver extension attempts to handle untrusted SSL certificates
> itself, which is why you may not be able to change it manually. You could
> set the FirefoxProfile not to allow untrusted SSL certificates and add this
> exception yourself. Can you specify the reason this SSL certificate is
> invalid? (has it expired, does the domain name not match, etc).
>
> Eran
>
> 2009/12/16 PerfectStorm <john.majc...@gmail.com>
> > webdriver+...@googlegroups.com<webdriver%2Bunsubscribe@googlegroups­.com>
> > .
> > > >> > For more options, visit this group athttp://
> > groups.google.com/group/webdriver?hl=en.-Hide quoted text -
>
> > > >> - Show quoted text -
>
> > > > --
>
> > > > You received this message because you are subscribed to the Google
> > Groups "webdriver" group.
> > > > To post to this group, send email to webd...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > webdriver+...@googlegroups.com<webdriver%2Bunsubscribe@googlegroups­.com>
> > .
> > > > For more options, visit this group athttp://
> > groups.google.com/group/webdriver?hl=en.- Hide quoted text -
>
> > > - Show quoted text -
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "webdriver" group.
> > To post to this group, send email to webd...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > webdriver+...@googlegroups.com<webdriver%2Bunsubscribe@googlegroups­.com>
> > .
> > For more options, visit this group at

Simon Stewart

unread,
Dec 16, 2009, 10:52:06 AM12/16/09
to webd...@googlegroups.com
"if you remove the firefox extension"? You really shouldn't be
installing that extension yourself because we change the wire protocol
and implementation on a regular basis. For the record, webdriver
handles setting up the extension itself, and has done for a long time
now.

So, again, which version of the firefox extension does Firefox think
is installed? If it's not version "2.0a1" then you're heading down the
wrong path.

Simon

Eran M.

unread,
Dec 16, 2009, 11:05:13 AM12/16/09
to webd...@googlegroups.com
Please update the existing one - http://code.google.com/p/selenium/issues/detail?id=116

Thanks,
Eran

2009/12/16 PerfectStorm <john.m...@gmail.com>
To unsubscribe from this group, send email to webdriver+...@googlegroups.com.

PerfectStorm

unread,
Dec 16, 2009, 11:34:42 AM12/16/09
to webdriver
It was saying it was 2.0a1 but I was still getting the error. I
reinstalled firefox without extensions and ran webdriver to install it
again and it fixed it. I did not attempt to install it myself.
> >> >> > For more options, visit this group athttp://groups.google.com/group/webdriver?hl=en.-Hidequoted text -

Simon Stewart

unread,
Dec 16, 2009, 11:55:38 AM12/16/09
to webd...@googlegroups.com
OK, that's cool :) You had me worried there for a minute!

Simon
Reply all
Reply to author
Forward
0 new messages