Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Baspa committed Jul 5, 2023
1 parent b8c004f commit c45dedb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Checks/Traits/ChecksForElementOnPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ public function checkExpectedElement(Response $response, string $element)
if (! is_null($this->attribute) && ! is_null($this->text)) {

foreach ($element as $e) {
dd($e, $e->attr($this->attribute), $this->text);
if ($e->attr($this->attribute) == $this->text) {
dd($e, $e->getAttribute($this->attribute), $this->text);
if ($e->getAttribute($this->attribute) == $this->text) {
return true;
}
}
Expand Down

0 comments on commit c45dedb

Please sign in to comment.