summaryrefslogtreecommitdiffstats
path: root/third_party/webdriver
diff options
context:
space:
mode:
authorjmikhail@google.com <jmikhail@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-23 01:37:24 +0000
committerjmikhail@google.com <jmikhail@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-23 01:37:24 +0000
commitfb6a061d07fe4de370d105b72b1d9b1478807f0a (patch)
tree53b1d4ee27e8d729009fdc095ee6d486cb29b7ca /third_party/webdriver
parentca59d8a58b9452331aa8e1a2d5152c62604d5711 (diff)
downloadchromium_src-fb6a061d07fe4de370d105b72b1d9b1478807f0a.zip
chromium_src-fb6a061d07fe4de370d105b72b1d9b1478807f0a.tar.gz
chromium_src-fb6a061d07fe4de370d105b72b1d9b1478807f0a.tar.bz2
Revert 70015 - Implemnts the commands in webdriver to preform searching of elements on a page.
/session/:sessionId/timeouts/implicit_wait /session/:sessionId/element /session/:sessionId/elements /session/:sessionId/element/:id/element /session/:sessionId/element/:id/elements BUG=none TEST=webdriver_remote_tests.py Review URL: http://codereview.chromium.org/3643002 TBR=jmikhail@google.com Review URL: http://codereview.chromium.org/5959005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70017 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/webdriver')
-rw-r--r--third_party/webdriver/py/selenium/remote/webdriver/WebDriver.py11
-rw-r--r--third_party/webdriver/py/selenium/remote/webdriver/command.py1
-rw-r--r--third_party/webdriver/py/selenium/remote/webdriver/remote_connection.py1
3 files changed, 0 insertions, 13 deletions
diff --git a/third_party/webdriver/py/selenium/remote/webdriver/WebDriver.py b/third_party/webdriver/py/selenium/remote/webdriver/WebDriver.py
index 35bff2e..b7246a0 100644
--- a/third_party/webdriver/py/selenium/remote/webdriver/WebDriver.py
+++ b/third_party/webdriver/py/selenium/remote/webdriver/WebDriver.py
@@ -173,17 +173,6 @@ class WebDriver(object):
resp = self._execute(Command.GET_TITLE)
return resp['value']
- def set_implicit_wait(self, wait):
- """Set the amount of time the driver should wait when searching for
- elements. When searching for a single element, the driver should poll
- the page until an element is found or the timeout expires, whichever
- occurs first. When searching for multiple elements, the driver should
- poll the page until at least one element is found or the timeout
- expires, at which point it should return an empty list. If this
- command is never sent, the driver should default to an implicit wait
- of 0ms."""
- self._execute(Command.IMPLICIT_WAIT, {'ms': wait})
-
def find_element_by_id(self, id_):
"""Finds element by id."""
return self._find_element_by("id", id_)
diff --git a/third_party/webdriver/py/selenium/remote/webdriver/command.py b/third_party/webdriver/py/selenium/remote/webdriver/command.py
index b094c5a..3eae3b1 100644
--- a/third_party/webdriver/py/selenium/remote/webdriver/command.py
+++ b/third_party/webdriver/py/selenium/remote/webdriver/command.py
@@ -76,5 +76,4 @@ class Command(object):
GET_ELEMENT_ATTRIBUTE = "getElementAttribute"
GET_ELEMENT_VALUE_OF_CSS_PROPERTY = "getElementValueOfCssProperty"
ELEMENT_EQUALS = "elementEquals"
- IMPLICIT_WAIT = "setImplicitWait"
SCREENSHOT = "screenshot"
diff --git a/third_party/webdriver/py/selenium/remote/webdriver/remote_connection.py b/third_party/webdriver/py/selenium/remote/webdriver/remote_connection.py
index 5556fc9..6c23684 100644
--- a/third_party/webdriver/py/selenium/remote/webdriver/remote_connection.py
+++ b/third_party/webdriver/py/selenium/remote/webdriver/remote_connection.py
@@ -128,7 +128,6 @@ class RemoteConnection(object):
Command.GET_CURRENT_URL: ('GET', '/session/$sessionId/url'),
Command.GET_TITLE: ('GET', '/session/$sessionId/title'),
Command.GET_PAGE_SOURCE: ('GET', '/session/$sessionId/source'),
- Command.IMPLICIT_WAIT: ('POST', '/session/$sessionId/timeouts/implicit_wait'),
Command.SCREENSHOT: ('GET', '/session/$sessionId/screenshot'),
Command.SET_BROWSER_VISIBLE:
('POST', '/session/$sessionId/visible'),