Fix login button
All checks were successful
Push image to registry / build-image (push) Successful in 6m47s
All checks were successful
Push image to registry / build-image (push) Successful in 6m47s
This commit is contained in:
@ -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}\")]]"));
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user