Fix OK button clicked : more elegant
All checks were successful
Test, build and push image to registry / phpunit-tests (push) Successful in 1m52s
Test, build and push image to registry / build-image (push) Successful in 2m46s

This commit is contained in:
2025-11-07 12:08:40 +01:00
parent 5b5f35e9ce
commit d20702f248

View File

@@ -104,7 +104,7 @@ abstract class InstagramAbstractJob extends BrowserJob implements ShouldBeUnique
$popupsTypes = [ $popupsTypes = [
['//button[contains(text(), "Allow all cookies")]'], // Allow all cookies ['//button[contains(text(), "Allow all cookies")]'], // Allow all cookies
['//button[contains(text(), "Not Now")]', ["Popup Not Now clicked"]], // Not now ['//button[contains(text(), "Not Now")]', ["Popup Not Now clicked"]], // Not now
['//button[contains(text(), "OK")]|//div[contains(text(), "OK")]', ["Popup Ok clicked"]], // OK ['(//button|//div)[contains(text(), "OK")]', ["Popup Ok clicked"]], // OK
]; ];
foreach ($popupsTypes as $popup) { foreach ($popupsTypes as $popup) {