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 { protected function findElementContainingElementWithText(Browser $browser, string $elementXpath, string $text, bool $ignoreCase = true): RemoteWebElement|null {
try { try {
if ($ignoreCase) { if ($ignoreCase) {
dump("{$elementXpath}[.//*[{$this->xpathContainsIgnoreCase($text)}]]");
return $browser->driver->findElement(WebDriverBy::xpath("{$elementXpath}[.//*[{$this->xpathContainsIgnoreCase($text)}]]")); return $browser->driver->findElement(WebDriverBy::xpath("{$elementXpath}[.//*[{$this->xpathContainsIgnoreCase($text)}]]"));
} else { } else {
return $browser->driver->findElement(WebDriverBy::xpath("{$elementXpath}[.//*[contains(text(), \"{$text}\")]]")); return $browser->driver->findElement(WebDriverBy::xpath("{$elementXpath}[.//*[contains(text(), \"{$text}\")]]"));

View File

@ -84,7 +84,10 @@ class HellcaseJob extends BrowserJob
return; return;
} }
$this->waitForAndClickText($browser, "Sign in with Steam"); sleep(5);
$browser->waitForText("Sign in with Steam", 30, true);
sleep(3);
$browser->driver->findElement(WebDriverBy::xpath('//button[@class = "_base_1uydq_1 _accent-1_1uydq_105 _m_1uydq_52 _full_1uydq_94 _primary_1uydq_100"]'))->click();
sleep(5); sleep(5);
// QR CODE SCANNING // QR CODE SCANNING