New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 736398 link

Starred by 6 users

Issue metadata

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

Blocking:
issue 705916



Sign in to add a comment

Cannot resize window when using headless chrome

Reported by mr.hshe...@gmail.com, Jun 23 2017

Issue description

Chrome Version       : Google Chrome 59.0.3071.109

When using Java Chromdriver v2.30, resizing the window throws an exception.

What steps will reproduce the problem?
(1) Set window sizing - E.g. driver.manage().window().setSize(new Dimension(1920, 1080));

What is the expected result?
Window is resized to as requested.

What happens instead?
Error Message: org.openqa.selenium.WebDriverException: unknown error: cannot get automation extension
   from unknown error: page could not be found: chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html
     (Session info: headless chrome=59.0.3071.109)
     (Driver info: chromedriver=2.30.477691 (6ee44a7247c639c0703f291d320bdf05c1531b57),platform=Linux 4.9.30-moby x86_64) (WARNING: The server did not provide any stacktrace information)
   Command duration or timeout: 10.02 seconds
   Build info: version: '2.53.1', revision: 'a36b8b1cd5757287168e54b817830adce9b0158d', time: '2016-06-30 19:26:09'
   System info: host: '44e726954e7d', ip: '172.18.0.4', os.name: 'Linux', os.arch: 'amd64', os.version: '4.9.30-moby', java.version: '1.8.0_131'
   Driver info: org.openqa.selenium.chrome.ChromeDriver
   Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, networkConnectionEnabled=false, chrome={chromedriverVersion=2.30.477691 (6ee44a7247c639c0703f291d320bdf05c1531b57), userDataDir=/tmp/.org.chromium.Chromium.pCwSnU}, takesHeapSnapshot=true, pageLoadStrategy=normal, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=59.0.3071.109, platform=LINUX, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=true, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true, unexpectedAlertBehaviour=}]
   Session ID: 6faea7707673fb8e48c46d7f4898ee19
   Stacktrace:
   sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
   sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
   java.lang.reflect.Constructor.newInstance(Constructor.java:423)
   org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)
   org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
   org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)
   org.openqa.selenium.remote.RemoteWebDriver$RemoteWebDriverOptions$RemoteWindow.setSize(RemoteWebDriver.java:891)
   com.sky.deWeb.sdc.core.SpecHooks.setupSuite(SpecHooks.java:28)
   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   java.lang.reflect.Method.invoke(Method.java:498)
   com.thoughtworks.gauge.execution.MethodExecutor.execute(MethodExecutor.java:38)
   com.thoughtworks.gauge.execution.HooksExecutor$TaggedHookExecutor.executeHook(HooksExecutor.java:102)
   com.thoughtworks.gauge.execution.HooksExecutor$TaggedHookExecutor.execute(HooksExecutor.java:88)
   com.thoughtworks.gauge.execution.HooksExecutor.execute(HooksExecutor.java:45)
   com.thoughtworks.gauge.processor.MethodExecutionMessageProcessor.executeHooks(MethodExecutionMessageProcessor.java:65)
   com.thoughtworks.gauge.processor.SuiteExecutionStartingProcessor.process(SuiteExecutionStartingProcessor.java:32)
   com.thoughtworks.gauge.connection.MessageDispatcher.dispatchMessages(MessageDispatcher.java:89)
   com.thoughtworks.gauge.GaugeRuntime.dispatchMessages(GaugeRuntime.java:104)
   com.thoughtworks.gauge.GaugeRuntime.access$100(GaugeRuntime.java:36)
   com.thoughtworks.gauge.GaugeRuntime$2.run(GaugeRuntime.java:85)
   java.lang.Thread.run(Thread.java:748)

Chrome capabilities:
ChromeOptions options = new ChromeOptions();
        options.addArguments("--disable-gpu");
        options.addArguments("--headless");
        options.addArguments("--no-sandbox");

OS: Linux
Chromedriver: v2.30
Google Chrome: v59.0.3071.109
 
Components: -Blink Internals>Headless
Status: Available (was: Unconfirmed)
Cc: jzfeng@chromium.org
Does this work in the latest M61 builds? I'm not entirely sure when the corresponding changes for headless chrome's selenium support landed.
Project Member

Comment 3 by sheriffbot@chromium.org, Jul 17

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment