Skip to content

Commit 08ea766

Browse files
authored
Merge pull request #10 from ThomasLandauer/patch-2
Adding details to `grabAttributeFrom()`
2 parents cea9d53 + 68f239d commit 08ea766

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Lib/Interfaces/Web.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -661,8 +661,8 @@ public function grabTextFrom($cssOrXPathOrRegex): mixed;
661661
public function grabValueFrom($field): mixed;
662662

663663
/**
664-
* Grabs the value of the given attribute value from the given element.
665-
* Fails if element is not found.
664+
* Returns the value of the given attribute value from the given HTML element. For some attributes, the string `true` is returned instead of their literal value (e.g. `disabled="disabled"` or `required="required"`).
665+
* Fails if the element is not found. Returns `null` if the attribute is not present on the element.
666666
*
667667
* ```php
668668
* <?php

0 commit comments

Comments
 (0)