yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #26814
[Bug 1410055] [NEW] first_level_item_xpath is unnable to locate when running with selenium-headless
Public bug reported:
./run_tests.sh --integration --selenium-headless
Traceback (most recent call last):
File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/tests/test_user_create_delete.py", line 22, in test_create_delete_user
users_page = self.home_pg.go_to_identity_userspage()
File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/pages/navigation.py", line 271, in __call__
return Navigation._go_to_page(args[0], self.path, self.page_class)
File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/pages/navigation.py", line 204, in _go_to_page
self._go_to_side_menu_page([path[0], None, path[1]])
File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/pages/navigation.py", line 227, in _go_to_side_menu_page
self.navaccordion.click_on_menu_items(*menu_items)
File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/regions/menus.py", line 116, in click_on_menu_items
self.get_first_level_selected_item)
File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/regions/menus.py", line 97, in _click_menu_item
self._click_item(text, loc_craft_func)
File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/regions/menus.py", line 107, in _click_item
item = self._get_element(*item_locator)
File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/regions/baseregion.py", line 91, in _get_element
return self.src_elem.find_element(*locator)
File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/webdriver.py", line 29, in find_element
web_el = super(WrapperFindOverride, self).find_element(by, value)
File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 662, in find_element
{'using': by, 'value': value})['value']
File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 173, in execute
self.error_handler.check_response(response)
File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 166, in check_response
raise exception_class(message, screen, stacktrace)
NoSuchElementException: Message: Unable to locate element: {"method":"xpath","selector":"//dt[contains(text(),'Identity')]"}
Stacktrace:
at FirefoxDriver.prototype.findElementInternal_ (file:///tmp/tmpeUCblu/extensions/fxdriver@xxxxxxxxxxxxxx/components/driver-component.js:9641:26)
at fxdriver.Timer.prototype.setTimeout/<.notify (file:///tmp/tmpeUCblu/extensions/fxdriver@xxxxxxxxxxxxxx/components/driver-component.js:548:5)
** Affects: horizon
Importance: Undecided
Status: New
** Tags: integration-tests
** Description changed:
+ ./run_tests.sh --integration --selenium-headless
+
+
Traceback (most recent call last):
- File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/tests/test_user_create_delete.py", line 22, in test_create_delete_user
- users_page = self.home_pg.go_to_identity_userspage()
- File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/pages/navigation.py", line 271, in __call__
- return Navigation._go_to_page(args[0], self.path, self.page_class)
- File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/pages/navigation.py", line 204, in _go_to_page
- self._go_to_side_menu_page([path[0], None, path[1]])
- File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/pages/navigation.py", line 227, in _go_to_side_menu_page
- self.navaccordion.click_on_menu_items(*menu_items)
- File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/regions/menus.py", line 116, in click_on_menu_items
- self.get_first_level_selected_item)
- File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/regions/menus.py", line 97, in _click_menu_item
- self._click_item(text, loc_craft_func)
- File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/regions/menus.py", line 107, in _click_item
- item = self._get_element(*item_locator)
- File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/regions/baseregion.py", line 91, in _get_element
- return self.src_elem.find_element(*locator)
- File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/webdriver.py", line 29, in find_element
- web_el = super(WrapperFindOverride, self).find_element(by, value)
- File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 662, in find_element
- {'using': by, 'value': value})['value']
- File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 173, in execute
- self.error_handler.check_response(response)
- File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 166, in check_response
- raise exception_class(message, screen, stacktrace)
+ File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/tests/test_user_create_delete.py", line 22, in test_create_delete_user
+ users_page = self.home_pg.go_to_identity_userspage()
+ File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/pages/navigation.py", line 271, in __call__
+ return Navigation._go_to_page(args[0], self.path, self.page_class)
+ File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/pages/navigation.py", line 204, in _go_to_page
+ self._go_to_side_menu_page([path[0], None, path[1]])
+ File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/pages/navigation.py", line 227, in _go_to_side_menu_page
+ self.navaccordion.click_on_menu_items(*menu_items)
+ File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/regions/menus.py", line 116, in click_on_menu_items
+ self.get_first_level_selected_item)
+ File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/regions/menus.py", line 97, in _click_menu_item
+ self._click_item(text, loc_craft_func)
+ File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/regions/menus.py", line 107, in _click_item
+ item = self._get_element(*item_locator)
+ File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/regions/baseregion.py", line 91, in _get_element
+ return self.src_elem.find_element(*locator)
+ File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/webdriver.py", line 29, in find_element
+ web_el = super(WrapperFindOverride, self).find_element(by, value)
+ File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 662, in find_element
+ {'using': by, 'value': value})['value']
+ File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 173, in execute
+ self.error_handler.check_response(response)
+ File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 166, in check_response
+ raise exception_class(message, screen, stacktrace)
NoSuchElementException: Message: Unable to locate element: {"method":"xpath","selector":"//dt[contains(text(),'Identity')]"}
Stacktrace:
- at FirefoxDriver.prototype.findElementInternal_ (file:///tmp/tmpeUCblu/extensions/fxdriver@xxxxxxxxxxxxxx/components/driver-component.js:9641:26)
- at fxdriver.Timer.prototype.setTimeout/<.notify (file:///tmp/tmpeUCblu/extensions/fxdriver@xxxxxxxxxxxxxx/components/driver-component.js:548:5)
+ at FirefoxDriver.prototype.findElementInternal_ (file:///tmp/tmpeUCblu/extensions/fxdriver@xxxxxxxxxxxxxx/components/driver-component.js:9641:26)
+ at fxdriver.Timer.prototype.setTimeout/<.notify (file:///tmp/tmpeUCblu/extensions/fxdriver@xxxxxxxxxxxxxx/components/driver-component.js:548:5)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1410055
Title:
first_level_item_xpath is unnable to locate when running with
selenium-headless
Status in OpenStack Dashboard (Horizon):
New
Bug description:
./run_tests.sh --integration --selenium-headless
Traceback (most recent call last):
File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/tests/test_user_create_delete.py", line 22, in test_create_delete_user
users_page = self.home_pg.go_to_identity_userspage()
File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/pages/navigation.py", line 271, in __call__
return Navigation._go_to_page(args[0], self.path, self.page_class)
File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/pages/navigation.py", line 204, in _go_to_page
self._go_to_side_menu_page([path[0], None, path[1]])
File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/pages/navigation.py", line 227, in _go_to_side_menu_page
self.navaccordion.click_on_menu_items(*menu_items)
File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/regions/menus.py", line 116, in click_on_menu_items
self.get_first_level_selected_item)
File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/regions/menus.py", line 97, in _click_menu_item
self._click_item(text, loc_craft_func)
File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/regions/menus.py", line 107, in _click_item
item = self._get_element(*item_locator)
File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/regions/baseregion.py", line 91, in _get_element
return self.src_elem.find_element(*locator)
File "/opt/stack/horizon/openstack_dashboard/test/integration_tests/webdriver.py", line 29, in find_element
web_el = super(WrapperFindOverride, self).find_element(by, value)
File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 662, in find_element
{'using': by, 'value': value})['value']
File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 173, in execute
self.error_handler.check_response(response)
File "/opt/stack/horizon/.venv/local/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 166, in check_response
raise exception_class(message, screen, stacktrace)
NoSuchElementException: Message: Unable to locate element: {"method":"xpath","selector":"//dt[contains(text(),'Identity')]"}
Stacktrace:
at FirefoxDriver.prototype.findElementInternal_ (file:///tmp/tmpeUCblu/extensions/fxdriver@xxxxxxxxxxxxxx/components/driver-component.js:9641:26)
at fxdriver.Timer.prototype.setTimeout/<.notify (file:///tmp/tmpeUCblu/extensions/fxdriver@xxxxxxxxxxxxxx/components/driver-component.js:548:5)
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1410055/+subscriptions
Follow ups
References