Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

add byTag() method to call underlying 'tag name' strategy #17

Merged
merged 1 commit into from about 1 year ago

2 participants

Jonathan Lipps Giorgio Sironi
Jonathan Lipps

No description provided.

Giorgio Sironi giorgiosironi merged commit f41c84d into from
Giorgio Sironi giorgiosironi closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Jan 23, 2013
Jonathan Lipps add byTag() method to call underlying 'tag name' strategy 6db63cd
This page is out of date. Refresh to see the latest.
11  PHPUnit/Extensions/Selenium2TestCase/Session.php
@@ -241,6 +241,15 @@ public function byLinkText($value)
241 241
     }
242 242
 
243 243
     /**
  244
+     * @param string $value     e.g. 'body'
  245
+     * @return PHPUnit_Extensions_Selenium2TestCase_Element
  246
+     */
  247
+    public function byTag($value)
  248
+    {
  249
+        return $this->by('tag name', $value);
  250
+    }
  251
+
  252
+    /**
244 253
      * @param string $strategy     supported by JsonWireProtocol element/ command
245 254
      * @param string $value
246 255
      * @return PHPUnit_Extensions_Selenium2TestCase_Element
@@ -273,7 +282,7 @@ public function element(PHPUnit_Extensions_Selenium2TestCase_ElementCriteria $cr
273 282
      * @return PHPUnit_Extensions_Selenium2TestCase_Element
274 283
      */
275 284
     public function elementFromResponseValue(array $value)
276  
-    { 
  285
+    {
277 286
         return PHPUnit_Extensions_Selenium2TestCase_Element::fromResponseValue($value,
278 287
             $this->url->descend('element'),
279 288
             $this->driver);
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.