Bug 1385873 - Add client.Element#selected to WebDriver client. r=automatedtester
authorAndreas Tolfsen <ato@sny.no>
Mon, 31 Jul 2017 15:43:00 +0100
changeset 420821 f5c335bc7d800235413a542cafe93aa6e483c3cb
parent 420820 cc9c4b27f715b8055ffe5a61226eb39e05a9f97f
child 420822 241d6d2bc1096289b596b39d112842d365ef70a5
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersautomatedtester
bugs1385873
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1385873 - Add client.Element#selected to WebDriver client. r=automatedtester MozReview-Commit-ID: 7UhRpsE07b1
testing/web-platform/tests/tools/webdriver/webdriver/client.py
--- a/testing/web-platform/tests/tools/webdriver/webdriver/client.py
+++ b/testing/web-platform/tests/tools/webdriver/webdriver/client.py
@@ -632,15 +632,22 @@ class Element(object):
     def style(self, property_name):
         return self.send_element_command("GET", "css/%s" % property_name)
 
     @property
     @command
     def rect(self):
         return self.send_element_command("GET", "rect")
 
+    @property
     @command
-    def property(self, name):
-        return self.send_element_command("GET", "property/%s" % name)
+    def selected(self):
+        return self.send_element_command("GET", "selected")
 
     @command
     def attribute(self, name):
         return self.send_element_command("GET", "attribute/%s" % name)
+
+    # This MUST come last because otherwise @property decorators above
+    # will be overridden by this.
+    @command
+    def property(self, name):
+        return self.send_element_command("GET", "property/%s" % name)