Skip to content

Commit

Permalink
Fix message/types in findCssAndCallMethod().
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed Sep 6, 2024
1 parent 0907b64 commit 7c7c9d0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions module/VuFind/src/VuFindTest/Integration/MinkTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -738,12 +738,12 @@ protected function findCssAndGetHtml(
/**
* Return value of a method of an element selected via CSS; retry if it fails due to DOM change.
*
* @param Element $page Page element
* @param string $selector CSS selector
* @param callable $method Method to call
* @param int $timeout Wait timeout for CSS selection (in ms)
* @param int $index Index of the element (0-based)
* @param int $retries Retry count for set loop
* @param Element $page Page element
* @param string $selector CSS selector
* @param string $method Method to call
* @param int $timeout Wait timeout for CSS selection (in ms)
* @param int $index Index of the element (0-based)
* @param int $retries Retry count for set loop
*
* @return string
*/
Expand Down Expand Up @@ -771,7 +771,7 @@ protected function findCssAndCallMethod(
$this->snooze();
}

throw new \Exception('Failed to get text after ' . $retries . ' attempts.');
throw new \Exception("Failed to call $method on '$selector' after $retries attempts.");
}

/**
Expand Down

0 comments on commit 7c7c9d0

Please sign in to comment.