NS_ERROR_FAILURE in new test using old, stable code

179 views
Skip to first unread message

dkellis

unread,
Sep 6, 2010, 12:34:49 PM9/6/10
to webdriver
Hello,
I have a new test that's getting NS_ERROR_FAILURE after calling a
method that has been stable for months. The method works fine for
dozens of existing tests.
Previous posts suggest that this error is in conjunction with using
cookies however none of the tests use WebDriver to manipulate cookies.
Can someone please suggest a course of action here?

WebDriver Alpha 5
Windows XP Pro
NetBeans IDE 6.8 (Build 200912041610)
Java: 1.6.0_18; Java HotSpot(TM) Client VM 16.0-b13
FireFox 3.6.8

Alpha 3 showed the error so I upgraded to Alpha 5 but that shows the
same error.

Thanks,
Dave

Testcase:
test_SaveAs_Private_DefaultFolder(com.xxx.wb.webdriver.user.SaveAs):
Caused an ERROR

[Exception... "Component returned failure code: 0x80004005
(NS_ERROR_FAILURE) [nsINativeEvents.click]" nsresult: "0x80004005
(NS_ERROR_FAILURE)" location: "JS frame ::
file:///C:/DOCUME~1/DAVEEL~1/LOCALS~1/Temp/webdriver3521232324423808271profile/extensions/fxdr...@googlecode.com/components/driver-component.js
->
file:///C:/DOCUME~1/DAVEEL~1/LOCALS~1/Temp/webdriver3521232324423808271profile/extensions/fxdr...@googlecode.com/components/wrappedElement.js
:: anonymous :: line 82" data: no] (Note: The stack trace from the
server side is missing. The locally-generated stack trace is useless.)

java.lang.UnsupportedOperationException: [Exception... "Component
returned failure code: 0x80004005 (NS_ERROR_FAILURE)
[nsINativeEvents.click]" nsresult: "0x80004005 (NS_ERROR_FAILURE)"
location: "JS frame ::
file:///C:/DOCUME~1/DAVEEL~1/LOCALS~1/Temp/webdriver3521232324423808271profile/extensions/fxdr...@googlecode.com/components/driver-component.js
->
file:///C:/DOCUME~1/DAVEEL~1/LOCALS~1/Temp/webdriver3521232324423808271profile/extensions/fxdr...@googlecode.com/components/wrappedElement.js
:: anonymous :: line 82" data: no] (Note: The stack trace from the
server side is missing. The locally-generated stack trace is useless.)

at java.lang.reflect.Constructor.newInstance(Constructor.java:
513)
at
org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:
104)
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:
340)
at
org.openqa.selenium.firefox.FirefoxDriver.execute(FirefoxDriver.java:
237)
at
org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:
186)
at
org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:
55)
at com.xxx.wb.webdriver.lib.TestBase.myClick(TestBase.java:987)

Guillaume

unread,
Sep 27, 2010, 9:37:20 AM9/27/10
to webdriver
Hello,

I have the same error on a test developped on top of firefox's
webdriver.

I'm using WebDriver alpha5 // win7 // Eclipse 3.6 // JRE6 // Firefox
3.6.10

Here is the stacktrace that i am getting :

java.lang.UnsupportedOperationException: [Exception... "Component
returned failure code: 0x80004005 (NS_ERROR_FAILURE)
[nsINativeEvents.click]" nsresult: "0x80004005 (NS_ERROR_FAILURE)"
location: "JS frame ::
file:///C:/Users/gtailleb/AppData/Local/Temp/webdriver5022435231765259130profile/extensions/fxdr...@googlecode.com/components/driver-component.js
->
file:///C:/Users/gtailleb/AppData/Local/Temp/webdriver5022435231765259130profile/extensions/fxdr...@googlecode.com/components/wrappedElement.js
:: anonymous :: line 82" data: no] (Note: The stack trace from the
server side is missing. The locally-generated stack trace is useless.)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at
org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:
104)
at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:
340)
at
org.openqa.selenium.firefox.FirefoxDriver.execute(FirefoxDriver.java:
237)
at
org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:
186)
at
org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:
55)
at
com.xxx.yyy.tests.selenium.pages.elements.ClassElement.addProperty(ClassElement.java:
29)
at
com.xxx.yyy.tests.selenium.MyPageTest.testClassProperties(MyPageTest.java:
90)

Does Anyone have an idea about this?

Thanks,

Guillaume.

On Sep 6, 6:34 pm, dkellis <d...@ellisca.com> wrote:
> Hello,
>   I have a new test that's getting NS_ERROR_FAILURE after calling a
> method that has been stable for months.  The method works fine for
> dozens of existing tests.
>   Previous posts suggest that this error is in conjunction with using
> cookies however none of the tests use WebDriver to manipulate cookies.
>   Can someone please suggest a course of action here?
>
> WebDriver Alpha 5
> Windows XP Pro
> NetBeans IDE 6.8 (Build 200912041610)
> Java: 1.6.0_18; Java HotSpot(TM) Client VM 16.0-b13
> FireFox 3.6.8
>
>   Alpha 3 showed the error so I upgraded to Alpha 5 but that shows the
> same error.
>
> Thanks,
> Dave
>
> Testcase:
> test_SaveAs_Private_DefaultFolder(com.xxx.wb.webdriver.user.SaveAs):
> Caused an ERROR
>
> [Exception... "Component returned failure code: 0x80004005
> (NS_ERROR_FAILURE) [nsINativeEvents.click]"  nsresult: "0x80004005
> (NS_ERROR_FAILURE)"  location: "JS frame ::
> file:///C:/DOCUME~1/DAVEEL~1/LOCALS~1/Temp/webdriver3521232324423808271profile/extensions/fxdri...@googlecode.com/components/driver-component.js
> ->
> file:///C:/DOCUME~1/DAVEEL~1/LOCALS~1/Temp/webdriver3521232324423808271profile/extensions/fxdri...@googlecode.com/components/wrappedElement.js
> :: anonymous :: line 82"  data: no] (Note: The stack trace from the
> server side is missing. The locally-generated stack trace is useless.)
>
> java.lang.UnsupportedOperationException: [Exception... "Component
> returned failure code: 0x80004005 (NS_ERROR_FAILURE)
> [nsINativeEvents.click]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"
> location: "JS frame ::
> file:///C:/DOCUME~1/DAVEEL~1/LOCALS~1/Temp/webdriver3521232324423808271profile/extensions/fxdri...@googlecode.com/components/driver-component.js
> ->
> file:///C:/DOCUME~1/DAVEEL~1/LOCALS~1/Temp/webdriver3521232324423808271profile/extensions/fxdri...@googlecode.com/components/wrappedElement.js
Message has been deleted

Eran M.

unread,
Oct 5, 2010, 9:51:53 AM10/5/10
to webd...@googlegroups.com
Hi,

Are you running your WebDriver test as administrator? Using native events requires loading native components. This may fail when you're not the administrator.
Alternatively, you can disable the native events by calling FirefoxProfile.setEnableNativeEvents(false) (on a FirefoxProfile object you've created and you pass to the FirefoxDriver).

Eran

On 27 September 2010 14:48, Guillaume <tail...@gmail.com> wrote:
Hello,

I have am getting the same error on a test built over Firefox's
WebDriver.

Here's my environment : win7 // Eclipse 3.6 // WebDriver alpha 5 //
JRE6 // Firefox 3.6.10

Here's the stacktrace i'm getting :


java.lang.UnsupportedOperationException: [Exception... "Component
returned failure code: 0x80004005 (NS_ERROR_FAILURE)
[nsINativeEvents.click]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"
location: "JS frame ::
file:///C:/Users/gtailleb/AppData/Local/Temp/webdriver5022435231765259130profile/extensions/fxdr...@googlecode.com/components/driver-component.js
->
file:///C:/Users/gtailleb/AppData/Local/Temp/webdriver5022435231765259130profile/extensions/fxdr...@googlecode.com/components/wrappedElement.js
:: anonymous :: line 82"  data: no] (Note: The stack trace from the
server side is missing. The locally-generated stack trace is useless.)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
       at java.lang.reflect.Constructor.newInstance(Unknown Source)
       at
org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:
104)
       at
org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:
340)
       at
org.openqa.selenium.firefox.FirefoxDriver.execute(FirefoxDriver.java:
237)
       at
org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:
186)
       at
org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:
55)
       at
com.xxx.yyy.tests.selenium.pages.elements.zzz.ClassElement.addProperty(ClassElement.java:
29)

Anyone has an idea about this?

Thanks


Guillaume.

On Sep 6, 6:34 pm, dkellis <d...@ellisca.com> wrote:
> Hello,
>   I have a new test that's getting NS_ERROR_FAILURE after calling a
> method that has been stable for months.  The method works fine for
> dozens of existing tests.
>   Previous posts suggest that this error is in conjunction with using
> cookies however none of the tests use WebDriver to manipulate cookies.
>   Can someone please suggest a course of action here?
>
> WebDriver Alpha 5
> Windows XP Pro
> NetBeans IDE 6.8 (Build 200912041610)
> Java: 1.6.0_18; Java HotSpot(TM) Client VM 16.0-b13
> FireFox 3.6.8
>
>   Alpha 3 showed the error so I upgraded to Alpha 5 but that shows the
> same error.
>
> Thanks,
> Dave
>
> Testcase:
> test_SaveAs_Private_DefaultFolder(com.xxx.wb.webdriver.user.SaveAs):
> Caused an ERROR
>
> [Exception... "Component returned failure code: 0x80004005
> (NS_ERROR_FAILURE) [nsINativeEvents.click]"  nsresult: "0x80004005
> (NS_ERROR_FAILURE)"  location: "JS frame ::
> file:///C:/DOCUME~1/DAVEEL~1/LOCALS~1/Temp/webdriver3521232324423808271profile/extensions/fxdri...@googlecode.com/components/driver-component.js
> ->
> file:///C:/DOCUME~1/DAVEEL~1/LOCALS~1/Temp/webdriver3521232324423808271profile/extensions/fxdri...@googlecode.com/components/wrappedElement.js
> :: anonymous :: line 82"  data: no] (Note: The stack trace from the
> server side is missing. The locally-generated stack trace is useless.)
>
> java.lang.UnsupportedOperationException: [Exception... "Component
> returned failure code: 0x80004005 (NS_ERROR_FAILURE)
> [nsINativeEvents.click]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"
> location: "JS frame ::
> file:///C:/DOCUME~1/DAVEEL~1/LOCALS~1/Temp/webdriver3521232324423808271profile/extensions/fxdri...@googlecode.com/components/driver-component.js
> ->
> file:///C:/DOCUME~1/DAVEEL~1/LOCALS~1/Temp/webdriver3521232324423808271profile/extensions/fxdri...@googlecode.com/components/wrappedElement.js
> :: anonymous :: line 82"  data: no] (Note: The stack trace from the
> server side is missing. The locally-generated stack trace is useless.)
>
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:
> 513)
>         at
> org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:
> 104)
>         at
> org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:
> 340)
>         at
> org.openqa.selenium.firefox.FirefoxDriver.execute(FirefoxDriver.java:
> 237)
>         at
> org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:
> 186)
>         at
> org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:
> 55)
>         at com.xxx.wb.webdriver.lib.TestBase.myClick(TestBase.java:987)

--
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.


Guillaume

unread,
Oct 5, 2010, 10:07:11 AM10/5/10
to webdriver
Hi,

Thx for replying.

I managed to correct the error i was getting.
The test that failed did 2 things :
1/ update a select element in my webpage in a 3 step process :
WebElement.click()
WebElement.clear()
WebElement.sendKeys(value)
2/ Validate by clicking a button in the page

The problem was the way that the select element was updated, and the
next click would fail the test.

Now that i update the select element from my web page using the
org.openqa.selenium.support.ui.Select.Select class,
everything is going fine.
Step 1 was rewritten :
Select parameterSelectField = new Select(selectField);
parameterSelectField.selectByVisibleText(value);

I hope this can help people that are having the same problem.

Rgds,

Guillaume.

On Oct 5, 3:51 pm, "Eran M." <eran....@gmail.com> wrote:
> Hi,
>
> Are you running your WebDriver test as administrator? Using native events
> requires loading native components. This may fail when you're not the
> administrator.
> Alternatively, you can disable the native events by calling
> FirefoxProfile.setEnableNativeEvents(false) (on a FirefoxProfile object
> you've created and you pass to the FirefoxDriver).
>
> Eran
>
> On 27 September 2010 14:48, Guillaume <taill...@gmail.com> wrote:
>
> > Hello,
>
> > I have am getting the same error on a test built over Firefox's
> > WebDriver.
>
> > Here's my environment : win7 // Eclipse 3.6 // WebDriver alpha 5 //
> > JRE6 // Firefox 3.6.10
>
> > Here's the stacktrace i'm getting :
>
> > java.lang.UnsupportedOperationException: [Exception... "Component
> > returned failure code: 0x80004005 (NS_ERROR_FAILURE)
> > [nsINativeEvents.click]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"
> > location: "JS frame ::
>
> > file:///C:/Users/gtailleb/AppData/Local/Temp/webdriver5022435231765259130profile/extensions/
> > fxdri...@googlecode.com/components/driver-component.js
> > ->
>
> > file:///C:/Users/gtailleb/AppData/Local/Temp/webdriver5022435231765259130profile/extensions/
> > fxdri...@googlecode.com/components/wrappedElement.js
> > webdriver+...@googlegroups.com<webdriver%2Bunsu...@googlegroups.com>
> > .

QA_manager

unread,
Oct 6, 2010, 9:32:19 AM10/6/10
to webdriver
Thank you for posting the solution, for the benefit of everyone who
comes after you.
Reply all
Reply to author
Forward
0 new messages