Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding details to grabAttributeFrom() #10

Merged
merged 1 commit into from
Feb 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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