Skip to content

Instantly share code, notes, and snippets.

@AutomatedTester
Created June 13, 2011 14:40
Show Gist options
  • Select an option

  • Save AutomatedTester/1022885 to your computer and use it in GitHub Desktop.

Select an option

Save AutomatedTester/1022885 to your computer and use it in GitHub Desktop.
1 of 7 Native Event tests pass on Remote with Firefox
David-Burnss-MacBook-Pro:selenium davidburns$ ./go clean test_remote_py
(in /development/selenium)
Using iPhoneSDK: 'iphonesimulator4.1'
virtualenv --no-site-packages build/python
New python executable in build/python/bin/python
Installing setuptools............done.
build/python/bin/pip install simplejson py pytest rdflib
Downloading/unpacking simplejson
Running setup.py egg_info for package simplejson
Downloading/unpacking py
Running setup.py egg_info for package py
Downloading/unpacking pytest
Running setup.py egg_info for package pytest
Downloading/unpacking rdflib
Running setup.py egg_info for package rdflib
Installing collected packages: simplejson, py, pytest, rdflib
Running setup.py install for simplejson
building 'simplejson._speedups' extension
gcc-4.0 -fno-strict-aliasing -fno-common -dynamic -arch ppc -arch i386 -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c simplejson/_speedups.c -o build/temp.macosx-10.3-fat-2.6/simplejson/_speedups.o
In file included from /usr/include/architecture/i386/math.h:626,
from /usr/include/math.h:28,
from /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/pyport.h:235,
from /Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/Python.h:58,
from simplejson/_speedups.c:1:
/usr/include/AvailabilityMacros.h:108:14: warning: #warning Building for Intel with Mac OS X Deployment Target < 10.4 is invalid.
gcc-4.0 -arch ppc -arch i386 -g -bundle -undefined dynamic_lookup build/temp.macosx-10.3-fat-2.6/simplejson/_speedups.o -o build/lib.macosx-10.3-fat-2.6/simplejson/_speedups.so
Running setup.py install for py
Running setup.py install for pytest
Installing py.test script to /development/selenium/build/python/bin
Installing py.test-2.6 script to /development/selenium/build/python/bin
Running setup.py install for rdflib
Successfully installed simplejson py pytest rdflib
Cleaning up...
Compiling: //java/client/src/org/openqa/selenium:base as build/java/client/src/org/openqa/selenium/base.jar
Compiling: //java/client/src/org/openqa/selenium/interactions:api as build/java/client/src/org/openqa/selenium/interactions/api.jar
Compiling: //java/client/src/org/openqa/selenium/internal:codecs as build/java/client/src/org/openqa/selenium/internal/codecs.jar
Compiling: //java/client/src/org/openqa/selenium:webdriver-api as build/java/client/src/org/openqa/selenium/webdriver-api.jar
Compiling: //java/client/src/org/openqa/selenium/remote:base as build/java/client/src/org/openqa/selenium/remote/base.jar
Compiling: //java/client/src/org/openqa/selenium/interactions:interactions as build/java/client/src/org/openqa/selenium/interactions/interactions.jar
Compiling: //java/client/src/com/thoughtworks/selenium:api as build/java/client/src/com/thoughtworks/selenium/api.jar
Compiling: //java/client/src/org/openqa/selenium/io:io as build/java/client/src/org/openqa/selenium/io/io.jar
Compiling: //java/client/src/org/openqa/selenium/net:net as build/java/client/src/org/openqa/selenium/net/net.jar
Compiling: //java/client/src/org/openqa/selenium/os:os as build/java/client/src/org/openqa/selenium/os/os.jar
Compiling: //java/client/src/org/openqa/selenium/browserlaunchers:launcher-utils as build/java/client/src/org/openqa/selenium/browserlaunchers/launcher-utils.jar
Compiling: //java/client/src/org/openqa/selenium/browserlaunchers/locators:locators as build/java/client/src/org/openqa/selenium/browserlaunchers/locators/locators.jar
Compiling: //java/client/src/org/openqa/selenium/browserlaunchers:browserlaunchers as build/java/client/src/org/openqa/selenium/browserlaunchers/browserlaunchers.jar
Compiling: //java/client/src/org/openqa/selenium/remote:common as build/java/client/src/org/openqa/selenium/remote/common.jar
Compiling: //java/client/src/org/openqa/selenium/remote:remote as build/java/client/src/org/openqa/selenium/remote/remote.jar
Compiling: //java/client/src/com/thoughtworks/selenium/condition:condition as build/java/client/src/com/thoughtworks/selenium/condition/condition.jar
Compiling: //java/client/src/com/thoughtworks/selenium:wait as build/java/client/src/com/thoughtworks/selenium/wait.jar
Compiling: //java/client/src/com/thoughtworks/selenium:selenium as build/java/client/src/com/thoughtworks/selenium/selenium.jar
Compiling: //java/client/src/org/openqa/selenium/android:android as build/java/client/src/org/openqa/selenium/android/android.jar
Compiling: //java/client/src/org/openqa/selenium/chrome:chrome as build/java/client/src/org/openqa/selenium/chrome/chrome.jar
Compiling: //java/client/src/org/openqa/selenium/htmlunit:htmlunit as build/java/client/src/org/openqa/selenium/htmlunit/htmlunit.jar
Building: //javascript/firefox-driver:command_processor_xpt as build/javascript/firefox-driver/nsICommandProcessor.xpt
Falling back to javascript/firefox-driver/prebuilt/firefox-driver/nsICommandProcessor.xpt
Building: //javascript/firefox-driver:httpd_xpt as build/javascript/firefox-driver/nsIHttpServer.xpt
Falling back to javascript/firefox-driver/prebuilt/firefox-driver/nsIHttpServer.xpt
Building: //cpp:native_events_xpt as build/cpp/nsINativeEvents.xpt
Falling back to cpp/prebuilt/nsINativeEvents.xpt
Building: //javascript/firefox-driver:response_handler_xpt as build/javascript/firefox-driver/nsIResponseHandler.xpt
Falling back to javascript/firefox-driver/prebuilt/firefox-driver/nsIResponseHandler.xpt
Building: //javascript/firefox-driver:coordinates_xpt as build/javascript/firefox-driver/wdICoordinate.xpt
Falling back to javascript/firefox-driver/prebuilt/firefox-driver/wdICoordinate.xpt
Building: //javascript/firefox-driver:mouse_xpt as build/javascript/firefox-driver/wdIMouse.xpt
Falling back to javascript/firefox-driver/prebuilt/firefox-driver/wdIMouse.xpt
Falling back to cpp/prebuilt/Win32/Release/webdriver-firefox.dll
Falling back to cpp/prebuilt/Win32/Release/imehandler.dll
Falling back to copy of: cpp/prebuilt/i386/libwebdriver-firefox.so
Falling back to copy of: cpp/prebuilt/amd64/libwebdriver-firefox.so
Compiling: //javascript/firefox-driver:atoms as build/javascript/firefox-driver/atoms.js
Compiling: //javascript/firefox-driver:utils as build/javascript/firefox-driver/utils.js
Preparing: //javascript/firefox-driver:webdriver as build/javascript/firefox-driver/webdriver.xpi
Compiling: //cpp:noblur as build/cpp/i386/libnoblur.so
Falling back to cpp/prebuilt/i386/libnoblur.so
Compiling: //cpp:noblur64 as build/cpp/amd64/libnoblur64.so
Falling back to cpp/prebuilt/amd64/libnoblur64.so
Compiling: //cpp:imehandler as build/cpp/i386/libimehandler.so
Falling back to cpp/prebuilt/i386/libimehandler.so
Compiling: //cpp:imehandler64 as build/cpp/amd64/libimehandler64.so
Falling back to cpp/prebuilt/amd64/libimehandler64.so
Compiling: //java/client/src/org/openqa/selenium/firefox:firefox as build/java/client/src/org/openqa/selenium/firefox/firefox.jar
Preparing: //third_party/js/sizzle:sizzle:header as build/third_party/js/sizzle/sizzle.h
Generating header for build/third_party/js/sizzle/sizzle.js
Falling back to cpp/prebuilt/Win32/Release/IEDriver.dll
Generating export file for bot.action.clear at build/javascript/webdriver-atoms/clear_exports.js
Compiling //javascript/webdriver-atoms:clear:ie as build/javascript/webdriver-atoms/clear_ie.js
Generating export file for bot.locators.findElement at build/javascript/webdriver-atoms/find_element_exports.js
Compiling //javascript/webdriver-atoms:find_element:ie as build/javascript/webdriver-atoms/find_element_ie.js
Generating export file for bot.locators.findElements at build/javascript/webdriver-atoms/find_elements_exports.js
Compiling //javascript/webdriver-atoms:find_elements:ie as build/javascript/webdriver-atoms/find_elements_ie.js
Generating export file for webdriver.element.getAttribute at build/javascript/webdriver-atoms/get_attribute_exports.js
Compiling //javascript/webdriver-atoms:get_attribute:ie as build/javascript/webdriver-atoms/get_attribute_ie.js
Generating export file for bot.dom.getEffectiveStyle at build/javascript/webdriver-atoms/get_effective_style_exports.js
Compiling //javascript/webdriver-atoms:get_effective_style:ie as build/javascript/webdriver-atoms/get_effective_style_ie.js
Generating export file for goog.style.getPageOffset at build/javascript/webdriver-atoms/get_location_exports.js
Compiling //javascript/webdriver-atoms:get_location:ie as build/javascript/webdriver-atoms/get_location_ie.js
Generating export file for goog.style.getSize at build/javascript/webdriver-atoms/get_size_exports.js
Compiling //javascript/webdriver-atoms:get_size:ie as build/javascript/webdriver-atoms/get_size_ie.js
Generating export file for webdriver.element.getText at build/javascript/webdriver-atoms/get_text_exports.js
Compiling //javascript/webdriver-atoms:get_text:ie as build/javascript/webdriver-atoms/get_text_ie.js
Generating export file for bot.dom.isShown at build/javascript/webdriver-atoms/is_displayed_exports.js
Compiling //javascript/webdriver-atoms:is_displayed:ie as build/javascript/webdriver-atoms/is_displayed_ie.js
Generating export file for bot.dom.isEnabled at build/javascript/webdriver-atoms/is_enabled_exports.js
Compiling //javascript/webdriver-atoms:is_enabled:ie as build/javascript/webdriver-atoms/is_enabled_ie.js
Generating export file for webdriver.element.isSelected at build/javascript/webdriver-atoms/is_selected_exports.js
Compiling //javascript/webdriver-atoms:is_selected:ie as build/javascript/webdriver-atoms/is_selected_ie.js
Generating export file for bot.action.submit at build/javascript/webdriver-atoms/submit_exports.js
Compiling //javascript/webdriver-atoms:submit:ie as build/javascript/webdriver-atoms/submit_ie.js
Preparing: //cpp:atoms as build/cpp/atoms.h
Generating header for build/javascript/webdriver-atoms/clear_ie.js
Generating header for build/javascript/webdriver-atoms/find_element_ie.js
Generating header for build/javascript/webdriver-atoms/find_elements_ie.js
Generating header for build/javascript/webdriver-atoms/get_attribute_ie.js
Generating header for build/javascript/webdriver-atoms/get_effective_style_ie.js
Generating header for build/javascript/webdriver-atoms/get_location_ie.js
Generating header for build/javascript/webdriver-atoms/get_size_ie.js
Generating header for build/javascript/webdriver-atoms/get_text_ie.js
Generating header for build/javascript/webdriver-atoms/is_displayed_ie.js
Generating header for build/javascript/webdriver-atoms/is_enabled_ie.js
Generating header for build/javascript/webdriver-atoms/is_selected_ie.js
Generating header for build/javascript/webdriver-atoms/submit_ie.js
Writing: cpp/IEDriver/Generated/atoms.h
Falling back to cpp/prebuilt/x64/Release/IEDriver.dll
Compiling: //java/client/src/org/openqa/selenium/ie:ie as build/java/client/src/org/openqa/selenium/ie/ie.jar
Compiling: //java/client/src/org/openqa/selenium/iphone:iphone as build/java/client/src/org/openqa/selenium/iphone/iphone.jar
Compiling: //java/client/src/org/openqa/selenium:selenium-api as build/java/client/src/org/openqa/selenium/selenium-api.jar
Compiling: //java/client/src/org/openqa/selenium/internal/selenesedriver:selenesedriver as build/java/client/src/org/openqa/selenium/internal/selenesedriver/selenesedriver.jar
Compiling: //java/client/src/org/openqa/selenium:selenium-backed-webdriver as build/java/client/src/org/openqa/selenium/selenium-backed-webdriver.jar
Compiling: //java/client/src/org/openqa/selenium/support/ui:base as build/java/client/src/org/openqa/selenium/support/ui/base.jar
Compiling: //java/client/src/org/openqa/selenium/support/ui:clock as build/java/client/src/org/openqa/selenium/support/ui/clock.jar
Compiling: //java/client/src/org/openqa/selenium/support/ui:components as build/java/client/src/org/openqa/selenium/support/ui/components.jar
Compiling: //java/client/src/org/openqa/selenium/support:page-factory as build/java/client/src/org/openqa/selenium/support/page-factory.jar
Compiling: //java/client/src/org/openqa/selenium/support/ui:wait as build/java/client/src/org/openqa/selenium/support/ui/wait.jar
Compiling: //java/client/src/org/openqa/selenium/lift:lift as build/java/client/src/org/openqa/selenium/lift/lift.jar
Compiling: //java/client/src/org/openqa/selenium/support/events:events as build/java/client/src/org/openqa/selenium/support/events/events.jar
Compiling: //java/client/src/org/openqa/selenium/support/ui:elements as build/java/client/src/org/openqa/selenium/support/ui/elements.jar
Generating export file for core.locators.findElement at build/javascript/selenium-atoms/findElement_exports.js
Compiling //javascript/selenium-atoms:findElement as build/javascript/selenium-atoms/findElement.js
Generating export file for core.select.option.findOption at build/javascript/selenium-atoms/findOption_exports.js
Compiling //javascript/selenium-atoms:findOption as build/javascript/selenium-atoms/findOption.js
Generating export file for core.events.fire at build/javascript/selenium-atoms/fireEvent_exports.js
Compiling //javascript/selenium-atoms:fireEvent as build/javascript/selenium-atoms/fireEvent.js
Generating export file for core.events.fireAt at build/javascript/selenium-atoms/fireEventAt_exports.js
Compiling //javascript/selenium-atoms:fireEventAt as build/javascript/selenium-atoms/fireEventAt.js
Generating export file for core.element.getAttribute at build/javascript/selenium-atoms/getAttribute_exports.js
Compiling //javascript/selenium-atoms:getAttribute as build/javascript/selenium-atoms/getAttribute.js
Generating export file for core.text.getText at build/javascript/selenium-atoms/getText_exports.js
Compiling //javascript/selenium-atoms:getText as build/javascript/selenium-atoms/getText.js
Generating export file for core.text.linkLocator at build/javascript/selenium-atoms/linkLocator_exports.js
Compiling //javascript/selenium-atoms:linkLocator as build/javascript/selenium-atoms/linkLocator.js
Generating export file for core.locators.isElementPresent at build/javascript/selenium-atoms/isElementPresent_exports.js
Compiling //javascript/selenium-atoms:isElementPresent as build/javascript/selenium-atoms/isElementPresent.js
Generating export file for core.select.isSomethingSelected at build/javascript/selenium-atoms/isSomethingSelected_exports.js
Compiling //javascript/selenium-atoms:isSomethingSelected as build/javascript/selenium-atoms/isSomethingSelected.js
Generating export file for core.text.isTextPresent at build/javascript/selenium-atoms/isTextPresent_exports.js
Compiling //javascript/selenium-atoms:isTextPresent as build/javascript/selenium-atoms/isTextPresent.js
Generating export file for core.browserbot.isVisible at build/javascript/selenium-atoms/isVisible_exports.js
Compiling //javascript/selenium-atoms:isVisible as build/javascript/selenium-atoms/isVisible.js
Generating export file for core.events.setValue at build/javascript/selenium-atoms/type_exports.js
Compiling //javascript/selenium-atoms:type as build/javascript/selenium-atoms/type.js
Compiling: //java/client/src/org/openqa/selenium/internal/seleniumemulation:seleniumemulation as build/java/client/src/org/openqa/selenium/internal/seleniumemulation/seleniumemulation.jar
Compiling: //java/client/src/org/openqa/selenium:webdriver-backed-selenium as build/java/client/src/org/openqa/selenium/webdriver-backed-selenium.jar
Compiling: //java/server/src/org/openqa/jetty:jetty as build/java/server/src/org/openqa/jetty/jetty.jar
Compiling: //java/server/src/org/openqa/selenium/server:logging as build/java/server/src/org/openqa/selenium/server/logging.jar
Compiling: //java/server/src/cybervillains:cybervillains as build/java/server/src/cybervillains/cybervillains.jar
Compiling: //java/server/src/org/openqa/selenium/remote/server:server as build/java/server/src/org/openqa/selenium/remote/server/server.jar
Compiling: //java/server/src/org/openqa/selenium/server:base as build/java/server/src/org/openqa/selenium/server/base.jar
Compiling: //javascript/selenium-atoms:selenium-atoms as build/javascript/selenium-atoms/selenium-atoms.js
Compiling: //javascript/selenium-core:selenium-core as build/javascript/selenium-core/selenium-core.jar
Compiling: //java/server/src/org/openqa/selenium/server:server_lite as build/java/server/src/org/openqa/selenium/server/server_lite.jar
Uber-jar: //java/server/src/org/openqa/selenium/server:server as build/java/server/src/org/openqa/selenium/server/server-standalone.jar
Compiling: //java/server/test/org/openqa/selenium/remote/server/auth:server as build/java/server/test/org/openqa/selenium/remote/server/auth/server.jar
Uber-jar: //java/server/test/org/openqa/selenium/remote/server/auth:server as build/java/server/test/org/openqa/selenium/remote/server/auth/server-standalone.jar
build/python/bin/python setup.py build
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'src_root'
warnings.warn(msg)
running build
running build_py
creating build/lib
creating build/lib/selenium
copying py/selenium/__init__.py -> build/lib/selenium
copying py/selenium/selenium.py -> build/lib/selenium
creating build/lib/selenium/common
copying py/selenium/common/__init__.py -> build/lib/selenium/common
copying py/selenium/common/exceptions.py -> build/lib/selenium/common
creating build/lib/selenium/test
copying py/test/__init__.py -> build/lib/selenium/test
creating build/lib/selenium/test/selenium
copying py/test/selenium/__init__.py -> build/lib/selenium/test/selenium
copying py/test/selenium/selenium_test_suite.py -> build/lib/selenium/test/selenium
copying py/test/selenium/selenium_test_suite_headless.py -> build/lib/selenium/test/selenium
copying py/test/selenium/test_default_server.py -> build/lib/selenium/test/selenium
copying py/test/selenium/test_google.py -> build/lib/selenium/test/selenium
copying py/test/selenium/test_i18n.py -> build/lib/selenium/test/selenium
creating build/lib/selenium/test/selenium/webdriver
copying py/test/selenium/webdriver/__init__.py -> build/lib/selenium/test/selenium/webdriver
creating build/lib/selenium/test/selenium/webdriver/chrome
copying py/test/selenium/webdriver/chrome/__init__.py -> build/lib/selenium/test/selenium/webdriver/chrome
copying py/test/selenium/webdriver/chrome/test_chrome_api.py -> build/lib/selenium/test/selenium/webdriver/chrome
copying py/test/selenium/webdriver/chrome/test_chrome_children_finding.py -> build/lib/selenium/test/selenium/webdriver/chrome
copying py/test/selenium/webdriver/chrome/test_chrome_cookie.py -> build/lib/selenium/test/selenium/webdriver/chrome
copying py/test/selenium/webdriver/chrome/test_chrome_correct_event_firing.py -> build/lib/selenium/test/selenium/webdriver/chrome
copying py/test/selenium/webdriver/chrome/test_chrome_driver_element_finding.py -> build/lib/selenium/test/selenium/webdriver/chrome
copying py/test/selenium/webdriver/chrome/test_chrome_element_attribute.py -> build/lib/selenium/test/selenium/webdriver/chrome
copying py/test/selenium/webdriver/chrome/test_chrome_executing_async_javascript_test.py -> build/lib/selenium/test/selenium/webdriver/chrome
copying py/test/selenium/webdriver/chrome/test_chrome_executing_javascript_test.py -> build/lib/selenium/test/selenium/webdriver/chrome
copying py/test/selenium/webdriver/chrome/test_chrome_form_handling.py -> build/lib/selenium/test/selenium/webdriver/chrome
copying py/test/selenium/webdriver/chrome/test_chrome_implicit_waits.py -> build/lib/selenium/test/selenium/webdriver/chrome
copying py/test/selenium/webdriver/chrome/test_chrome_page_loading.py -> build/lib/selenium/test/selenium/webdriver/chrome
copying py/test/selenium/webdriver/chrome/test_chrome_rendered_webelement.py -> build/lib/selenium/test/selenium/webdriver/chrome
copying py/test/selenium/webdriver/chrome/test_chrome_select_element_handling.py -> build/lib/selenium/test/selenium/webdriver/chrome
copying py/test/selenium/webdriver/chrome/test_chrome_stale_references.py -> build/lib/selenium/test/selenium/webdriver/chrome
copying py/test/selenium/webdriver/chrome/test_chrome_text_handling_tests.py -> build/lib/selenium/test/selenium/webdriver/chrome
copying py/test/selenium/webdriver/chrome/test_chrome_visibility_tests.py -> build/lib/selenium/test/selenium/webdriver/chrome
creating build/lib/selenium/test/selenium/webdriver/common
copying py/test/selenium/webdriver/common/__init__.py -> build/lib/selenium/test/selenium/webdriver/common
copying py/test/selenium/webdriver/common/alerts_tests.py -> build/lib/selenium/test/selenium/webdriver/common
copying py/test/selenium/webdriver/common/api_examples.py -> build/lib/selenium/test/selenium/webdriver/common
copying py/test/selenium/webdriver/common/children_finding_tests.py -> build/lib/selenium/test/selenium/webdriver/common
copying py/test/selenium/webdriver/common/cookie_tests.py -> build/lib/selenium/test/selenium/webdriver/common
copying py/test/selenium/webdriver/common/correct_event_firing_tests.py -> build/lib/selenium/test/selenium/webdriver/common
copying py/test/selenium/webdriver/common/driver_element_finding_test.py -> build/lib/selenium/test/selenium/webdriver/common
copying py/test/selenium/webdriver/common/element_attribute_tests.py -> build/lib/selenium/test/selenium/webdriver/common
copying py/test/selenium/webdriver/common/example2.py -> build/lib/selenium/test/selenium/webdriver/common
copying py/test/selenium/webdriver/common/executing_async_javascript_test.py -> build/lib/selenium/test/selenium/webdriver/common
copying py/test/selenium/webdriver/common/executing_javascript_test.py -> build/lib/selenium/test/selenium/webdriver/common
copying py/test/selenium/webdriver/common/form_handling_tests.py -> build/lib/selenium/test/selenium/webdriver/common
copying py/test/selenium/webdriver/common/frame_switching_tests.py -> build/lib/selenium/test/selenium/webdriver/common
copying py/test/selenium/webdriver/common/google_one_box.py -> build/lib/selenium/test/selenium/webdriver/common
copying py/test/selenium/webdriver/common/implicit_waits_tests.py -> build/lib/selenium/test/selenium/webdriver/common
copying py/test/selenium/webdriver/common/interactions_tests.py -> build/lib/selenium/test/selenium/webdriver/common
copying py/test/selenium/webdriver/common/page_loader.py -> build/lib/selenium/test/selenium/webdriver/common
copying py/test/selenium/webdriver/common/page_loading_tests.py -> build/lib/selenium/test/selenium/webdriver/common
copying py/test/selenium/webdriver/common/rendered_webelement_tests.py -> build/lib/selenium/test/selenium/webdriver/common
copying py/test/selenium/webdriver/common/results_page.py -> build/lib/selenium/test/selenium/webdriver/common
copying py/test/selenium/webdriver/common/select_element_handling_tests.py -> build/lib/selenium/test/selenium/webdriver/common
copying py/test/selenium/webdriver/common/stale_reference_tests.py -> build/lib/selenium/test/selenium/webdriver/common
copying py/test/selenium/webdriver/common/text_handling_tests.py -> build/lib/selenium/test/selenium/webdriver/common
copying py/test/selenium/webdriver/common/typing_tests.py -> build/lib/selenium/test/selenium/webdriver/common
copying py/test/selenium/webdriver/common/utils.py -> build/lib/selenium/test/selenium/webdriver/common
copying py/test/selenium/webdriver/common/visibility_tests.py -> build/lib/selenium/test/selenium/webdriver/common
copying py/test/selenium/webdriver/common/webserver.py -> build/lib/selenium/test/selenium/webdriver/common
creating build/lib/selenium/test/selenium/webdriver/firefox
copying py/test/selenium/webdriver/firefox/__init__.py -> build/lib/selenium/test/selenium/webdriver/firefox
copying py/test/selenium/webdriver/firefox/profile_tests.py -> build/lib/selenium/test/selenium/webdriver/firefox
copying py/test/selenium/webdriver/firefox/test_ff_alerts.py -> build/lib/selenium/test/selenium/webdriver/firefox
copying py/test/selenium/webdriver/firefox/test_ff_api.py -> build/lib/selenium/test/selenium/webdriver/firefox
copying py/test/selenium/webdriver/firefox/test_ff_children_finding.py -> build/lib/selenium/test/selenium/webdriver/firefox
copying py/test/selenium/webdriver/firefox/test_ff_cookie.py -> build/lib/selenium/test/selenium/webdriver/firefox
copying py/test/selenium/webdriver/firefox/test_ff_correct_event_firing.py -> build/lib/selenium/test/selenium/webdriver/firefox
copying py/test/selenium/webdriver/firefox/test_ff_driver_element_finding.py -> build/lib/selenium/test/selenium/webdriver/firefox
copying py/test/selenium/webdriver/firefox/test_ff_element_attribute.py -> build/lib/selenium/test/selenium/webdriver/firefox
copying py/test/selenium/webdriver/firefox/test_ff_executing_async_javascript_test.py -> build/lib/selenium/test/selenium/webdriver/firefox
copying py/test/selenium/webdriver/firefox/test_ff_executing_javascript_test.py -> build/lib/selenium/test/selenium/webdriver/firefox
copying py/test/selenium/webdriver/firefox/test_ff_form_handling.py -> build/lib/selenium/test/selenium/webdriver/firefox
copying py/test/selenium/webdriver/firefox/test_ff_frame_switching.py -> build/lib/selenium/test/selenium/webdriver/firefox
copying py/test/selenium/webdriver/firefox/test_ff_implicit_waits.py -> build/lib/selenium/test/selenium/webdriver/firefox
copying py/test/selenium/webdriver/firefox/test_ff_interactions.py -> build/lib/selenium/test/selenium/webdriver/firefox
copying py/test/selenium/webdriver/firefox/test_ff_launcher.py -> build/lib/selenium/test/selenium/webdriver/firefox
copying py/test/selenium/webdriver/firefox/test_ff_page_loading.py -> build/lib/selenium/test/selenium/webdriver/firefox
copying py/test/selenium/webdriver/firefox/test_ff_profile_tests.py -> build/lib/selenium/test/selenium/webdriver/firefox
copying py/test/selenium/webdriver/firefox/test_ff_rendered_webelement.py -> build/lib/selenium/test/selenium/webdriver/firefox
copying py/test/selenium/webdriver/firefox/test_ff_select_element_handling.py -> build/lib/selenium/test/selenium/webdriver/firefox
copying py/test/selenium/webdriver/firefox/test_ff_stale_references.py -> build/lib/selenium/test/selenium/webdriver/firefox
copying py/test/selenium/webdriver/firefox/test_ff_text_handling_tests.py -> build/lib/selenium/test/selenium/webdriver/firefox
copying py/test/selenium/webdriver/firefox/test_ff_typing_tests.py -> build/lib/selenium/test/selenium/webdriver/firefox
copying py/test/selenium/webdriver/firefox/test_ff_visibility_tests.py -> build/lib/selenium/test/selenium/webdriver/firefox
creating build/lib/selenium/test/selenium/webdriver/ie
copying py/test/selenium/webdriver/ie/__init__.py -> build/lib/selenium/test/selenium/webdriver/ie
copying py/test/selenium/webdriver/ie/test_ie_alerts.py -> build/lib/selenium/test/selenium/webdriver/ie
copying py/test/selenium/webdriver/ie/test_ie_api.py -> build/lib/selenium/test/selenium/webdriver/ie
copying py/test/selenium/webdriver/ie/test_ie_children_finding.py -> build/lib/selenium/test/selenium/webdriver/ie
copying py/test/selenium/webdriver/ie/test_ie_correct_event_firing.py -> build/lib/selenium/test/selenium/webdriver/ie
copying py/test/selenium/webdriver/ie/test_ie_driver_element_finding.py -> build/lib/selenium/test/selenium/webdriver/ie
copying py/test/selenium/webdriver/ie/test_ie_element_attribute.py -> build/lib/selenium/test/selenium/webdriver/ie
copying py/test/selenium/webdriver/ie/test_ie_executing_async_javascript_test.py -> build/lib/selenium/test/selenium/webdriver/ie
copying py/test/selenium/webdriver/ie/test_ie_executing_javascript_test.py -> build/lib/selenium/test/selenium/webdriver/ie
copying py/test/selenium/webdriver/ie/test_ie_form_handling.py -> build/lib/selenium/test/selenium/webdriver/ie
copying py/test/selenium/webdriver/ie/test_ie_frame_switching.py -> build/lib/selenium/test/selenium/webdriver/ie
copying py/test/selenium/webdriver/ie/test_ie_implicit_waits.py -> build/lib/selenium/test/selenium/webdriver/ie
copying py/test/selenium/webdriver/ie/test_ie_page_loading.py -> build/lib/selenium/test/selenium/webdriver/ie
copying py/test/selenium/webdriver/ie/test_ie_rendered_webelement.py -> build/lib/selenium/test/selenium/webdriver/ie
copying py/test/selenium/webdriver/ie/test_ie_select_element_handling.py -> build/lib/selenium/test/selenium/webdriver/ie
copying py/test/selenium/webdriver/ie/test_ie_stale_references.py -> build/lib/selenium/test/selenium/webdriver/ie
copying py/test/selenium/webdriver/ie/test_ie_text_handling_tests.py -> build/lib/selenium/test/selenium/webdriver/ie
copying py/test/selenium/webdriver/ie/test_ie_typing_tests.py -> build/lib/selenium/test/selenium/webdriver/ie
copying py/test/selenium/webdriver/ie/test_ie_visibility_tests.py -> build/lib/selenium/test/selenium/webdriver/ie
creating build/lib/selenium/test/selenium/webdriver/remote
copying py/test/selenium/webdriver/remote/__init__.py -> build/lib/selenium/test/selenium/webdriver/remote
copying py/test/selenium/webdriver/remote/test_remote_api.py -> build/lib/selenium/test/selenium/webdriver/remote
copying py/test/selenium/webdriver/remote/test_remote_authenticated_server.py -> build/lib/selenium/test/selenium/webdriver/remote
copying py/test/selenium/webdriver/remote/test_remote_children_finding.py -> build/lib/selenium/test/selenium/webdriver/remote
copying py/test/selenium/webdriver/remote/test_remote_cookie.py -> build/lib/selenium/test/selenium/webdriver/remote
copying py/test/selenium/webdriver/remote/test_remote_correct_firing_tests.py -> build/lib/selenium/test/selenium/webdriver/remote
copying py/test/selenium/webdriver/remote/test_remote_driver_element_finding.py -> build/lib/selenium/test/selenium/webdriver/remote
copying py/test/selenium/webdriver/remote/test_remote_element_attribute.py -> build/lib/selenium/test/selenium/webdriver/remote
copying py/test/selenium/webdriver/remote/test_remote_executing_async_javascript_test.py -> build/lib/selenium/test/selenium/webdriver/remote
copying py/test/selenium/webdriver/remote/test_remote_executing_javascript_test.py -> build/lib/selenium/test/selenium/webdriver/remote
copying py/test/selenium/webdriver/remote/test_remote_form_handling.py -> build/lib/selenium/test/selenium/webdriver/remote
copying py/test/selenium/webdriver/remote/test_remote_frametesting.py -> build/lib/selenium/test/selenium/webdriver/remote
copying py/test/selenium/webdriver/remote/test_remote_implicit_waits.py -> build/lib/selenium/test/selenium/webdriver/remote
copying py/test/selenium/webdriver/remote/test_remote_interactions.py -> build/lib/selenium/test/selenium/webdriver/remote
copying py/test/selenium/webdriver/remote/test_remote_page_loading.py -> build/lib/selenium/test/selenium/webdriver/remote
copying py/test/selenium/webdriver/remote/test_remote_rendered_webelement.py -> build/lib/selenium/test/selenium/webdriver/remote
copying py/test/selenium/webdriver/remote/test_remote_select_element_handling.py -> build/lib/selenium/test/selenium/webdriver/remote
copying py/test/selenium/webdriver/remote/test_remote_stale_references.py -> build/lib/selenium/test/selenium/webdriver/remote
copying py/test/selenium/webdriver/remote/test_remote_text_handling_tests.py -> build/lib/selenium/test/selenium/webdriver/remote
copying py/test/selenium/webdriver/remote/test_remote_typing_keys.py -> build/lib/selenium/test/selenium/webdriver/remote
copying py/test/selenium/webdriver/remote/test_remote_visibility_tests.py -> build/lib/selenium/test/selenium/webdriver/remote
creating build/lib/selenium/webdriver
copying py/selenium/webdriver/__init__.py -> build/lib/selenium/webdriver
creating build/lib/selenium/webdriver/chrome
copying py/selenium/webdriver/chrome/__init__.py -> build/lib/selenium/webdriver/chrome
copying py/selenium/webdriver/chrome/service.py -> build/lib/selenium/webdriver/chrome
copying py/selenium/webdriver/chrome/webdriver.py -> build/lib/selenium/webdriver/chrome
creating build/lib/selenium/webdriver/common
copying py/selenium/webdriver/common/__init__.py -> build/lib/selenium/webdriver/common
copying py/selenium/webdriver/common/action_chains.py -> build/lib/selenium/webdriver/common
copying py/selenium/webdriver/common/alert.py -> build/lib/selenium/webdriver/common
copying py/selenium/webdriver/common/by.py -> build/lib/selenium/webdriver/common
copying py/selenium/webdriver/common/desired_capabilities.py -> build/lib/selenium/webdriver/common
copying py/selenium/webdriver/common/keys.py -> build/lib/selenium/webdriver/common
copying py/selenium/webdriver/common/utils.py -> build/lib/selenium/webdriver/common
creating build/lib/selenium/webdriver/firefox
copying py/selenium/webdriver/firefox/__init__.py -> build/lib/selenium/webdriver/firefox
copying py/selenium/webdriver/firefox/extension_connection.py -> build/lib/selenium/webdriver/firefox
copying py/selenium/webdriver/firefox/firefox_binary.py -> build/lib/selenium/webdriver/firefox
copying py/selenium/webdriver/firefox/firefox_profile.py -> build/lib/selenium/webdriver/firefox
copying py/selenium/webdriver/firefox/webdriver.py -> build/lib/selenium/webdriver/firefox
creating build/lib/selenium/webdriver/ie
copying py/selenium/webdriver/ie/__init__.py -> build/lib/selenium/webdriver/ie
copying py/selenium/webdriver/ie/webdriver.py -> build/lib/selenium/webdriver/ie
creating build/lib/selenium/webdriver/remote
copying py/selenium/webdriver/remote/__init__.py -> build/lib/selenium/webdriver/remote
copying py/selenium/webdriver/remote/command.py -> build/lib/selenium/webdriver/remote
copying py/selenium/webdriver/remote/errorhandler.py -> build/lib/selenium/webdriver/remote
copying py/selenium/webdriver/remote/remote_connection.py -> build/lib/selenium/webdriver/remote
copying py/selenium/webdriver/remote/utils.py -> build/lib/selenium/webdriver/remote
copying py/selenium/webdriver/remote/webdriver.py -> build/lib/selenium/webdriver/remote
copying py/selenium/webdriver/remote/webelement.py -> build/lib/selenium/webdriver/remote
running egg_info
writing requirements to selenium.egg-info/requires.txt
writing selenium.egg-info/PKG-INFO
writing top-level names to selenium.egg-info/top_level.txt
writing dependency_links to selenium.egg-info/dependency_links.txt
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.zip' under directory 'py/selenium/webdriver/chrome'
warning: no files found matching '__init__.py'
writing manifest file 'selenium.egg-info/SOURCES.txt'
creating build/lib/selenium/webdriver/emulation
copying py/selenium/webdriver/emulation/__init__.py -> build/lib/selenium/webdriver/emulation
copying py/selenium/webdriver/emulation/base.py -> build/lib/selenium/webdriver/emulation
copying py/selenium/webdriver/emulation/navigation.py -> build/lib/selenium/webdriver/emulation
copying py/selenium/webdriver/emulation/selenium1.py -> build/lib/selenium/webdriver/emulation
copying py/selenium/webdriver/firefox/webdriver.xpi -> build/lib/selenium/webdriver/firefox
copying py/selenium/webdriver/ie/IEDriver.dll -> build/lib/selenium/webdriver/ie
build/python/bin/py.test build/lib/selenium/test/selenium/webdriver/remote
============================= test session starts ==============================
platform darwin -- Python 2.6.6 -- pytest-2.0.3
collecting ... collected 261 items
build/lib/selenium/test/selenium/webdriver/remote/test_remote_api.py ............................
build/lib/selenium/test/selenium/webdriver/remote/test_remote_authenticated_server.py .
build/lib/selenium/test/selenium/webdriver/remote/test_remote_children_finding.py .................
build/lib/selenium/test/selenium/webdriver/remote/test_remote_cookie.py ....F.F
build/lib/selenium/test/selenium/webdriver/remote/test_remote_correct_firing_tests.py ...........
build/lib/selenium/test/selenium/webdriver/remote/test_remote_driver_element_finding.py ................
build/lib/selenium/test/selenium/webdriver/remote/test_remote_element_attribute.py .................
build/lib/selenium/test/selenium/webdriver/remote/test_remote_executing_async_javascript_test.py ................
build/lib/selenium/test/selenium/webdriver/remote/test_remote_executing_javascript_test.py ....................
build/lib/selenium/test/selenium/webdriver/remote/test_remote_form_handling.py .......................
build/lib/selenium/test/selenium/webdriver/remote/test_remote_frametesting.py .................
build/lib/selenium/test/selenium/webdriver/remote/test_remote_implicit_waits.py ......
build/lib/selenium/test/selenium/webdriver/remote/test_remote_interactions.py .FFFFFF
build/lib/selenium/test/selenium/webdriver/remote/test_remote_page_loading.py ........
build/lib/selenium/test/selenium/webdriver/remote/test_remote_rendered_webelement.py ...
build/lib/selenium/test/selenium/webdriver/remote/test_remote_select_element_handling.py ..
build/lib/selenium/test/selenium/webdriver/remote/test_remote_stale_references.py ...
build/lib/selenium/test/selenium/webdriver/remote/test_remote_text_handling_tests.py ..............s.......
build/lib/selenium/test/selenium/webdriver/remote/test_remote_typing_keys.py ............................
build/lib/selenium/test/selenium/webdriver/remote/test_remote_visibility_tests.py .........
=================================== FAILURES ===================================
______________________ RemoteCookieTest.testGetAllCookies ______________________
self = <selenium.test.selenium.webdriver.remote.test_remote_cookie.RemoteCookieTest testMethod=testGetAllCookies>
def testGetAllCookies(self):
key1 = "key_%d" % int(random.random()*10000000)
key2 = "key_%d" % int(random.random()*10000000)
cookies = self.driver.get_cookies()
count = len(cookies)
one = {"name" :key1,
"value": "value"}
two = {"name":key2,
"value": "value"}
> self.driver.add_cookie(one)
build/lib/selenium/test/selenium/webdriver/common/cookie_tests.py:69:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.remote.webdriver.WebDriver object at 0x13fc970>
cookie_dict = {'name': 'key_1042262', 'value': 'value'}
def add_cookie(self, cookie_dict):
"""Adds a cookie to your current session.
Args:
cookie_dict: A dictionary object, with the desired cookie name as the key, and
the value being the desired contents.
Usage:
driver.add_cookie({'foo': 'bar',})
"""
> self.execute(Command.ADD_COOKIE, {'cookie': cookie_dict})
build/lib/selenium/webdriver/remote/webdriver.py:496:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.remote.webdriver.WebDriver object at 0x13fc970>
driver_command = 'addCookie'
params = {'cookie': {'name': 'key_1042262', 'value': 'value'}, 'sessionId': u'1307631198481'}
def execute(self, driver_command, params=None):
"""Sends a command to be executed by a command.CommandExecutor.
Args:
driver_command: The name of the command to execute as a string.
params: A dictionary of named parameters to send with the command.
Returns:
The command's JSON response loaded into a dictionary object.
"""
if not params:
params = {'sessionId': self.session_id}
elif 'sessionId' not in params:
params['sessionId'] = self.session_id
params = self._wrap_value(params)
response = self.command_executor.execute(driver_command, params)
if response:
> self.error_handler.check_response(response)
build/lib/selenium/webdriver/remote/webdriver.py:144:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x13fccd0>
response = {u'class': u'org.openqa.selenium.remote.Response', u'hCode': 1900376452, u'sessionId': u'1307631198481', u'status': 13, ...}
def check_response(self, response):
"""
Checks that a JSON response from the WebDriver does not have an error.
Args:
response - The JSON response from the WebDriver server as a dictionary
object.
Raises:
If the response contains an error message.
"""
status = response['status']
if status == ErrorCode.SUCCESS:
return
exception_class = ErrorInResponseException
if status == ErrorCode.NO_SUCH_ELEMENT:
exception_class = NoSuchElementException
elif status == ErrorCode.NO_SUCH_FRAME:
exception_class = NoSuchFrameException
elif status == ErrorCode.NO_SUCH_WINDOW:
exception_class = NoSuchWindowException
elif status == ErrorCode.STALE_ELEMENT_REFERENCE:
exception_class = StaleElementReferenceException
elif status == ErrorCode.ELEMENT_NOT_VISIBLE:
exception_class = ElementNotVisibleException
elif status == ErrorCode.INVALID_ELEMENT_STATE:
exception_class = WebDriverException
elif status == ErrorCode.ELEMENT_IS_NOT_SELECTABLE:
exception_class = ElementNotSelectableException
elif status == ErrorCode.INVALID_COOKIE_DOMAIN:
exception_class = WebDriverException
elif status == ErrorCode.UNABLE_TO_SET_COOKIE:
exception_class = WebDriverException
elif status == ErrorCode.TIMEOUT:
exception_class = TimeoutException
elif status == ErrorCode.UNKNOWN_ERROR:
exception_class = WebDriverException
else:
exception_class = WebDriverException
value = response['value']
if type(value) is str:
if exception_class == ErrorInResponseException:
raise exception_class(response, value)
raise exception_class(value)
message = ''
if 'message' in value:
message = value['message']
# TODO: What about 'screen' and 'stackTrace'?
if exception_class == ErrorInResponseException:
raise exception_class(response, message)
> raise exception_class(message)
E WebDriverException: None
build/lib/selenium/webdriver/remote/errorhandler.py:100: WebDriverException
_________ RemoteCookieTest.testShouldNotDeleteCookiesWithASimilarName __________
self = <selenium.test.selenium.webdriver.remote.test_remote_cookie.RemoteCookieTest testMethod=testShouldNotDeleteCookiesWithASimilarName>
def testShouldNotDeleteCookiesWithASimilarName(self):
cookieOneName = "fish"
cookie1 = {"name" :cookieOneName,
"value":"cod"}
cookie2 = {"name" :cookieOneName + "x",
"value": "earth"}
> self.driver.add_cookie(cookie1)
build/lib/selenium/test/selenium/webdriver/common/cookie_tests.py:82:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.remote.webdriver.WebDriver object at 0x13fc970>
cookie_dict = {'name': 'fish', 'value': 'cod'}
def add_cookie(self, cookie_dict):
"""Adds a cookie to your current session.
Args:
cookie_dict: A dictionary object, with the desired cookie name as the key, and
the value being the desired contents.
Usage:
driver.add_cookie({'foo': 'bar',})
"""
> self.execute(Command.ADD_COOKIE, {'cookie': cookie_dict})
build/lib/selenium/webdriver/remote/webdriver.py:496:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.remote.webdriver.WebDriver object at 0x13fc970>
driver_command = 'addCookie'
params = {'cookie': {'name': 'fish', 'value': 'cod'}, 'sessionId': u'1307631198481'}
def execute(self, driver_command, params=None):
"""Sends a command to be executed by a command.CommandExecutor.
Args:
driver_command: The name of the command to execute as a string.
params: A dictionary of named parameters to send with the command.
Returns:
The command's JSON response loaded into a dictionary object.
"""
if not params:
params = {'sessionId': self.session_id}
elif 'sessionId' not in params:
params['sessionId'] = self.session_id
params = self._wrap_value(params)
response = self.command_executor.execute(driver_command, params)
if response:
> self.error_handler.check_response(response)
build/lib/selenium/webdriver/remote/webdriver.py:144:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x13fccd0>
response = {u'class': u'org.openqa.selenium.remote.Response', u'hCode': 761944781, u'sessionId': u'1307631198481', u'status': 13, ...}
def check_response(self, response):
"""
Checks that a JSON response from the WebDriver does not have an error.
Args:
response - The JSON response from the WebDriver server as a dictionary
object.
Raises:
If the response contains an error message.
"""
status = response['status']
if status == ErrorCode.SUCCESS:
return
exception_class = ErrorInResponseException
if status == ErrorCode.NO_SUCH_ELEMENT:
exception_class = NoSuchElementException
elif status == ErrorCode.NO_SUCH_FRAME:
exception_class = NoSuchFrameException
elif status == ErrorCode.NO_SUCH_WINDOW:
exception_class = NoSuchWindowException
elif status == ErrorCode.STALE_ELEMENT_REFERENCE:
exception_class = StaleElementReferenceException
elif status == ErrorCode.ELEMENT_NOT_VISIBLE:
exception_class = ElementNotVisibleException
elif status == ErrorCode.INVALID_ELEMENT_STATE:
exception_class = WebDriverException
elif status == ErrorCode.ELEMENT_IS_NOT_SELECTABLE:
exception_class = ElementNotSelectableException
elif status == ErrorCode.INVALID_COOKIE_DOMAIN:
exception_class = WebDriverException
elif status == ErrorCode.UNABLE_TO_SET_COOKIE:
exception_class = WebDriverException
elif status == ErrorCode.TIMEOUT:
exception_class = TimeoutException
elif status == ErrorCode.UNKNOWN_ERROR:
exception_class = WebDriverException
else:
exception_class = WebDriverException
value = response['value']
if type(value) is str:
if exception_class == ErrorInResponseException:
raise exception_class(response, value)
raise exception_class(value)
message = ''
if 'message' in value:
message = value['message']
# TODO: What about 'screen' and 'stackTrace'?
if exception_class == ErrorInResponseException:
raise exception_class(response, message)
> raise exception_class(message)
E WebDriverException: None
build/lib/selenium/webdriver/remote/errorhandler.py:100: WebDriverException
______________ RemoteAdvancedUserInteractionTest.testContextClick ______________
self = <selenium.test.selenium.webdriver.remote.test_remote_interactions.RemoteAdvancedUserInteractionTest testMethod=testContextClick>
def testContextClick(self):
"""Copied from org.openqa.selenium.interactions.TestBasicMouseInterface."""
self._loadPage("javascriptPage")
toContextClick = self.driver.find_element_by_id("doubleClickField")
contextClick = ActionChains(self.driver) \
.context_click(toContextClick)
> contextClick.perform()
build/lib/selenium/test/selenium/webdriver/common/interactions_tests.py:120:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.common.action_chains.ActionChains object at 0x2723f90>
def perform(self):
"""Performs all stored actions."""
for action in self._actions:
> action()
build/lib/selenium/webdriver/common/action_chains.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self._actions.append(lambda:
> self._driver.execute(Command.MOVE_TO, {'element': to_element.id}))
build/lib/selenium/webdriver/common/action_chains.py:139:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.remote.webdriver.WebDriver object at 0x271a070>
driver_command = 'mouseMoveTo'
params = {'element': u'0', 'sessionId': u'1307631198490'}
def execute(self, driver_command, params=None):
"""Sends a command to be executed by a command.CommandExecutor.
Args:
driver_command: The name of the command to execute as a string.
params: A dictionary of named parameters to send with the command.
Returns:
The command's JSON response loaded into a dictionary object.
"""
if not params:
params = {'sessionId': self.session_id}
elif 'sessionId' not in params:
params['sessionId'] = self.session_id
params = self._wrap_value(params)
response = self.command_executor.execute(driver_command, params)
if response:
> self.error_handler.check_response(response)
build/lib/selenium/webdriver/remote/webdriver.py:144:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x2730450>
response = {u'class': u'org.openqa.selenium.remote.Response', u'hCode': 871135670, u'sessionId': u'1307631198490', u'status': 12, ...}
def check_response(self, response):
"""
Checks that a JSON response from the WebDriver does not have an error.
Args:
response - The JSON response from the WebDriver server as a dictionary
object.
Raises:
If the response contains an error message.
"""
status = response['status']
if status == ErrorCode.SUCCESS:
return
exception_class = ErrorInResponseException
if status == ErrorCode.NO_SUCH_ELEMENT:
exception_class = NoSuchElementException
elif status == ErrorCode.NO_SUCH_FRAME:
exception_class = NoSuchFrameException
elif status == ErrorCode.NO_SUCH_WINDOW:
exception_class = NoSuchWindowException
elif status == ErrorCode.STALE_ELEMENT_REFERENCE:
exception_class = StaleElementReferenceException
elif status == ErrorCode.ELEMENT_NOT_VISIBLE:
exception_class = ElementNotVisibleException
elif status == ErrorCode.INVALID_ELEMENT_STATE:
exception_class = WebDriverException
elif status == ErrorCode.ELEMENT_IS_NOT_SELECTABLE:
exception_class = ElementNotSelectableException
elif status == ErrorCode.INVALID_COOKIE_DOMAIN:
exception_class = WebDriverException
elif status == ErrorCode.UNABLE_TO_SET_COOKIE:
exception_class = WebDriverException
elif status == ErrorCode.TIMEOUT:
exception_class = TimeoutException
elif status == ErrorCode.UNKNOWN_ERROR:
exception_class = WebDriverException
else:
exception_class = WebDriverException
value = response['value']
if type(value) is str:
if exception_class == ErrorInResponseException:
raise exception_class(response, value)
raise exception_class(value)
message = ''
if 'message' in value:
message = value['message']
# TODO: What about 'screen' and 'stackTrace'?
if exception_class == ErrorInResponseException:
raise exception_class(response, message)
> raise exception_class(message)
E WebDriverException: Cannot perform native interaction: native events are disabled on this platform.
E System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.6.7', java.version: '1.6.0_24'
E Driver info: driver.version: RemoteWebDriver
build/lib/selenium/webdriver/remote/errorhandler.py:100: WebDriverException
______________ RemoteAdvancedUserInteractionTest.testDoubleClick _______________
self = <selenium.test.selenium.webdriver.remote.test_remote_interactions.RemoteAdvancedUserInteractionTest testMethod=testDoubleClick>
def testDoubleClick(self):
"""Copied from org.openqa.selenium.interactions.TestBasicMouseInterface."""
self._loadPage("javascriptPage")
toDoubleClick = self.driver.find_element_by_id("doubleClickField")
dblClick = ActionChains(self.driver) \
.double_click(toDoubleClick)
> dblClick.perform()
build/lib/selenium/test/selenium/webdriver/common/interactions_tests.py:109:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.common.action_chains.ActionChains object at 0x271a670>
def perform(self):
"""Performs all stored actions."""
for action in self._actions:
> action()
build/lib/selenium/webdriver/common/action_chains.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self._actions.append(lambda:
> self._driver.execute(Command.MOVE_TO, {'element': to_element.id}))
build/lib/selenium/webdriver/common/action_chains.py:139:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.remote.webdriver.WebDriver object at 0x271a070>
driver_command = 'mouseMoveTo'
params = {'element': u'1', 'sessionId': u'1307631198490'}
def execute(self, driver_command, params=None):
"""Sends a command to be executed by a command.CommandExecutor.
Args:
driver_command: The name of the command to execute as a string.
params: A dictionary of named parameters to send with the command.
Returns:
The command's JSON response loaded into a dictionary object.
"""
if not params:
params = {'sessionId': self.session_id}
elif 'sessionId' not in params:
params['sessionId'] = self.session_id
params = self._wrap_value(params)
response = self.command_executor.execute(driver_command, params)
if response:
> self.error_handler.check_response(response)
build/lib/selenium/webdriver/remote/webdriver.py:144:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x2730450>
response = {u'class': u'org.openqa.selenium.remote.Response', u'hCode': 1761272406, u'sessionId': u'1307631198490', u'status': 12, ...}
def check_response(self, response):
"""
Checks that a JSON response from the WebDriver does not have an error.
Args:
response - The JSON response from the WebDriver server as a dictionary
object.
Raises:
If the response contains an error message.
"""
status = response['status']
if status == ErrorCode.SUCCESS:
return
exception_class = ErrorInResponseException
if status == ErrorCode.NO_SUCH_ELEMENT:
exception_class = NoSuchElementException
elif status == ErrorCode.NO_SUCH_FRAME:
exception_class = NoSuchFrameException
elif status == ErrorCode.NO_SUCH_WINDOW:
exception_class = NoSuchWindowException
elif status == ErrorCode.STALE_ELEMENT_REFERENCE:
exception_class = StaleElementReferenceException
elif status == ErrorCode.ELEMENT_NOT_VISIBLE:
exception_class = ElementNotVisibleException
elif status == ErrorCode.INVALID_ELEMENT_STATE:
exception_class = WebDriverException
elif status == ErrorCode.ELEMENT_IS_NOT_SELECTABLE:
exception_class = ElementNotSelectableException
elif status == ErrorCode.INVALID_COOKIE_DOMAIN:
exception_class = WebDriverException
elif status == ErrorCode.UNABLE_TO_SET_COOKIE:
exception_class = WebDriverException
elif status == ErrorCode.TIMEOUT:
exception_class = TimeoutException
elif status == ErrorCode.UNKNOWN_ERROR:
exception_class = WebDriverException
else:
exception_class = WebDriverException
value = response['value']
if type(value) is str:
if exception_class == ErrorInResponseException:
raise exception_class(response, value)
raise exception_class(value)
message = ''
if 'message' in value:
message = value['message']
# TODO: What about 'screen' and 'stackTrace'?
if exception_class == ErrorInResponseException:
raise exception_class(response, message)
> raise exception_class(message)
E WebDriverException: Cannot perform native interaction: native events are disabled on this platform.
E System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.6.7', java.version: '1.6.0_24'
E Driver info: driver.version: RemoteWebDriver
build/lib/selenium/webdriver/remote/errorhandler.py:100: WebDriverException
______________ RemoteAdvancedUserInteractionTest.testDragAndDrop _______________
self = <selenium.test.selenium.webdriver.remote.test_remote_interactions.RemoteAdvancedUserInteractionTest testMethod=testDragAndDrop>
def testDragAndDrop(self):
"""Copied from org.openqa.selenium.interactions.TestBasicMouseInterface."""
self._loadPage("droppableItems")
waitEndTime = time.time() + 15
while (not self._isElementAvailable("draggable") and
time.time() < waitEndTime):
time.sleep(0.2)
if not self._isElementAvailable("draggable"):
raise "Could not find draggable element after 15 seconds."
toDrag = self.driver.find_element_by_id("draggable")
dropInto = self.driver.find_element_by_id("droppable")
holdDrag = ActionChains(self.driver) \
.click_and_hold(toDrag)
move = ActionChains(self.driver) \
.move_to_element(dropInto)
drop = ActionChains(self.driver).release(dropInto)
> holdDrag.perform()
build/lib/selenium/test/selenium/webdriver/common/interactions_tests.py:93:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.common.action_chains.ActionChains object at 0x27303b0>
def perform(self):
"""Performs all stored actions."""
for action in self._actions:
> action()
build/lib/selenium/webdriver/common/action_chains.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self._actions.append(lambda:
> self._driver.execute(Command.MOVE_TO, {'element': to_element.id}))
build/lib/selenium/webdriver/common/action_chains.py:139:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.remote.webdriver.WebDriver object at 0x271a070>
driver_command = 'mouseMoveTo'
params = {'element': u'4', 'sessionId': u'1307631198490'}
def execute(self, driver_command, params=None):
"""Sends a command to be executed by a command.CommandExecutor.
Args:
driver_command: The name of the command to execute as a string.
params: A dictionary of named parameters to send with the command.
Returns:
The command's JSON response loaded into a dictionary object.
"""
if not params:
params = {'sessionId': self.session_id}
elif 'sessionId' not in params:
params['sessionId'] = self.session_id
params = self._wrap_value(params)
response = self.command_executor.execute(driver_command, params)
if response:
> self.error_handler.check_response(response)
build/lib/selenium/webdriver/remote/webdriver.py:144:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x2730450>
response = {u'class': u'org.openqa.selenium.remote.Response', u'hCode': 621052164, u'sessionId': u'1307631198490', u'status': 12, ...}
def check_response(self, response):
"""
Checks that a JSON response from the WebDriver does not have an error.
Args:
response - The JSON response from the WebDriver server as a dictionary
object.
Raises:
If the response contains an error message.
"""
status = response['status']
if status == ErrorCode.SUCCESS:
return
exception_class = ErrorInResponseException
if status == ErrorCode.NO_SUCH_ELEMENT:
exception_class = NoSuchElementException
elif status == ErrorCode.NO_SUCH_FRAME:
exception_class = NoSuchFrameException
elif status == ErrorCode.NO_SUCH_WINDOW:
exception_class = NoSuchWindowException
elif status == ErrorCode.STALE_ELEMENT_REFERENCE:
exception_class = StaleElementReferenceException
elif status == ErrorCode.ELEMENT_NOT_VISIBLE:
exception_class = ElementNotVisibleException
elif status == ErrorCode.INVALID_ELEMENT_STATE:
exception_class = WebDriverException
elif status == ErrorCode.ELEMENT_IS_NOT_SELECTABLE:
exception_class = ElementNotSelectableException
elif status == ErrorCode.INVALID_COOKIE_DOMAIN:
exception_class = WebDriverException
elif status == ErrorCode.UNABLE_TO_SET_COOKIE:
exception_class = WebDriverException
elif status == ErrorCode.TIMEOUT:
exception_class = TimeoutException
elif status == ErrorCode.UNKNOWN_ERROR:
exception_class = WebDriverException
else:
exception_class = WebDriverException
value = response['value']
if type(value) is str:
if exception_class == ErrorInResponseException:
raise exception_class(response, value)
raise exception_class(value)
message = ''
if 'message' in value:
message = value['message']
# TODO: What about 'screen' and 'stackTrace'?
if exception_class == ErrorInResponseException:
raise exception_class(response, message)
> raise exception_class(message)
E WebDriverException: Cannot perform native interaction: native events are disabled on this platform.
E System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.6.7', java.version: '1.6.0_24'
E Driver info: driver.version: RemoteWebDriver
build/lib/selenium/webdriver/remote/errorhandler.py:100: WebDriverException
RemoteAdvancedUserInteractionTest.testDraggingElementWithMouseMovesItToAnotherList
self = <selenium.test.selenium.webdriver.remote.test_remote_interactions.RemoteAdvancedUserInteractionTest testMethod=testDraggingElementWithMouseMovesItToAnotherList>
def testDraggingElementWithMouseMovesItToAnotherList(self):
"""Copied from org.openqa.selenium.interactions.TestBasicMouseInterface."""
> self.performDragAndDropWithMouse()
build/lib/selenium/test/selenium/webdriver/common/interactions_tests.py:52:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.test.selenium.webdriver.remote.test_remote_interactions.RemoteAdvancedUserInteractionTest testMethod=testDraggingElementWithMouseMovesItToAnotherList>
def performDragAndDropWithMouse(self):
"""Copied from org.openqa.selenium.interactions.TestBasicMouseInterface."""
self._loadPage("draggableLists")
dragReporter = self.driver.find_element_by_id("dragging_reports")
toDrag = self.driver.find_element_by_id("rightitem-3")
dragInto = self.driver.find_element_by_id("sortable1")
holdItem = ActionChains(self.driver).click_and_hold(toDrag)
moveToSpecificItem = ActionChains(self.driver) \
.move_to_element(self.driver.find_element_by_id("leftitem-4"))
moveToOtherList = ActionChains(self.driver).move_to_element(dragInto)
drop = ActionChains(self.driver).release(dragInto)
self.assertEqual("Nothing happened.", dragReporter.text)
> holdItem.perform()
build/lib/selenium/test/selenium/webdriver/common/interactions_tests.py:43:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.common.action_chains.ActionChains object at 0x271a710>
def perform(self):
"""Performs all stored actions."""
for action in self._actions:
> action()
build/lib/selenium/webdriver/common/action_chains.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self._actions.append(lambda:
> self._driver.execute(Command.MOVE_TO, {'element': to_element.id}))
build/lib/selenium/webdriver/common/action_chains.py:139:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.remote.webdriver.WebDriver object at 0x271a070>
driver_command = 'mouseMoveTo'
params = {'element': u'7', 'sessionId': u'1307631198490'}
def execute(self, driver_command, params=None):
"""Sends a command to be executed by a command.CommandExecutor.
Args:
driver_command: The name of the command to execute as a string.
params: A dictionary of named parameters to send with the command.
Returns:
The command's JSON response loaded into a dictionary object.
"""
if not params:
params = {'sessionId': self.session_id}
elif 'sessionId' not in params:
params['sessionId'] = self.session_id
params = self._wrap_value(params)
response = self.command_executor.execute(driver_command, params)
if response:
> self.error_handler.check_response(response)
build/lib/selenium/webdriver/remote/webdriver.py:144:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x2730450>
response = {u'class': u'org.openqa.selenium.remote.Response', u'hCode': 734484695, u'sessionId': u'1307631198490', u'status': 12, ...}
def check_response(self, response):
"""
Checks that a JSON response from the WebDriver does not have an error.
Args:
response - The JSON response from the WebDriver server as a dictionary
object.
Raises:
If the response contains an error message.
"""
status = response['status']
if status == ErrorCode.SUCCESS:
return
exception_class = ErrorInResponseException
if status == ErrorCode.NO_SUCH_ELEMENT:
exception_class = NoSuchElementException
elif status == ErrorCode.NO_SUCH_FRAME:
exception_class = NoSuchFrameException
elif status == ErrorCode.NO_SUCH_WINDOW:
exception_class = NoSuchWindowException
elif status == ErrorCode.STALE_ELEMENT_REFERENCE:
exception_class = StaleElementReferenceException
elif status == ErrorCode.ELEMENT_NOT_VISIBLE:
exception_class = ElementNotVisibleException
elif status == ErrorCode.INVALID_ELEMENT_STATE:
exception_class = WebDriverException
elif status == ErrorCode.ELEMENT_IS_NOT_SELECTABLE:
exception_class = ElementNotSelectableException
elif status == ErrorCode.INVALID_COOKIE_DOMAIN:
exception_class = WebDriverException
elif status == ErrorCode.UNABLE_TO_SET_COOKIE:
exception_class = WebDriverException
elif status == ErrorCode.TIMEOUT:
exception_class = TimeoutException
elif status == ErrorCode.UNKNOWN_ERROR:
exception_class = WebDriverException
else:
exception_class = WebDriverException
value = response['value']
if type(value) is str:
if exception_class == ErrorInResponseException:
raise exception_class(response, value)
raise exception_class(value)
message = ''
if 'message' in value:
message = value['message']
# TODO: What about 'screen' and 'stackTrace'?
if exception_class == ErrorInResponseException:
raise exception_class(response, message)
> raise exception_class(message)
E WebDriverException: Cannot perform native interaction: native events are disabled on this platform.
E System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.6.7', java.version: '1.6.0_24'
E Driver info: driver.version: RemoteWebDriver
build/lib/selenium/webdriver/remote/errorhandler.py:100: WebDriverException
______________ RemoteAdvancedUserInteractionTest.testMoveAndClick ______________
self = <selenium.test.selenium.webdriver.remote.test_remote_interactions.RemoteAdvancedUserInteractionTest testMethod=testMoveAndClick>
def testMoveAndClick(self):
"""Copied from org.openqa.selenium.interactions.TestBasicMouseInterface."""
self._loadPage("javascriptPage")
toClick = self.driver.find_element_by_id("clickField")
click = ActionChains(self.driver) \
.move_to_element(toClick) \
.click()
> click.perform()
build/lib/selenium/test/selenium/webdriver/common/interactions_tests.py:133:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.common.action_chains.ActionChains object at 0x2730030>
def perform(self):
"""Performs all stored actions."""
for action in self._actions:
> action()
build/lib/selenium/webdriver/common/action_chains.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self._actions.append(lambda:
> self._driver.execute(Command.MOVE_TO, {'element': to_element.id}))
build/lib/selenium/webdriver/common/action_chains.py:139:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.remote.webdriver.WebDriver object at 0x271a070>
driver_command = 'mouseMoveTo'
params = {'element': u'10', 'sessionId': u'1307631198490'}
def execute(self, driver_command, params=None):
"""Sends a command to be executed by a command.CommandExecutor.
Args:
driver_command: The name of the command to execute as a string.
params: A dictionary of named parameters to send with the command.
Returns:
The command's JSON response loaded into a dictionary object.
"""
if not params:
params = {'sessionId': self.session_id}
elif 'sessionId' not in params:
params['sessionId'] = self.session_id
params = self._wrap_value(params)
response = self.command_executor.execute(driver_command, params)
if response:
> self.error_handler.check_response(response)
build/lib/selenium/webdriver/remote/webdriver.py:144:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x2730450>
response = {u'class': u'org.openqa.selenium.remote.Response', u'hCode': 1106573842, u'sessionId': u'1307631198490', u'status': 12, ...}
def check_response(self, response):
"""
Checks that a JSON response from the WebDriver does not have an error.
Args:
response - The JSON response from the WebDriver server as a dictionary
object.
Raises:
If the response contains an error message.
"""
status = response['status']
if status == ErrorCode.SUCCESS:
return
exception_class = ErrorInResponseException
if status == ErrorCode.NO_SUCH_ELEMENT:
exception_class = NoSuchElementException
elif status == ErrorCode.NO_SUCH_FRAME:
exception_class = NoSuchFrameException
elif status == ErrorCode.NO_SUCH_WINDOW:
exception_class = NoSuchWindowException
elif status == ErrorCode.STALE_ELEMENT_REFERENCE:
exception_class = StaleElementReferenceException
elif status == ErrorCode.ELEMENT_NOT_VISIBLE:
exception_class = ElementNotVisibleException
elif status == ErrorCode.INVALID_ELEMENT_STATE:
exception_class = WebDriverException
elif status == ErrorCode.ELEMENT_IS_NOT_SELECTABLE:
exception_class = ElementNotSelectableException
elif status == ErrorCode.INVALID_COOKIE_DOMAIN:
exception_class = WebDriverException
elif status == ErrorCode.UNABLE_TO_SET_COOKIE:
exception_class = WebDriverException
elif status == ErrorCode.TIMEOUT:
exception_class = TimeoutException
elif status == ErrorCode.UNKNOWN_ERROR:
exception_class = WebDriverException
else:
exception_class = WebDriverException
value = response['value']
if type(value) is str:
if exception_class == ErrorInResponseException:
raise exception_class(response, value)
raise exception_class(value)
message = ''
if 'message' in value:
message = value['message']
# TODO: What about 'screen' and 'stackTrace'?
if exception_class == ErrorInResponseException:
raise exception_class(response, message)
> raise exception_class(message)
E WebDriverException: Cannot perform native interaction: native events are disabled on this platform.
E System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.6.7', java.version: '1.6.0_24'
E Driver info: driver.version: RemoteWebDriver
build/lib/selenium/webdriver/remote/errorhandler.py:100: WebDriverException
_________ RemoteAdvancedUserInteractionTest.testSelectingMultipleItems _________
self = <selenium.test.selenium.webdriver.remote.test_remote_interactions.RemoteAdvancedUserInteractionTest testMethod=testSelectingMultipleItems>
def testSelectingMultipleItems(self):
"""Copied from org.openqa.selenium.interactions.CombinedInputActionsTest."""
self._loadPage("selectableItems")
reportingElement = self.driver.find_element_by_id("infodiv")
self.assertEqual("no info", reportingElement.text)
listItems = self.driver.find_elements_by_tag_name("li")
selectThreeItems = ActionChains(self.driver) \
.key_down(Keys.CONTROL) \
.click(listItems[1]) \
.click(listItems[3]) \
.click(listItems[5]) \
.key_up(Keys.CONTROL)
> selectThreeItems.perform()
build/lib/selenium/test/selenium/webdriver/common/interactions_tests.py:188:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.common.action_chains.ActionChains object at 0x271aa70>
def perform(self):
"""Performs all stored actions."""
for action in self._actions:
> action()
build/lib/selenium/webdriver/common/action_chains.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self._actions.append(lambda:
self._driver.execute(Command.SEND_MODIFIER_KEY_TO_ACTIVE_ELEMENT, {
"value": key,
> "isdown": True}))
build/lib/selenium/webdriver/common/action_chains.py:104:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.remote.webdriver.WebDriver object at 0x271a070>
driver_command = 'sendModifierKeyToActiveElement'
params = {'isdown': True, 'sessionId': u'1307631198490', 'value': u'\ue009'}
def execute(self, driver_command, params=None):
"""Sends a command to be executed by a command.CommandExecutor.
Args:
driver_command: The name of the command to execute as a string.
params: A dictionary of named parameters to send with the command.
Returns:
The command's JSON response loaded into a dictionary object.
"""
if not params:
params = {'sessionId': self.session_id}
elif 'sessionId' not in params:
params['sessionId'] = self.session_id
params = self._wrap_value(params)
response = self.command_executor.execute(driver_command, params)
if response:
> self.error_handler.check_response(response)
build/lib/selenium/webdriver/remote/webdriver.py:144:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x2730450>
response = {u'class': u'org.openqa.selenium.remote.Response', u'hCode': 2043003902, u'sessionId': u'1307631198490', u'status': 13, ...}
def check_response(self, response):
"""
Checks that a JSON response from the WebDriver does not have an error.
Args:
response - The JSON response from the WebDriver server as a dictionary
object.
Raises:
If the response contains an error message.
"""
status = response['status']
if status == ErrorCode.SUCCESS:
return
exception_class = ErrorInResponseException
if status == ErrorCode.NO_SUCH_ELEMENT:
exception_class = NoSuchElementException
elif status == ErrorCode.NO_SUCH_FRAME:
exception_class = NoSuchFrameException
elif status == ErrorCode.NO_SUCH_WINDOW:
exception_class = NoSuchWindowException
elif status == ErrorCode.STALE_ELEMENT_REFERENCE:
exception_class = StaleElementReferenceException
elif status == ErrorCode.ELEMENT_NOT_VISIBLE:
exception_class = ElementNotVisibleException
elif status == ErrorCode.INVALID_ELEMENT_STATE:
exception_class = WebDriverException
elif status == ErrorCode.ELEMENT_IS_NOT_SELECTABLE:
exception_class = ElementNotSelectableException
elif status == ErrorCode.INVALID_COOKIE_DOMAIN:
exception_class = WebDriverException
elif status == ErrorCode.UNABLE_TO_SET_COOKIE:
exception_class = WebDriverException
elif status == ErrorCode.TIMEOUT:
exception_class = TimeoutException
elif status == ErrorCode.UNKNOWN_ERROR:
exception_class = WebDriverException
else:
exception_class = WebDriverException
value = response['value']
if type(value) is str:
if exception_class == ErrorInResponseException:
raise exception_class(response, value)
raise exception_class(value)
message = ''
if 'message' in value:
message = value['message']
# TODO: What about 'screen' and 'stackTrace'?
if exception_class == ErrorInResponseException:
raise exception_class(response, message)
> raise exception_class(message)
E WebDriverException: Unrecognized command: POST /session/45b1a5a8-103f-c447-992a-a544317f7a8d/modifier
E System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.6.7', java.version: '1.6.0_24'
E Driver info: driver.version: RemoteWebDriver
build/lib/selenium/webdriver/remote/errorhandler.py:100: WebDriverException
============== 8 failed, 252 passed, 1 skipped in 121.38 seconds ===============
go aborted!
Command failed with status (1): [build/python/bin/py.test build/lib/seleniu...]
/development/selenium/Rakefile:474:in `(root)'
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment