New issue
Advanced search Search tips

Issue 914490 link

Starred by 1 user

Issue metadata

Status: Unconfirmed
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 705916



Sign in to add a comment

executeAsyncScript is not supported in ChromeDriver 2.45 incase of Headless mode

Reported by taherulm...@gmail.com, Dec 12

Issue description

Can't able to execute async js
Version: Version 71.0.3578.80 (Official Build) (64-bit)
         ChromeDriver 2.45
In case of Headless mode

Example:
Map<String, Double> coordinate = new HashMap<>();
        String jsScript ="var done = arguments[0]; navigator.geolocation.getCurrentPosition(function(p){ done(p.coords)});";
        JavascriptExecutor js = (JavascriptExecutor) driver;
        Map<String, Double> coord =(Map)js.executeAsyncScript( jsScript );


Error:
Exception occured: org.openqa.selenium.ScriptTimeoutException: script timeout
 
Components: -Blink Internals>Headless
Labels: Needs-Triage-M71

Sign in to add a comment