Windows 10 reached EOS (end of support) on October 14, 2025. If you are on Windows 10, see this article.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More
Lolu chungechunge lwabekwa kunqolobane. Uyacelwa ubuze umbuzo omusha uma udinga usizo.
Okugcinwe kunqolobane

How to fix NPobject error

longxi

Code:

selenium.runScript("window.document.getElementById('password_noie').TextData = \"123456\";");

Exception:

org.openqa.selenium.WebDriverException: Error setting property on NPObject! (WARNING: The server did not provide any stacktrace information) System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version: '1.6.0_10-rc2' Driver info: driver.version: RemoteWebDriver 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:513) at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:131) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:105) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:410) at org.openqa.selenium.remote.RemoteWebDriver.executeScript(RemoteWebDriver.java:319) at org.openqa.selenium.internal.seleniumemulation.RunScript.handleSeleneseCommand(RunScript.java:37) at org.openqa.selenium.internal.seleniumemulation.RunScript.handleSeleneseCommand(RunScript.java:24) at org.openqa.selenium.internal.seleniumemulation.SeleneseCommand.apply(SeleneseCommand.java:30) at org.openqa.selenium.internal.seleniumemulation.Timer.run(Timer.java:47) at org.openqa.selenium.WebDriverCommandProcessor.execute(WebDriverCommandProcessor.java:277) at org.openqa.selenium.WebDriverCommandProcessor.doCommand(WebDriverCommandProcessor.java:209) at com.thoughtworks.selenium.DefaultSelenium.runScript(DefaultSelenium.java:689) at atf.koubei.pay.AutoPay.main(AutoPay.java:137)

Html source:

   <object id="password_ie" name="password_ie" tabindex="2" classid="clsid:488A4255-3236-44B3-8F27-FA1AECAA8844" codebase="" width="200" height="24">
   <param name="cm5ts" value="2613568640">
   <param name="cm5pk" value="MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDDS92pDVyWNT7dzG9zH0opH44z9FayCZTX5iqGUxUjPi667IkyaqrsmDPqKsJp47lJ29lzs+Qv8zjPPdmnxjFteMrfpc4ui24gL1iZnchwX87Ox/+Xrm8HFmKlhmUO9n/QgTT+Nz1RGMEN1+HijvsoAhS0TS8XjSfzRkrwvK2pJQIDAQAB">
   <param name="CryptoMode" value="4">
   <embed type="application/edit" id="password_noie" name="password_noie" tabindex="2" pluginspage="" width="200" height="24">
   </object>
Code: selenium.runScript("window.document.getElementById('password_noie').TextData = \"123456\";"); Exception: org.openqa.selenium.WebDriverException: Error setting property on NPObject! (WARNING: The server did not provide any stacktrace information) System info: os.name: 'Windows XP', os.arch: 'x86', os.version: '5.1', java.version: '1.6.0_10-rc2' Driver info: driver.version: RemoteWebDriver 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:513) at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:131) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:105) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:410) at org.openqa.selenium.remote.RemoteWebDriver.executeScript(RemoteWebDriver.java:319) at org.openqa.selenium.internal.seleniumemulation.RunScript.handleSeleneseCommand(RunScript.java:37) at org.openqa.selenium.internal.seleniumemulation.RunScript.handleSeleneseCommand(RunScript.java:24) at org.openqa.selenium.internal.seleniumemulation.SeleneseCommand.apply(SeleneseCommand.java:30) at org.openqa.selenium.internal.seleniumemulation.Timer.run(Timer.java:47) at org.openqa.selenium.WebDriverCommandProcessor.execute(WebDriverCommandProcessor.java:277) at org.openqa.selenium.WebDriverCommandProcessor.doCommand(WebDriverCommandProcessor.java:209) at com.thoughtworks.selenium.DefaultSelenium.runScript(DefaultSelenium.java:689) at atf.koubei.pay.AutoPay.main(AutoPay.java:137) Html source: <object id="password_ie" name="password_ie" tabindex="2" classid="clsid:488A4255-3236-44B3-8F27-FA1AECAA8844" codebase="" width="200" height="24"> <param name="cm5ts" value="2613568640"> <param name="cm5pk" value="MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDDS92pDVyWNT7dzG9zH0opH44z9FayCZTX5iqGUxUjPi667IkyaqrsmDPqKsJp47lJ29lzs+Qv8zjPPdmnxjFteMrfpc4ui24gL1iZnchwX87Ox/+Xrm8HFmKlhmUO9n/QgTT+Nz1RGMEN1+HijvsoAhS0TS8XjSfzRkrwvK2pJQIDAQAB"> <param name="CryptoMode" value="4"> <embed type="application/edit" id="password_noie" name="password_noie" tabindex="2" pluginspage="" width="200" height="24"> </object>

Okulungisiwe ngu longxi

All Replies (2)

Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox.
http://forums.mozillazine.org/viewforum.php?f=25
You'll need to register and login to be able to post in that forum.

Thank you, I will try