Fix login button
All checks were successful
Push image to registry / build-image (push) Successful in 6m47s

This commit is contained in:
2025-02-15 13:34:37 +01:00
parent 7151c6adff
commit e6776df487
2 changed files with 4 additions and 2 deletions

View File

@ -272,7 +272,6 @@ abstract class BrowserJob implements ShouldQueue
protected function findElementContainingElementWithText(Browser $browser, string $elementXpath, string $text, bool $ignoreCase = true): RemoteWebElement|null {
try {
if ($ignoreCase) {
dump("{$elementXpath}[.//*[{$this->xpathContainsIgnoreCase($text)}]]");
return $browser->driver->findElement(WebDriverBy::xpath("{$elementXpath}[.//*[{$this->xpathContainsIgnoreCase($text)}]]"));
} else {
return $browser->driver->findElement(WebDriverBy::xpath("{$elementXpath}[.//*[contains(text(), \"{$text}\")]]"));