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

Executing javascript hangs Firefox #4375

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

Executing javascript hangs Firefox #4375

lukeis opened this issue Mar 4, 2016 · 4 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 4, 2016

Originally reported on Google Code with ID 4375

When calling execute_script("return [ document.location ];") using selenium 2.25.0 and
Firefox 14 the function hangs.

What steps will reproduce the problem?

~$ mkdir se-bug
~$ cd se-bug
~/se-bug$ virtualenv -p /usr/bin/python2.6 --no-site-packages clean-python26-env
~/se-bug$ source clean-python26-env/bin/activate
(clean-python26-env) ~/se-bug$ easy_install selenium==2.25.0

create a test file ~/se-bug/testExeJS.py

import unittest
from selenium import webdriver

class ExecuteJavascriptTestCase(unittest.TestCase):

def setUp(self):
    self.driver = webdriver.Firefox()

def test_exe_javascript(self):
    driver = self.driver
    driver.get("http://www.google.com")
    driver.execute_script("return [ document.location ];")
    print('Finished')

def tearDown(self):
    self.driver.close()

if name == "main":
unittest.main()


and run unittest

(clean-python26-env) ~/se-bug$ python testExeJS.py

What is the expected output? What do you see instead?

the execute_script call hangs. Instead I expect it to return as it does under selenium
2.24.0

(clean-python26-env) ~/se-bug$ rm -Rf clean-python26-env/lib/python2.6/site-packages/selenium-2.25.0-py2.6.egg
(clean-python26-env) ~/se-bug$ easy_install selenium==2.24.0
(clean-python26-env) ~/se-bug$ python testExeJS.py
Finished
.
----------------------------------------------------------------------
Ran 1 test in 6.198s

OK
(clean-python26-env) ~/se-bug$


Selenium version: 2.25.0
OS: Ubuntu 11.04
Browser: Firefox
Browser version: 14.0.1 (possible as far back as FF 10)

Reported by devPyPlTw@verizon.net on 2012-08-05 01:26:26


- _Attachment: [testExeJS.py](https://storage.googleapis.com/google-code-attachments/selenium/issue-4375/comment-0/testExeJS.py)_
@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by barancev on 2012-08-05 09:52:38

  • Labels added: Component-WebDriver, Browser-Firefox
  • Labels removed: Status-Untriaged

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

This issue was closed by revision r17639.

Reported by barancev on 2012-08-05 09:53:08

  • Status changed: Fixed

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

The fix will be available in 2.26

Reported by barancev on 2012-08-05 09:58:26

@lukeis
Copy link
Member Author

lukeis commented Mar 4, 2016

Reported by luke.semerau on 2015-09-17 18:15:53

  • 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