Closed Bug 891569 Opened 11 years ago Closed 11 years ago

test_english_to_spanish fails when run with all tests

Categories

(support.mozilla.org :: Code Quality, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 888922

People

(Reporter: willkg, Unassigned)

Details

When I run the whole test suite, the test_english_to_spanish ui test fails with this:

ERROR: kitsune.sumo.tests.test_ui:TestLanguageSwitch.test_english_to_spanish
  vim +18  kitsune/sumo/tests/test_ui.py  # test_english_to_spanish
    self.webdriver.find_element_by_css_selector('a[lang="es"]').click()
  vim +366 vendor/packages/selenium/py/selenium/webdriver/remote/webdriver.py  # find_element_by_css_selector
    return self.find_element(by=By.CSS_SELECTOR, value=css_selector)
  vim +680 vendor/packages/selenium/py/selenium/webdriver/remote/webdriver.py  # find_element
    {'using': by, 'value': value})['value']
  vim +165 vendor/packages/selenium/py/selenium/webdriver/remote/webdriver.py  # execute
    self.error_handler.check_response(response)
  vim +158 vendor/packages/selenium/py/selenium/webdriver/remote/errorhandler.py  # check_response
    raise exception_class(message, screen, stacktrace)
NoSuchElementException: Message: 'Message: u\'Unable to locate element: {"method":"css selector","selector":"a[lang=\\\\"es\\\\"]"}\' ; Stacktrace: \n    at FirefoxDriver.prototype.findElementInternal_ (file:///tmp/tmpVODrFd/extensions/fxdriver@googlecode.com/components/driver_component.js:8444)\n    at FirefoxDriver.prototype.findElement (file:///tmp/tmpVODrFd/extensions/fxdriver@googlecode.com/components/driver_component.js:8453)\n    at DelayedCommand.prototype.executeInternal_/h (file:///tmp/tmpVODrFd/extensions/fxdriver@googlecode.com/components/command_processor.js:10456)\n    at DelayedCommand.prototype.executeInternal_ (file:///tmp/tmpVODrFd/extensions/fxdriver@googlecode.com/components/command_processor.js:10461)\n    at DelayedCommand.prototype.execute/< (file:///tmp/tmpVODrFd/extensions/fxdriver@googlecode.com/components/command_processor.js:10401) \n-------------------- >> begin captured logging << --------------------\nselenium.webdriver.remote.remote_connection: DEBUG: POST http://127.0.0.1:38033/hub/session {"sessionId": null, "desiredCapabilities": {"platform": "ANY", "browserName": "firefox", "version": "", "javascriptEnabled": true}}\nselenium.webdriver.remote.remote_connection: DEBUG: POST http://127.0.0.1:38033/hub/session/f996f76d-0ec1-4c24-9842-8e98a301b179/url {"url": "", "sessionId": "f996f76d-0ec1-4c24-9842-8e98a301b179"}\nselenium.webdriver.remote.remote_connection: DEBUG: POST http://127.0.0.1:38033/hub/session/f996f76d-0ec1-4c24-9842-8e98a301b179/url {"url": "http://localhost:8081/en-US/home", "sessionId": "f996f76d-0ec1-4c24-9842-8e98a301b179"}\ndjango.request: WARNING: Not Found: /en-US/static/css/common-min.css\ndjango.request: WARNING: Not Found: /en-US/static/css/print-min.css\ndjango.request: WARNING: Not Found: /en-US/static/css/home-min.css\ndjango.request: WARNING: Not Found: /en-US/static/js/common-min.js\ndjango.request: WARNING: Not Found: /en-US/static/js/common-min.js\nselenium.webdriver.remote.remote_connection: DEBUG: POST http://127.0.0.1:38033/hub/session/f996f76d-0ec1-4c24-9842-8e98a301b179/element {"using": "css selector", "sessionId": "f996f76d-0ec1-4c24-9842-8e98a301b179", "value": ".locale-picker"}\nselenium.webdriver.remote.remote_connection: DEBUG: GET http://127.0.0.1:38033/hub/session/f996f76d-0ec1-4c24-9842-8e98a301b179/element/{95630d65-6667-434d-8665-d15799608ce5}/text {"sessionId": "f996f76d-0ec1-4c24-9842-8e98a301b179", "id": "{95630d65-6667-434d-8665-d15799608ce5}"}\nselenium.webdriver.remote.remote_connection: DEBUG: POST http://127.0.0.1:38033/hub/session/f996f76d-0ec1-4c24-9842-8e98a301b179/element/{95630d65-6667-434d-8665-d15799608ce5}/click {"sessionId": "f996f76d-0ec1-4c24-9842-8e98a301b179", "id": "{95630d65-6667-434d-8665-d15799608ce5}"}\nselenium.webdriver.remote.remote_connection: DEBUG: POST http://127.0.0.1:38033/hub/session/f996f76d-0ec1-4c24-9842-8e98a301b179/element {"using": "css selector", "sessionId": "f996f76d-0ec1-4c24-9842-8e98a301b179", "value": "a[lang=\\"es\\"]"}\n--------------------- >> end captured logging << ---------------------' 


Mike says this works on his machine and the PR suggests it works on Ricky's machine, too. It's possible it's just a problem with my system. Worth a bug because it requires time to look into and in case it affects other people.
The problem here is the same as in bug #888922 so I'm merging them.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.