Fix watch button not found
All checks were successful
Push image to registry / build-image (push) Successful in 3m16s

This commit is contained in:
2025-08-25 14:27:08 +02:00
parent 4bf2aac892
commit c92dc08851

View File

@@ -109,7 +109,7 @@ class HellcaseBattlesJob extends HellcaseJob implements ShouldBeUniqueUntilProce
break; break;
} }
$battleLinkButton = $battle->findElement(WebDriverBy::xpath('./div//button[text() = "watch"]')); $battleLinkButton = $battle->findElement(WebDriverBy::xpath("./div//button[.//*[text() = 'watch']]"));
$battleLinkButton->sendKeys("\n"); $battleLinkButton->sendKeys("\n");
sleep(3); sleep(3);
try { // If we still are on the casebattle page, it means the battle was cancelled or something else try { // If we still are on the casebattle page, it means the battle was cancelled or something else