selenium-google-code-issue-archive icon indicating copy to clipboard operation
selenium-google-code-issue-archive copied to clipboard

Python Webdriver invisible checkbox in headless mode

Open lukeis opened this issue 8 years ago • 2 comments

Originally reported on Google Code with ID 8045

What steps will reproduce the problem?
1.Runnig selenium webdriver python script in headless mode (script attached)

What is the expected output? What do you see instead?
When running in normal mode - Success:
.
----------------------------------------------------------------------
Ran 1 test in 289.138s

OK

When running with Xvrfb (headless mode) - Error:
======================================================================
ERROR: test_oi_b_u_g (__main__.OiBUG)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "OiBUG.py", line 24, in test_oi_b_u_g
    driver.find_element_by_css_selector("a.verde").click()
  File "/usr/lib/python2.7/site-packages/selenium-2.43.0-py2.7.egg/selenium/webdriver/remote/webdriver.py",
line 374, in find_element_by_css_selector
    return self.find_element(by=By.CSS_SELECTOR, value=css_selector)
  File "/usr/lib/python2.7/site-packages/selenium-2.43.0-py2.7.egg/selenium/webdriver/remote/webdriver.py",
line 662, in find_element
    {'using': by, 'value': value})['value']
  File "/usr/lib/python2.7/site-packages/selenium-2.43.0-py2.7.egg/selenium/webdriver/remote/webdriver.py",
line 173, in execute
    self.error_handler.check_response(response)
  File "/usr/lib/python2.7/site-packages/selenium-2.43.0-py2.7.egg/selenium/webdriver/remote/errorhandler.py",
line 166, in check_response
    raise exception_class(message, screen, stacktrace)
NoSuchElementException: Message: u'Unable to locate element: {"method":"css selector","selector":"a.verde"}'
; Stacktrace:
    at FirefoxDriver.prototype.findElementInternal_ (file:///tmp/tmpS5Kbc8/extensions/[email protected]/components/driver-component.js:9618:133)
    at fxdriver.Timer.prototype.setTimeout/<.notify (file:///tmp/tmpS5Kbc8/extensions/[email protected]/components/driver-component.js:548:5)

----------------------------------------------------------------------
Ran 1 test in 45.892s

FAILED (errors=1)


Selenium version:
OS: CentOS release 6.5 (Final)
Browser: Mozilla
Browser version: Mozilla Firefox 31.1.0

Reported by roosevelt.machado on 2014-10-15 17:20:07


- _Attachment: [OiBUG.py](https://storage.googleapis.com/google-code-attachments/selenium/issue-8045/comment-0/OiBUG.py)_

lukeis avatar Mar 04 '16 09:03 lukeis

Reported by barancev on 2015-04-03 18:20:27

  • Labels added: Browser-Firefox, OpSys-Linux

lukeis avatar Mar 04 '16 09:03 lukeis

Reported by luke.semerau on 2015-09-17 17:47:30

  • Labels added: Restrict-AddIssueComment-Commit

lukeis avatar Mar 04 '16 09:03 lukeis