Skip to content

Instant alert message cause Curl Operation timed out error #1150

@PavelFil

Description

@PavelFil

Bug description

I use selenium chromium 147.0.7727.55-20260404. When I try to open this simple page:

<!DOCTYPE html>
<html>
<head>
	<script>
		alert('Message alert');
	</script>
</head>
<body>
</body>
</html>

I receive error:

Fatal error:  Uncaught Facebook\WebDriver\Exception\Internal\WebDriverCurlException: Curl error thrown for http GET to /session/431e4aa0304c9583dcca73561885ab24/element/active

Operation timed out after 15002 milliseconds with 0 bytes received in /.../vendor/php-webdriver/webdriver/lib/Exception/Internal/WebDriverCurlException.php:

Only a solution from #1104 (comment) helps.

How could the issue be reproduced

$chromeOptions = new ChromeOptions();
$capabilities = DesiredCapabilities::chrome();
$chromeArgs = [
    '--no-sandbox',
    '--headless',
];
$chromeOptions->addArguments($chromeArgs);
$capabilities->setCapability(ChromeOptions::CAPABILITY_W3C, $chromeOptions);
$driver = RemoteWebDriver::create('http://127.0.0.1:4444/wd/hub', $capabilities, 3000, 15000);
$driver->get('https://example.com/');
var_dump($driver->getTitle());
$driver->quit();

Expected behavior

We receive an exception "Facebook\WebDriver\Exception\UnexpectedAlertOpenException".

Php-webdriver version

last

PHP version

8.3.29

How do you start the browser driver or Selenium server

selenium in docker

Selenium server / Selenium Docker image version

chromium 147.0.7727.55-20260404

Browser driver (chromedriver/geckodriver...) version

No response

Browser name and version

No response

Operating system

Ubuntu 24

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions