Skip to content
Open
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
10 changes: 10 additions & 0 deletions src/Api/Webpage.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,16 @@ public function value(string $selector): string
return $this->guessLocator($selector)->inputValue();
}

/**
* Call the given Closure with this instance then return the instance.
**/
public function tap(callable $callback): self
{
$callback($this);

return $this;
}

/**
* Gets the locator for the given selector.
*/
Expand Down