Commit 2e65aa6c authored by Sascha Girrulat's avatar Sascha Girrulat

Revert "Imported Upstream version 2.29.0"

This reverts commit 4491b733 because of a
missuse of upstream/master branch.
parent 1cd3b5b3
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="src" path="java/server/src"/>
<classpathentry kind="src" path="java/client/src"/>
<classpathentry kind="src" path="java/client/test"/>
<classpathentry kind="src" path="java/server/test"/>
<classpathentry kind="lib" path="third_party/java/junit/junit-dep-4.8.1.jar"/>
<classpathentry kind="lib" path="third_party/java/easymock/easymockclassextension-2.4.jar"/>
<classpathentry kind="lib" path="third_party/java/htmlunit/htmlunit-core-js-2.8.jar"/>
<classpathentry kind="lib" path="third_party/java/bcprov/bcprov-jdk15-135.jar"/>
<classpathentry kind="lib" path="third_party/java/htmlunit/htmlunit-2.8.jar"/>
<classpathentry kind="lib" path="third_party/java/easymock/easymock-2.4.jar"/>
<classpathentry kind="lib" path="third_party/java/apache-httpclient/httpclient-4.0.2.jar"/>
<classpathentry kind="lib" path="third_party/java/apache-httpclient/httpcore-4.0.1.jar"/>
<classpathentry kind="lib" path="third_party/java/apache-httpclient/httpmime-4.0.1.jar"/>
<classpathentry kind="lib" path="third_party/java/cglib/cglib-nodep-2.1_3.jar"/>
<classpathentry kind="lib" path="third_party/java/commons-collections/commons-collections-3.2.1.jar"/>
<classpathentry kind="lib" path="third_party/java/commons-io/commons-io-2.0.1.jar"/>
<classpathentry kind="lib" path="third_party/java/commons-lang/commons-lang-2.4.jar"/>
<classpathentry kind="lib" path="third_party/java/commons-codec/commons-codec-1.4.jar"/>
<classpathentry kind="lib" path="third_party/java/hamcrest/hamcrest-all-1.1.jar"/>
<classpathentry kind="lib" path="third_party/java/commons-logging/commons-logging-1.1.1.jar"/>
<classpathentry kind="lib" path="third_party/java/jna/jna-3.3.0.jar"/>
<classpathentry kind="lib" path="third_party/java/jetty/jetty-lite-7.2.0-repackaged-for-android.jar"/>
<classpathentry kind="lib" path="third_party/java/mx4j/mx4j-tools-3.0.1.jar"/>
<classpathentry kind="lib" path="third_party/java/jetty/jetty-webapp-7.2.0.v20101020.jar"/>
<classpathentry kind="lib" path="third_party/java/json/json-20080701.jar"/>
<classpathentry kind="lib" path="third_party/java/jetty/jetty-server-7.2.0.v20101020.jar"/>
<classpathentry kind="lib" path="third_party/java/jetty/jetty-continuation-7.2.0.v20101020.jar"/>
<classpathentry kind="lib" path="third_party/java/jetty/jetty-xml-7.2.0.v20101020.jar"/>
<classpathentry kind="lib" path="third_party/java/jetty/jetty-http-7.2.0.v20101020.jar"/>
<classpathentry kind="lib" path="third_party/java/jetty/jetty-websocket-7.2.0.v20101020.jar"/>
<classpathentry kind="lib" path="third_party/java/testng/testng-6.0.1-nobsh-noguice.jar" sourcepath="third_party/java/testng/testng-6.0.1-nobsh-noguice-src.jar"/>
<classpathentry kind="lib" path="third_party/java/jetty/jetty-io-7.2.0.v20101020.jar"/>
<classpathentry kind="lib" path="third_party/java/jmock/jmock-2.4.0.jar"/>
<classpathentry kind="lib" path="third_party/java/jetty/jetty-servlets-7.2.0.v20101020.jar"/>
<classpathentry kind="lib" path="third_party/java/jmock/jmock-junit3-2.4.0.jar"/>
<classpathentry kind="lib" path="third_party/java/jetty/jetty-security-7.2.0.v20101020.jar"/>
<classpathentry kind="lib" path="third_party/java/jetty/jetty-util-7.2.0.v20101020.jar"/>
<classpathentry kind="lib" path="third_party/java/servlet-api/servlet-api-2.5-6.1.9.jar"/>
<classpathentry kind="lib" path="third_party/java/jetty/jetty-servlet-7.2.0.v20101020.jar"/>
<classpathentry kind="lib" path="third_party/java/guava-libraries/guava-r09.jar" sourcepath="third_party/java/guava-libraries/guava-r09-src.jar"/>
<classpathentry kind="lib" path="third_party/java/jasper/jasper-compiler-jdt-5.5.15.jar"/>
<classpathentry kind="lib" path="third_party/java/jasper/jasper-compiler-5.5.15.jar"/>
<classpathentry kind="lib" path="third_party/java/jasper/jsp-api-2.0.jar"/>
<classpathentry kind="lib" path="third_party/java/jasper/jasper-runtime-5.5.15.jar"/>
<classpathentry kind="lib" path="third_party/java/yaml/snakeyaml-1.8.jar"/>
<classpathentry kind="lib" path="third_party/java/sac/sac-1.3.jar"/>
<classpathentry kind="lib" path="third_party/java/apache-mime4j/apache-mime4j-0.6.jar"/>
<classpathentry kind="lib" path="third_party/java/xml/xercesImpl-2.9.1.jar"/>
<classpathentry kind="lib" path="third_party/java/cssparser/cssparser-0.9.5.jar"/>
<classpathentry kind="lib" path="third_party/java/nekohtml/nekohtml-1.9.14.jar"/>
<classpathentry kind="lib" path="third_party/java/xml/xalan-2.7.1.jar"/>
<classpathentry kind="lib" path="third_party/java/opera-driver/webdriver-opera-v0.5.2.jar"/>
<classpathentry kind="output" path="out/production/selenium"/>
</classpath>
projectFilesBackup/
*.iws
.DS_Store
.svn
mockpiframe.log
mockpiframe.log.lck
junitvmwatcher*.properties
test-output/
.*.swp
common/build
firefox/build
htmlunit/build
jobbie/build
selenium/build
support/build
iphone/lib/buildtime-src/cocoahttpserver/build/CocoaHTTPServerLibrary.build/Release-iphonesimulator/CocoaHTTPServer.build
iphone/lib/buildtime-src/build/
iphone/build/
/build/
android/client/bin/
android/server/bin/
cpp/IEDriver/IEReturnTypes.h
java/org/openqa/selenium/ie/IeReturnTypes.java
java/client/src/org/openqa/selenium/ie/IeReturnTypes.java
.idea/vcs.xml
.idea/misc.xml
.idea/workspace.xml
.idea/projectCodeStyle.xml
out
cpp/IEDriver/sizzle.h
third_party/gecko-2/linux
third_party/gecko-2/linux64
third_party/gecko-2/win32
third_party/gecko-1.9.2/linux
third_party/gecko-1.9.2/win32
third_party/gecko-5/linux
third_party/gecko-5/linux64
third_party/gecko-5/win32
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>selenium</name>
<comment/>
<projects/>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments/>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
This diff is collapsed.
Credits
=======
The following people have offered help, support and/or code to
WebDriver. If you feel that you should be on this list but aren't,
then please feel free to raise a ticket on the project site
(http://webdriver.googlecode.com) or send an email directly to one of
the project's maintainers.
Cast
====
Joe Walnes
Vyvyan Codd
Zoltar - Knower of All
Carlos Villela
Michael Tamm
James Cooper
Malcolm Rowe
Mirko Nasato
Marc Guillemot
Alexis Vuillemin
Noel Gordon
David Wang
Amitabh Saikia
Julian Harty
Philippe Hanrigou
Jon Spalding
James Strachen
Aslak Hellesoy
Rune Flobakk
Dan Fabulich
Michele Sama
Kenneth Leftin
Darrell Deboer
Muthu Kannan
Terence Haddock
Jean-Francois Roche
Godefroid Chapelle
Kristian Rosenvold
prune *
recursive-include py/selenium/webdriver *.py
recursive-include py/selenium/webdriver/common *.py
recursive-include py/selenium/webdriver/common/html5 *.py
recursive-include py/selenium/common *.py
recursive-include py/selenium/webdriver/chrome *.py
recursive-include py/selenium/webdriver/opera *.py
recursive-include py/selenium/webdriver/phantomjs *.py
recursive-include py/selenium/webdriver/firefox *.py *.xpi
recursive-include py/selenium/webdriver/firefox/x86 *.so
recursive-include py/selenium/webdriver/firefox/amd64 *.so
recursive-include py/selenium/webdriver/ie *.py
recursive-include py/selenium/webdriver/ie *.py *.dll
recursive-include py/selenium/webdriver/remote *.py
recursive-include py/selenium/webdriver/support *.py
include py/selenium/selenium.py
include py/selenium/__init__.py
include docs/api/py/index.rst
include py/CHANGES
include py/README
recursive-include selenium.egg-info *
Metadata-Version: 1.1
Metadata-Version: 1.0
Name: selenium
Version: 2.29.0
Version: 2.2.0
Summary: Python bindings for Selenium
Home-page: http://code.google.com/p/selenium/
Author: UNKNOWN
......@@ -9,7 +9,6 @@ License: UNKNOWN
Description: ============
Introduction
============
:Author: David Burns
Selenium Python Client Driver is a Python language binding for Selenium Remote
......@@ -30,46 +29,42 @@ Description: ============
-------------
::
pip install -U selenium
pip install -U selenium
Java Server
-----------
Download the server from http://selenium.googlecode.com/files/selenium-server-standalone-2.29.0.jar
Download the server from http://selenium.googlecode.com/files/selenium-server-standalone-2.0rc2.jar
::
java -jar selenium-server-standalone-2.29.0.jar
java -jar selenium-server-standalone-2.0rc2.jar
Example
=======
::
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.common.keys import Keys
import time
browser = webdriver.Firefox() # Get local session of firefox
browser.get("http://www.yahoo.com") # Load page
assert "Yahoo!" in browser.title
elem = browser.find_element_by_name("p") # Find the query box
elem.send_keys("seleniumhq" + Keys.RETURN)
time.sleep(0.2) # Let the page load, will be added to the API
try:
browser.find_element_by_xpath("//a[contains(@href,'http://seleniumhq.org')]")
except NoSuchElementException:
assert 0, "can't find seleniumhq"
browser.close()
from selenium import webdriver
from selenium.common.exceptions import NoSuchElementException
from selenium.webdriver.common.keys import Keys
import time
browser = webdriver.Firefox() # Get local session of firefox
browser.get("http://www.yahoo.com") # Load page
assert "Yahoo!" in browser.title
elem = browser.find_element_by_name("p") # Find the query box
elem.send_keys("seleniumhq" + Keys.RETURN)
time.sleep(0.2) # Let the page load, will be added to the API
try:
browser.find_element_by_xpath("//a[contains(@href,'http://seleniumhq.org')]")
except NoSuchElementException:
assert 0, "can't find seleniumhq"
browser.close()
Documentation
=============
Coming soon, in the meantime - `"Use the source Luke"`_
`Auto Generated API <http://selenium.googlecode.com/svn/trunk/docs/api/py/api.html>`_
Use The Source Luke!
====================
http://code.google.com/p/selenium/source/browse/trunk/py/selenium/webdriver/remote/webdriver.py
.. _"Use the source Luke": http://code.google.com/p/selenium/source/browse/trunk/py/selenium/webdriver/remote/webdriver.py
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
......
Selenium 2.0 builds with its own build technology that's good for Windows, Linux and Mac.
# Quick intro
In the same directory as this file, do ...
./go
The order of building modules is determined by the 'go' system itself. If you want to
build an individual module (assuming all dependent modules have previously been build)
try something like ...
./go //javascript/atoms:test:run
In this case, javascript/atoms is the module directory, and "test" is a target
in that directory's build.desc file
As you see 'build targets' scroll past in the log, you may want to run them individually.
'Go' can run them individually, by target name as long as ":run" is appended (see above).
# Requirements
* Java 6 JDK
* "java" and "jar" on the PATH
Although the build system is based on rake it's **strongly advised** to rely on the version of JRuby in third_party/ that is invoked by "go". The only developer type who would want to deviate from this is the "build maintainer" who's experimenting with a JRuby upgrade.
## Optional Requirements
* Python 2.6.x to 2.7 (without this, Python tests will be skipped)
## Internet Explorer Driver
If you plan to compile the IE driver you also need:
* Visual Studio 2008
* 32 and 64 bit cross compilers
The build will work on any platform, but the tests for IE will be skipped silently, if you are not building on Windows.
# Common Tasks
For an express build of the binaries we release run the following from the directory containing the Rakefile:
./go clean release
All build output is placed under the "build" directory. The output can be found under "build/dist". If an error occurs while running this task complaining about a missing Albacore gem, the chances are you're using rvm. If this is the case, switch to the system ruby:
rvm system
Of course, building the entire project can take too long. If you just want to build a single driver, then you can run one of these targets:
./go chrome
./go firefox
./go htmlunit
./go ie
As the build progresses, you'll see it report where the build outputs are being placed. Of course, just building isn't enough. We should really be able to run the tests too. Try:
./go test_chrome
./go test_firefox
./go test_htmlunit
./go test_ie
Note that the "test_chrome" target requires that you have the separate chrome driver binary available on your PATH.
If you are interested in a single language binding, try one of:
./go test_java
./go test_dotnet
./go test_rb
./go test_javascript
To run all the tests just run:
./go test
This will detect your OS and run all the tests that are known to be stable for every browser that's appropriate to use for all language bindings. This can take a healthy amount of time to run.
To run the minimal logical Selenium build:
./go test_javascript test_java
To get a list of tasks you could build, do:
./go -T
As a side note, none of the developers run tests using cygwin. It is very unlikely that the build will work as expected if you try and use cygwin.
# Tour
The code base is generally segmented around the languages used to write the component. Selenium makes extensive use of Javascript, so let's start there. Working on the javascript is easy. First of all, start the development server:
./go debug-server
Now navigate to [http://localhost:2310/javascript](http://localhost:2310/javascript) You'll find the contents of the javascript directory being shown. We use the Closure Library for developing much of the javascript, so now navigate to [http://localhost:2310/javascript/atoms/test](http://localhost:2310/javascript/atoms/test)
The tests in this directory are normal HTML files with names ending with "_test.html". Click on one to load the page and run the test. You can run all the javascript tests using:
./go test_javascript
# Maven POM files
Ignore the Maven POM file present in the same directory. It is only used for releasing to jars to Maven Repository (public or local), and is not considered the main build mechanism.
# Build Output
"./go" only makes a top-level "build" directory. Outputs are placed under that relative to the target name. Which is probably best described with an example. For the target:
//java/client/src/org/openqa/selenium:selenium-api
The output is found under:
build/java/client/src/org/openqa/selenium/selenium-api.jar
If you watch the build, each step should print where its output is going. Java test outputs appear in one of two places: either under build/test_logs for junit or in build/build_log.xml for TestNG tests. If you'd like the build to be chattier, just append "log=true" to the build command line.
# Help with 'Go'
More general, but basic, help for 'go' ...
./go --help
Remember, "go" is just a wrapper around "rake", so you can use the standard rake commands such as "rake -T" to get more information about available targets.
# Maven per se
If it is not clear already, Selenium is not built with Maven, it is built with 'Crazy Fun' though that is invoked with 'go' as outlined above so you do not really have to learn too much about that.
That said, it is possible to relatively quickly build selenium pieces for Maven to use. You are only really going to want to do this when you are testing the cutting-edge of Selenium development (which we welcome) against your application. Here is the quickest way to build and deploy into you local maven repository, while skipping Selenium's own tests.
./go release
cd maven
mvn clean install
This sequence will push some seven or so jars into you local Maven repository with something like 'selenium-server-2.0-SNAPSHOT.jar' as the name.
# Last word on building the bits and pieces of Selenium
Refer [Building Web Driver wiki page](http://code.google.com/p/selenium/wiki/BuildingWebDriver)
This diff is collapsed.
This diff is collapsed.
File added
============
Introduction
============
:Author: David Burns
:Author: David Burns
Selenium Python Client Driver is a Python language binding for Selenium Remote
Control (version 1.0 and 2.0).
......@@ -27,10 +26,10 @@ Python Client
Java Server
-----------
Download the server from http://selenium.googlecode.com/files/selenium-server-standalone-2.29.0.jar
Download the server from http://selenium.googlecode.com/files/selenium-server-standalone-2.0rc2.jar
::
java -jar selenium-server-standalone-2.29.0.jar
java -jar selenium-server-standalone-2.0rc2.jar
Example
=======
......@@ -55,10 +54,6 @@ Example
Documentation
=============
Coming soon, in the meantime - `"Use the source Luke"`_
`Auto Generated API <http://selenium.googlecode.com/svn/trunk/docs/api/py/api.html>`_
Use The Source Luke!
====================
http://code.google.com/p/selenium/source/browse/trunk/py/selenium/webdriver/remote/webdriver.py
.. _"Use the source Luke": http://code.google.com/p/selenium/source/browse/trunk/py/selenium/webdriver/remote/webdriver.py
#!/bin/bash
java -jar third_party/jruby/jruby-complete.jar -S rake $*
@echo off
java -jar third_party\jruby\jruby-complete.jar -S rake %*
default:
android:
# Path to the android sdk
androidsdkpath : "../android_sdk/"
# Target id. To get a list of all targets do "./android list targets".
# We want whatever matches android 2.2 (API level 8)
# Note: Android WebDriver will not work on Gingerbread (SDK 2.3) emulator because of
# an emulator bug. However it will work with Gingerbread (SDK 2.3) devices.
androidtarget : 13
# Android platform. You can find supported platforms under androidsdkpath/platforms/
androidplatform : "android-8"
Selenium 2.28
* "null" can now be passed to executeScript
* Add transparent and extended colour keywords to color support module. Fixes issue 4866
Selenium 2.27
* Added support for phantomjs / ghostdriver
* Fix python client, avoid duplicate chrome option items after reusing options class. Fixes Issue 4744.
* adding colour support to Python. fixes issue 4623
* Adding log_path/service_log_path as named kwargs for chrome
Selenium 2.26
* Added location_when_scrolled_into_view - Bug 4357
* Added new expected_conditions support module to be used with WebDriverWait
Selenium 2.25
* Jython 2.7 Support - Bug 3988
* EventFiringWebDriver added to Support module - Bug 2267
* Added IEDriverServer logging that can be accessed via desired capabilities
* Fixed by data being passed into find_elements - bug 3735
* Removed deprecated ChromeDriver items around desiredcapabilites in favour of chrome options
* Added default values for a number of action_chains calls
Selenium 2.24
* Removing the ctypes approach of invoking IEDriver, you will need to download the IEDriverServer from
https://code.google.com/p/selenium/downloads/list
Selenium 2.23
* Support for FF13 native events
Selenium 2.22
* Moving IEDriver to be able to use IEDriverServer
Selenium 2.21.3
* Fix for File Upload to remote servers
* Better handling of typing in input=file. Bug 3831, 3736
* Better handling of unicode URLS Bug 3740
Selenium 2.21.2
* Fix typing to file input when not using Selenium Server. Bug 3736
Selenium 2.21.1
* focusmanager.testmode messes with native events, removing it.
Selenium 2.21
* Local File upload capabilities for non-remote browser
* Adding maximize_window api call
* Updating default firefox profile to set focusmanager.testmode to true
see https://bugzilla.mozilla.org/show_bug.cgi?id=704583
* bugs fixed: 3506, 3528, 3607
Selenium 2.20
* disable native events for FF on Mac by default
* fix webdriverwait to execute at least once when using 0 timeout
* Fixed Issue 3438
Selenium 2.19
* WebDriverBackedSelenium is now avalaible to all languages
* Addon installation fixes
Selenium 2.18
* Proxy capabilities passing
Selenium 2.17
* OperaDriver can now be invoked by webdriver.Opera()
* Support has been added for ChomeOptions. This deprecates support passing in DesiredCapabilities
* Proxy class to tell the browser a proxy is in use. Currently only for Firefox
Selenium 2.16
* bug fixes
Selenium 2.15
* bug fixes
Selenium 2.14
* Fix for LD_PRELOAD being polluted by WebDriver
* Added Orientation API
* A fix for Error Handling
Selenium 2.13
* Fixed switch_to_window so that it didnt crash Firefox Bug 2633
* Fixed Screenshot handling to work in all browsers. Bug 2829
* Force Firefox to the Foreground
Selenium 2.12
* Added Select as a support pacakge
* Added Beta window size / position api's
* Bug Fixes
Selenium 2.11.0 2.11.1
* no changes just packaging
Selenum 2.10
* "Choose which apps" dialog has been disabled
* Bug Fixes
Selenium 2.9
* Bug Fixes
* Documentation
Selenium 2.8
* Actions updates
* Bug Fixes
Selenium 2.6
* Documentation fixes
Selenium 2.5
* Fixed x64 IE Support
* Bug Fixes
Selenium 2.4
* Bug Fixes
* x64 IE Support
* Added WebDriverWait as a support package
Selenium 2.3
* Bug Fixes
Selenium 2.2
* Ability to get screenshots from Exceptions if they are given
* Access to Remote StackTrace on error
Selenium 2.1
* Bug Fixes
Selenium 2
* Removed toggle() and select()
Selenium 2 RC 3
* Added Opera to Desired Capabilities
* Removed deprecrated methods
* Deprecated toggle() and select() methods. This will be removed in the next release
Selenium 2 Beta 4
* Fix for using existing Firefox Profiles
* Alerts Support in IE
* Fix to dictionary returned from size
* Deprecated value property. Use the get_attribute("value") method
* Deprecated get_page_source method. Use page_source property
* Deprecated get_current_window_handle. Use current_window_handle property
* Deprecated get_window_handles. Use window_handles property
* Ability to install extensions into profiles
* Added Location to the WebElement
* ChromeDriver rewritten to use new built in mechanism
* Added Advanced User Interaction API. Only Available for HTMLUnit at the moment
* Profiles now delete their temp folders when driver.quit() is called
Selenium 2 Beta 3
* Accept Untrusted Certificates in Firefox
* Fixed Screenshots
* Added DesiredCapabilities to simplify choosing Drivers
* Fixed Firefox Profile creation
* Added Firefox 4 support
* DocStrings Improvements
Selenium 2 Beta 2
* New bindings landed. Change webdriver namespace to "selenium.webdriver"
* Ability to move to default content
* Implicit Waits
* Change the API to use properties instead of get_x
* Changed the Element Finding to match other languages
* Added ability to execute asynchronous scripts from the driver
* Ability to get rendered element size
* Ability to get CSS Value on a webelement
* Corrected Element finding from the element
* Alert and Prompt handling
* Improved IEDriver
* Basic Authentication support for Selenium 2
* Ability to have multiple Firefox instances
# Copyright 2008-2010 WebDriver committers
# Copyright 2008-2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from selenium import selenium
__version__ = "2.29.0"
# Copyright 2008-2010 WebDriver committers
# Copyright 2008-2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from selenium import selenium
......@@ -58,65 +58,25 @@ class NoSuchAttributeException(WebDriverException):
pass
class StaleElementReferenceException(WebDriverException):
"""Indicates that a reference to an element is now "stale" --- the
element no longer appears on the DOM of the page."""
pass
class InvalidElementStateException(WebDriverException):
pass
class NoAlertPresentException(WebDriverException):
pass
class ElementNotVisibleException(InvalidElementStateException):
"""Thrown to indicate that although an element is present on the
DOM, it is not visible, and so is not able to be interacted
with."""
pass
class ElementNotSelectableException(InvalidElementStateException):
pass
class InvalidCookieDomainException(WebDriverException):
"""Thrown when attempting to add a cookie under a different domain
than the current URL."""
pass
class UnableToSetCookieException(WebDriverException):
"""Thrown when a driver fails to set a cookie."""
pass
class RemoteDriverServerException(WebDriverException):
pass
class TimeoutException(WebDriverException):
"""Thrown when a command does not complete in enough time."""
pass
class MoveTargetOutOfBoundsException(WebDriverException):
"""Indicates that the target provided to the actions move() method is invalid"""
pass
class UnexpectedTagNameException(WebDriverException):
"""Thrown when a support class did not get an expected web element"""
pass
class InvalidSelectorException(NoSuchElementException):
""" Thrown when the selector which is used to find an element does not return
a WebElement. Currently this only happens when the selector is an xpath
expression is used which is either syntactically invalid (i.e. it is not a
xpath expression) or the expression does not select WebElements
(e.g. "count(//input)").
"""
pass
class ImeNotAvailableException(WebDriverException):
"""
Indicates that IME support is not available. This exception is thrown for every IME-related
method call if IME support is not available on the machine.
"""
pass
class ImeActivationFailedException(WebDriverException):
""" Indicates that activating an IME engine has failed. """
pass
"""
Copyright 2011 Software Freedom Conservancy.
Copyright 2006 ThoughtWorks, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
......@@ -23,8 +23,9 @@ class selenium(object):
"""
Defines an object that runs Selenium commands.
**Element Locators**
Element Locators