File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 1919 * @method string attribute($attributeName) Get the value of an element's attribute.
2020 * @method void clear() Clear a TEXTAREA or text INPUT element's value.
2121 * @method void click() Click on an element.
22- * @method string css($propertyName) Query the value of an element's computed CSS property.
2322 * @method boolean displayed() Determine if an element is currently displayed.
2423 * @method boolean enabled() Determine if an element is currently enabled.
2524 * @method boolean equals($otherId) Test if two element IDs refer to the same DOM element.
@@ -55,7 +54,6 @@ protected function methods()
5554 'attribute ' => array ('GET ' ),
5655 'clear ' => array ('POST ' ),
5756 'click ' => array ('POST ' ),
58- 'css ' => array ('GET ' ),
5957 'enabled ' => array ('GET ' ),
6058 'name ' => array ('GET ' ),
6159 'property ' => array ('GET ' ),
@@ -115,6 +113,20 @@ public function getID()
115113 return $ this ->id ;
116114 }
117115
116+ /**
117+ * Query the value of an element’s computed CSS property: /session/:sessionId/element/:id/css/:propertyName
118+ *
119+ * @param string $propertyName
120+ *
121+ * @return mixed
122+ */
123+ public function css ($ propertyName )
124+ {
125+ $ result = $ this ->curl ('GET ' , "/css/ $ propertyName " );
126+
127+ return $ result ['value ' ];
128+ }
129+
118130 /**
119131 * Get element shadow root: /session/:sessionId/element/:elementId/shadow
120132 *
You can’t perform that action at this time.
0 commit comments