Skip to content

Commit

Permalink
Adding details to grabAttributeFrom()
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasLandauer authored Jan 12, 2024
1 parent 28cb2ed commit 68f239d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Lib/Interfaces/Web.php
Original file line number Diff line number Diff line change
Expand Up @@ -661,8 +661,8 @@ public function grabTextFrom($cssOrXPathOrRegex): mixed;
public function grabValueFrom($field): mixed;

/**
* Grabs the value of the given attribute value from the given element.
* Fails if element is not found.
* 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"`).
* Fails if the element is not found. Returns `null` if the attribute is not present on the element.
*
* ``` php
* <?php
Expand Down

0 comments on commit 68f239d

Please sign in to comment.