Skip to content

Instantly share code, notes, and snippets.

@illicitonion
Created October 5, 2011 15:58
Show Gist options
  • Select an option

  • Save illicitonion/1264811 to your computer and use it in GitHub Desktop.

Select an option

Save illicitonion/1264811 to your computer and use it in GitHub Desktop.
danielwh@danielwh:/usr/local/google/danielwh/wcs/selenium3/trunk$ svn info
Path: .
URL: https://selenium.googlecode.com/svn/trunk
Repository Root: https://selenium.googlecode.com/svn
Repository UUID: 07704840-8298-11de-bf8c-fd130f914ac9
Revision: 14046
Node Kind: directory
Schedule: normal
Last Changed Author: dawagner
Last Changed Rev: 14046
Last Changed Date: 2011-10-05 16:46:14 +0100 (Wed, 05 Oct 2011)
danielwh@danielwh:/usr/local/google/danielwh/wcs/selenium3/trunk$ svn st
X iphone/lib/buildtime-src/json-framework/project
X iphone/lib/buildtime-src/cocoahttpserver/project
Performing status on external item at 'iphone/lib/buildtime-src/json-framework/project'
Performing status on external item at 'iphone/lib/buildtime-src/cocoahttpserver/project'
danielwh@danielwh:/usr/local/google/danielwh/wcs/selenium3/trunk$ rm -rf build
danielwh@danielwh:/usr/local/google/danielwh/wcs/selenium3/trunk$ firefox --version
Mozilla Firefox 7.0
danielwh@danielwh:/usr/local/google/danielwh/wcs/selenium3/trunk$ ./go clean //rb:firefox native=true
(in /usr/local/google/danielwh/wcs/selenium3/trunk)
Preparing: //rb:common in build/rb
Preparing: //rb:remote in build/rb
Compiling: //javascript/firefox-driver:synthetic_mouse as build/javascript/firefox-driver/synthetic_mouse.js
Building: //javascript/firefox-driver:command_processor_xpt as build/javascript/firefox-driver/nsICommandProcessor.xpt
Building: //javascript/firefox-driver:coordinates_xpt as build/javascript/firefox-driver/wdICoordinate.xpt
Building: //javascript/firefox-driver:httpd_xpt as build/javascript/firefox-driver/nsIHttpServer.xpt
Building: //javascript/firefox-driver:mouse_xpt as build/javascript/firefox-driver/wdIMouse.xpt
Building: //javascript/firefox-driver:response_handler_xpt as build/javascript/firefox-driver/nsIResponseHandler.xpt
Building: //javascript/firefox-driver:status_xpt as build/javascript/firefox-driver/wdIStatus.xpt
Building: //cpp:native_events_xpt as build/cpp/nsINativeEvents.xpt
Falling back to cpp/prebuilt/Win32/Release/webdriver-firefox.dll
Falling back to cpp/prebuilt/Win32/Release/webdriver-firefox-5.dll
Falling back to cpp/prebuilt/Win32/Release/webdriver-firefox-6.dll
Falling back to cpp/prebuilt/Win32/Release/webdriver-firefox-7.dll
Falling back to cpp/prebuilt/Win32/Release/imehandler.dll
Compiling an xpcom component: //cpp:webdriver_firefox_ff3 as build/cpp/i386/libwebdriver_firefox_ff3.so
Compiling an xpcom component: //cpp:webdriver_firefox_ff4 as build/cpp/i386/libwebdriver_firefox_ff4.so
Compiling an xpcom component: //cpp:webdriver_firefox_ff5 as build/cpp/i386/libwebdriver_firefox_ff5.so
Compiling an xpcom component: //cpp:webdriver_firefox_ff6 as build/cpp/i386/libwebdriver_firefox_ff6.so
Using cached Gecko SDK: /home/danielwh/.crazyfun/http___releases.mozilla.org_pub_mozilla.org_xulrunner_releases_7.0.1_sdk_xulrunner_7.0.1.en_US.linux_i686.sdk.tar.bz2
Unpacking: http___releases.mozilla.org_pub_mozilla.org_xulrunner_releases_7.0.1_sdk_xulrunner_7.0.1.en_US.linux_i686.sdk.tar.bz2 to third_party/gecko-7
Compiling an xpcom component: //cpp:webdriver_firefox_ff7 as build/cpp/i386/libwebdriver_firefox_ff7.so
Compiling an xpcom component: //cpp:webdriver_firefox_ff4_64 as build/cpp/amd64/libwebdriver_firefox_ff4_64.so
Compiling an xpcom component: //cpp:webdriver_firefox_ff5_64 as build/cpp/amd64/libwebdriver_firefox_ff5_64.so
Compiling an xpcom component: //cpp:webdriver_firefox_ff6_64 as build/cpp/amd64/libwebdriver_firefox_ff6_64.so
Using cached Gecko SDK: /home/danielwh/.crazyfun/http___releases.mozilla.org_pub_mozilla.org_xulrunner_releases_7.0.1_sdk_xulrunner_7.0.1.en_US.linux_x86_64.sdk.tar.bz2
Unpacking: http___releases.mozilla.org_pub_mozilla.org_xulrunner_releases_7.0.1_sdk_xulrunner_7.0.1.en_US.linux_x86_64.sdk.tar.bz2 to third_party/gecko-7
Compiling an xpcom component: //cpp:webdriver_firefox_ff7_64 as build/cpp/amd64/libwebdriver_firefox_ff7_64.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
Compiling: //cpp:noblur64 as build/cpp/amd64/libnoblur64.so
Preparing: //rb:firefox in build/rb
danielwh@danielwh:/usr/local/google/danielwh/wcs/selenium3/trunk$ ./go //rb:firefox-test offline=true native=true
(in /usr/local/google/danielwh/wcs/selenium3/trunk)
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/net:net as build/java/client/src/org/openqa/selenium/net/net.jar
Compiling: //java/client/test/org/openqa/selenium/internal:utils as build/java/client/test/org/openqa/selenium/internal/utils.jar
Compiling: //java/client/test/org/openqa/selenium/environment/webserver:webserver as build/java/client/test/org/openqa/selenium/environment/webserver/webserver.jar
Compiling: //java/client/test/org/openqa/selenium/environment:environment as build/java/client/test/org/openqa/selenium/environment/environment.jar
Preparing: //rb:common in build/rb
Preparing: //rb:remote in build/rb
Preparing: //rb:firefox in build/rb
Running: firefox ruby tests
ruby -I rb/spec/integration:build/rb/lib:rb/spec -rthird_party/jruby/json-jruby.jar -rthird_party/jruby/rubyzip.jar -rthird_party/jruby/childprocess.jar -rthird_party/jruby/rack.jar -rthird_party/jruby/webmock.jar -S rspec --format CI::Reporter::RSpec --format s --color rb/spec/integration/selenium/webdriver/options_spec.rb rb/spec/integration/selenium/webdriver/keyboard_spec.rb rb/spec/integration/selenium/webdriver/target_locator_spec.rb rb/spec/integration/selenium/webdriver/driver_spec.rb rb/spec/integration/selenium/webdriver/element_spec.rb rb/spec/integration/selenium/webdriver/zipper_spec.rb rb/spec/integration/selenium/webdriver/error_spec.rb rb/spec/integration/selenium/webdriver/mouse_spec.rb rb/spec/integration/selenium/webdriver/timeout_spec.rb rb/spec/integration/selenium/webdriver/navigation_spec.rb rb/spec/integration/selenium/webdriver/firefox/driver_spec.rb rb/spec/integration/selenium/webdriver/firefox/profile_spec.rb
creating test env :: jruby 1.6.0.dev (ruby 1.8.7 patchlevel 330) (2011-07-06 e1fe932) (OpenJDK Client VM 1.6.0-google-v4) [linux-i386-java]
Options
cookie management
JRuby limited openssl loaded. http://jruby.org/openssl
gem install jruby-openssl for full support.
. should get all
. should delete one
. should delete all
. should use DateTime for expires
WebDriver::TargetLocator
. should switch to a frame
. should switch to a frame by Element
. should switch to a window and back when given a block
. should handle exceptions inside the block
. should switch to a window
. should use the original window if the block closes the popup
. should switch to default content
. should find active element
alerts
. allows the user to accept an alert
. allows the user to dismiss an alert
. allows the user to set the value of a prompt
. allows the user to get the text of an alert
. raises NoAlertOpenError if no alert is present
Driver
. should get the page title
. should get the page source
. should refresh the page
. should save a screenshot
. should return a screenshot in the specified format
. raises an error when given an unknown format
one element
. should find by id
. should find by field name
. should find by class name
. should find by link text
. should find by xpath
. should find by css selector
. should find by tag name
. should find child element
. should find child element by tag name
. should raise on nonexistant element
. should find elements with a hash selector
. should find elements with the shortcut syntax
many elements
. should find by class name
. should find by css selector
. should find children by field name
execute script
. should return strings
. should return numbers
. should return elements
. should unwrap elements in deep objects
. should return booleans
. should raise if the script is bad
. should return arrays
. should be able to call functions on the page
. should be able to pass string arguments
. should be able to pass boolean arguments
. should be able to pass numeric arguments
. should be able to pass element arguments
. should be able to pass in multiple arguments
execute async script
. should be able to return arrays of primitives from async scripts
. should be able to pass multiple arguments to async scripts
. times out if the callback is not invoked
Element
. should click
. should submit
. should send string keys
. should send key presses
. should handle file uploads
. should get attribute value
. should return nil for non-existent attributes
. should clear
. should get and set selected
. should get enabled
. should get text
. should get displayed
. should get location
. should get location once scrolled into view
. should get size
. should get css property
. should know when two elements are equal
. should know when two elements are not equal
. should return the same #hash for equal elements when found by Driver#find_element
. should return the same #hash for equal elements when found by Driver#find_elements
Selenium::WebDriver::Zipper
. zips and unzips a folder
Selenium::WebDriver::Error
. should raise an appropriate error
. should show stack trace information
Selenium::WebDriver::Mouse
. clicks an element
. can drag and drop
. double clicks an element
. context clicks an element
Timeouts
. should implicitly wait for a single element
. should still fail to find an element with implicit waits enabled
. should return after first attempt to find one after disabling implicit waits
. should implicitly wait until at least one element is found when searching for many
. should still fail to find elements when implicit waits are enabled
. should return after first attempt to find many after disabling implicit waits
Navigation
. should navigate back and forward
. should refresh the page
Selenium::WebDriver::Driver
.new
. should take a Firefox::Profile instance as argument
Selenium::WebDriver::Firefox::Profile
. should set additional preferences
. should be serializable to JSON
. should not let user override defaults
. should properly handle escaped characters
. should let the user override some specific prefs
. should raise an error if the value given is not a string, number or boolean
. should raise an error if the value is already stringified
. should enable secure SSL
. should disable secure SSL
. should change the setting for untrusted certificate issuer
. can configure a manual proxy
. can configure a PAC proxy
. can configure an auto-detected proxy
. should be able to use the same profile more than once
Finished in 55.32 seconds
104 examples, 0 failures
Finished in 55.32 seconds
104 examples, 0 failures
Spec guards for this implementation: none.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment