Skip to content
This repository was archived by the owner on Nov 29, 2018. It is now read-only.

Tests failing with 'arguments[0] is undefined' in Firefox 35 #8387

Closed
lukeis opened this issue Mar 4, 2016 · 24 comments
Closed

Tests failing with 'arguments[0] is undefined' in Firefox 35 #8387

lukeis opened this issue Mar 4, 2016 · 24 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 4, 2016

Originally reported on Google Code with ID 8387

What steps will reproduce the problem?
1. Use Capybara to 'fill_in' a field using Firefox 35
2.
3.

What is the expected output? What do you see instead?
Expected test to run normally, instead got:

  1) forms flow should work
     Failure/Error: login(@user)
     Selenium::WebDriver::Error::JavascriptError:
       arguments[0] is undefined
     # [remote server] http://127.0.0.1:59646/en/login line 68 > Function:1:1:in `anonymous'
     # [remote server] http://127.0.0.1:59646/en/login:68:20:in `handleEvaluateEvent'
     # ./spec/support/feature_spec_helpers.rb:4:in `login'
     # ./spec/features/forms_flow_spec.rb:7:in `block (2 levels) in <top (required)>'

Downgrading to FFox 34.0.5 eliminates the error.

Selenium version: selenium-webdriver gem 2.44.0
OS: Mac OS X 10.10.1
Browser: Firefox
Browser version: 35

If this is not easily reproducible let me know and I can write a test case. The one
I'm using now is part of a large project that would take ages to setup.

Reported by tomsmyth on 2015-01-14 19:19:52

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Appears as if any execution of JavascriptExecutor is causing this error to occur.  Verified
on Firefox 35; does not occur on Chromedriver or IEDriverServer.  Reverted back to
FF 34 as a workaround.

Reported by raysqa on 2015-01-14 20:43:04

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

I'm seeing the same issue since upgrading to Firefox 35
Selenium version: 2.44.0 c~ bindings
OS: Window 7
Browser: Firefox
Browser version: 35

Sample code:
using OpenQA.Selenium;
using OpenQA.Selenium.Firefox;

namespace SeleniumSandbox2
{
    class Program
    {
        static void Main(string[] args)
        {
            var driver = new FirefoxDriver();
            driver.Navigate().GoToUrl("http://www.google.co.uk");
            ((IJavaScriptExecutor)driver).ExecuteScript("arguments[0].scrollIntoView(true);",
driver.FindElement(By.CssSelector("#gb_70")));
       }
    }
}

System.InvalidOperationException was unhandled
  HResult=-2146233079
  Message=arguments[0] is undefined (UnexpectedJavaScriptError)
  Source=WebDriver
  StackTrace:
       at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
       at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute,
Dictionary`2 parameters)
       at OpenQA.Selenium.Remote.RemoteWebDriver.ExecuteScriptCommand(String script,
String commandName, Object[] args)
       at OpenQA.Selenium.Remote.RemoteWebDriver.ExecuteScript(String script, Object[]
args)
       at SeleniumSandbox2.Program.Main(String[] args) in c:\Users\mark.hopwood\Documents\Visual
Studio 2013\Projects\SeleniumSandbox2\SeleniumSandbox2\Program.cs:line 13
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity,
String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext,
ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext,
ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext,
ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: 

Reported by mark.hopwood.nvm on 2015-01-15 10:53:31

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

I also see Firefox 35 failing when executing javascript. In the Firefox console, I see
this error: "Security wrapper denied access to property length on privileged Javascript
object. Support for exposing privileged objects to untrusted content via __exposedProps__
is being gradually removed - use WebIDL bindings or Components.utils.cloneInto instead.
Note that only the first denied property access from a given global object will be
reported." This appears to be related to a deprecated javascript property in Firefox:
"http://codeverge.com/mozilla.dev.b2g/notice-do-not-add-new-instances-of-exposedpro/1992161"
 In the file selenium/javascript/firefox-driver/js/firefoxDriver.js I do see a reference
to __exposedProps__. This is making our Firefox Selenium Webdriver testing unusable.
Perhaps this other method Components.utils.cloneInto can be used?

Reported by para.selenium.bugs on 2015-01-15 16:40:23

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by jmleyba on 2015-01-16 20:17:05

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

i am also having same above issue,
arguments[0] is undefined
Command duration or timeout: 20 milliseconds
Build info: version: '2.44.0', revision: '76d78cf', time: '2014-10-23 20:03:00'

Tests failing with 'arguments[0] is undefined' in Firefox 35

what i have to do pls help me any one....

Reported by lavanya.kotam on 2015-01-23 08:19:06

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

I can confirm this issue and downgrading Firefox (for me to version 34.0.5) causes test
scripts to once more work

Reported by pmisaacs1 on 2015-01-24 23:21:03

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Same issue here; 34.0.5 works ok.

Reported by viktar.basharymau@thehamon.com on 2015-01-27 10:16:19

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Same here, v2.44.0 and ff 35.0.1

Reported by szczech.przemyslaw on 2015-01-27 10:17:01

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Hi all -- happening for me also, I cannot execute any JS code with FF 35.0 and Selenium
2.44.0. Is there any fix planned ? Thanks

Reported by astoica on 2015-01-27 10:19:44

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Same problem with FF35 and selenium 2.43.0

Reported by jjdereu on 2015-01-27 14:02:40

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Seeing this issue as well. Downgrading FF to 34.0.5 works. I would say that the priority
of this is perhaps greater than Medium. Our org officially supports the latest version
of FF so until this is fixed our test suites are not running on the latest FF. 

Reported by Chapman.Chris.H on 2015-01-27 15:21:29

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Same issue.  Calls to ExecuteScript are not working properly (triggering UnexpectedJavaScriptError)
and if I watch the Firefox web browser console I see this (as reported previously by
Para.Sel...)

[WEBDRIVER] [INFO] [fxdriver.nsCommandProcessor] Received command: executeScript

Security wrapper denied access to property length on privileged Javascript object.
Support for exposing privileged objects to untrusted content via __exposedProps__ is
being gradually removed - use WebIDL bindings or Components.utils.cloneInto instead.
Note that only the first denied property access from a given global object will be
reported.

Running Selenium Support 2.44.0 and Firefox Portable 35.0

Reported by cosmocracy on 2015-01-27 20:46:33

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

FF 35.0.1, same issue

Reported by koshelnikov on 2015-01-27 22:20:11

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

FF 35.0.1, ubuntu, selenium 2.44 - same issue

Reported by antek88 on 2015-01-29 19:34:07

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Same issue for me too.  Downgrading to FF 34.

Reported by joseph@omnistre.am on 2015-01-30 23:17:39

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Same issue for me.

Reported by ssfinney92 on 2015-01-31 21:37:49

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

FF 35.0.1, Macosx Yosemite, selenium 2.44 - same issue

Reported by ian.gallina on 2015-02-05 16:40:32

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

working with FF 34.0.5, selenium 2.44....thank you all

Reported by anisolankure001 on 2015-02-10 14:50:49

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

have anyone resolved the issue without downgrading firefox?

Reported by nirmalspecial on 2015-02-17 06:04:53

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

same issue here.. is this issue resolved?

Reported by vijay.akgec on 2015-02-18 11:58:14

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

@vijay,  there is suppose to be a webdriver dev version that works. I haven't tried
it, though.  I thought I'd see how FF 36 beta worked with the webdriver and it's not
pretty.

Reported by qtrolazyg on 2015-02-18 14:50:28

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

This should be increased in priority? Firefox 36 is out in just a week and this is still
broken. This bug is blocking people from effectively testing in recent Firefox versions
:(

Reported by alxgbsn on 2015-02-18 16:10:41

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

FYI - This is merged to 8390.  
https://code.google.com/p/selenium/issues/detail?id=8390

Reported by qtrolazyg on 2015-02-19 16:41:37

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by luke.semerau on 2015-09-17 18:25:06

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 4, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant