Skip to content

Commit

Permalink
Added a check for when they stop presenting us with the accept all co…
Browse files Browse the repository at this point in the history
…okies button.
  • Loading branch information
michaeldrennen committed Jan 26, 2024
1 parent a8672af commit 92aed31
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/Helpers/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,15 @@ public function login(): string {
// 2024-01-19:mdd
// They added the Cookie requirement.
// Click the Accept All Cookies modal
$this->Page->mouse()
->find( '#accept-all-cookies-btn' )
->click();
try {
$this->Page->mouse()
->find( '#accept-all-cookies-btn' )
->click();
$this->Debug->_debug("I clicked the accept all cookies button.");
} catch (\Exception $exception) {
$this->Debug->_debug("They did not present the accept all cookies button.");
}


$this->Debug->_debug( "Filling out user and pass." );
$this->Page->evaluate( "document.querySelector('#uname').value = '" . $this->user . "';" );
Expand Down

0 comments on commit 92aed31

Please sign in to comment.