Bug 1055088: Update Marionette HtmlElement documentation for is_enabled; r=jgriffin
authorDavid Burns <dburns@mozilla.com>
Tue, 19 Aug 2014 00:07:56 +0100
changeset 200214 f9daf1a7141a76412f8985fa868e748f3f4125fe
parent 200213 ea9d82ca538711559556f0a5422654f29b6e3b17
child 200215 e2dd99b59ec139bbd572407dc34fc185541521a7
push id47838
push userdburns@mozilla.com
push dateMon, 18 Aug 2014 23:08:34 +0000
treeherdermozilla-inbound@f9daf1a7141a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgriffin
bugs1055088
milestone34.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 1055088: Update Marionette HtmlElement documentation for is_enabled; r=jgriffin
testing/marionette/client/marionette/marionette.py
--- a/testing/marionette/client/marionette/marionette.py
+++ b/testing/marionette/client/marionette/marionette.py
@@ -122,17 +122,21 @@ class HTMLElement(object):
     def is_selected(self):
         '''
         Returns True if the element is selected.
         '''
         return self.marionette._send_message('isElementSelected', 'value', id=self.id)
 
     def is_enabled(self):
         '''
-        Returns True if the element is enabled.
+        This command will return False if all the following criteria are met otherwise return True:
+
+        * A form control is disabled.
+        * A HtmlElement has a disabled boolean attribute.
+
         '''
         return self.marionette._send_message('isElementEnabled', 'value', id=self.id)
 
     def is_displayed(self):
         '''
         Returns True if the element is displayed.
         '''
         return self.marionette._send_message('isElementDisplayed', 'value', id=self.id)