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

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Mar 2017
Cc:



Sign in to add a comment
link

Issue 1625: Error: cannot get automation extension on Chrome57+

Reported by gmanikpure@chromium.org, Dec 6 2016 Project Member

Issue description

========== org.openqa.selenium.TakesScreenshotTest.testShouldCaptureScreenshot (10.057s)
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: chrome=57.0.2943.0)
  (Driver info: chromedriver=2.26.436382 

========== org.openqa.selenium.WindowTest.testSetsTheSizeOfTheCurrentWindowFromIframe (10.078s)
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: chrome=57.0.2943.0)
  (Driver info: chromedriver=2.26.436382

======================================================================
ERROR: testWindowMaximize (__main__.ChromeDriverTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/b/build/slave/chromedriver_mac_10_6/build/src/chrome/test/chromedriver/test/run_py_tests.py", line 824, in testWindowMaximize
    self._driver.SetWindowPosition(100, 200)
  File "/b/build/slave/chromedriver_mac_10_6/build/src/chrome/test/chromedriver/test/../client/chromedriver.py", line 430, in SetWindowPosition
    {'windowHandle': 'current', 'x': x, 'y': y})
  File "/b/build/slave/chromedriver_mac_10_6/build/src/chrome/test/chromedriver/test/../client/chromedriver.py", line 268, in ExecuteCommand
    response = self._ExecuteCommand(command, params)
  File "/b/build/slave/chromedriver_mac_10_6/build/src/chrome/test/chromedriver/test/../client/chromedriver.py", line 261, in _ExecuteCommand
    raise _ExceptionForLegacyResponse(response)
UnknownError: unknown error: cannot get automation extension
from unknown error: page could not be found: chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html
  (Session info: chrome=57.0.2943.0)
  (Driver info: chromedriver=2.26.436421 

First builds that failed - https://build.chromium.org/p/chromium.chromedriver/builders/Linux/builds/23816
https://build.chromium.org/p/chromium.chromedriver/builders/Win7/builds/19359
https://build.chromium.org/p/chromium.chromedriver/builders/Mac%2010.6/builds/11043
https://build.chromium.org/p/chromium.chromedriver/builders/Linux32/builds/21487
 

Comment 1 by gmanikpure@chromium.org, Dec 6 2016

Project Member
Cc: samu...@chromium.org
Issue started with CL https://chromium.googlesource.com/chromium/src/+/1cc8fc7b0404e98ed920e13a0d5dca44aeac7b71
--load-component-extension & --disable-extensions are deprecated in Chrome 57+

In java_tests, disable-extensions is passed which causes 'load-component-extension' to be passed at https://codesearch.chromium.org/chromium/src/chrome/test/chromedriver/chrome_launcher.cc?l=788. 
And for Mac & Windows, load-component-extension is passed at https://codesearch.chromium.org/chromium/src/chrome/test/chromedriver/chrome_launcher.cc?l=785

Comment 2 by gmanikpure@chromium.org, Dec 6 2016

Project Member
I think we would need to replace "load-component-extension" with "--disable-extensions-except" switch (created in crrev.com/415462) at https://codesearch.chromium.org/chromium/src/chrome/test/chromedriver/chrome_launcher.cc?l=789

Comment 3 by gmanikpure@chromium.org, Dec 6 2016

Project Member
I uploaded CL https://codereview.chromium.org/2552093003/ but it still has some issues.
Since this is blocking the release of Mac chromedriver binary, I will disable the failing tests.

Comment 4 by gmanikpure@chromium.org, Dec 6 2016

Project Member
Cc: -samu...@chromium.org
Labels: Pri-2
Owner: samu...@chromium.org
Status: Assigned (was: Untriaged)

Comment 6 by e...@lever.co, Feb 3 2017

By the way, the beta channel of Mac Chrome updated to Chrome 57 in the past few days, so any developers on the Mac beta channel (likely a decent number more than those on canary or dev) won't be able to run WebDriver tests locally.

Version info:

     UnknownError: unknown error: cannot get automation extension
from unknown error: page could not be found: chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html
  (Session info: chrome=57.0.2987.21)
  (Driver info: chromedriver=2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2cfd9),platform=Mac OS X 10.11.6 x86_64)


ChromeDriver does work fine for me against Linux Chrome 57, for what that's worth.

Comment 7 by samu...@chromium.org, Feb 6 2017

Cc: mtrea@google.com
Labels: -Pri-2 Pri-1

Comment 8 by oliver.s...@gmail.com, Feb 9 2017

Is there a command line option I can pass to work around this issue?

Chrome 58.0.3000.4 dev
ChromeDriver 2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2cfd9)

Comment 9 by gmanikpure@chromium.org, Feb 9 2017

Project Member
 Issue 1678  has been merged into this issue.

Comment 10 by gmanikpure@chromium.org, Feb 10 2017

Project Member
Workaround for Screenshot commands is available and is as follows:-
" set chromeOptions.forceDevToolsScreenshot to true. "

Java code:
ChromeOptions options = new ChromeOptions();
options.setExperimentalOptions("forceDevToolsScreenshot", true);
WebDriver driver = new ChromeDriver(options);

And avoid using window size commands as there is no workaround for it. Or please wait for the fix. Thanks for your patience!

Comment 12 Deleted

Comment 13 by luo4...@gmail.com, Feb 13 2017

Hi, I am facing the same issue in
Chrome 49
Chromedriver: chromedriver=2.27.440174

when I was using selenium to take a screenshot, the same error appeared. 

Did you guys encounter this issue in some older versions of chrome?
or is there any switch I should pass in for older version of Chrome? 

Thanks so much for any help!

Comment 14 by bugdroid1@chromium.org, Feb 14 2017

Project Member
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/7a66b24c10161a5db8668729a97ac95cee9068e2

commit 7a66b24c10161a5db8668729a97ac95cee9068e2
Author: samuong <samuong@chromium.org>
Date: Tue Feb 14 05:09:38 2017

Add an infobar if a session is being controlled by an automated test.

This infobar is only displayed if the browser is launched with the
--enable-automation switch. It also disables the developer mode extensions
warning bubble.

Design doc: https://docs.google.com/document/d/1JYj9K61UyxIYavR8_HATYIglR9T_rDwAtLLsD3fbDQg/edit

BUG= chromedriver:1625 
TEST=launch with and without --enable-automation, and check for presence of automation infobar

Review-Url: https://codereview.chromium.org/2564973002
Cr-Commit-Position: refs/heads/master@{#450257}

[modify] https://crrev.com/7a66b24c10161a5db8668729a97ac95cee9068e2/chrome/app/generated_resources.grd
[modify] https://crrev.com/7a66b24c10161a5db8668729a97ac95cee9068e2/chrome/browser/ui/BUILD.gn
[modify] https://crrev.com/7a66b24c10161a5db8668729a97ac95cee9068e2/chrome/browser/ui/extensions/extension_message_bubble_factory.cc
[add] https://crrev.com/7a66b24c10161a5db8668729a97ac95cee9068e2/chrome/browser/ui/startup/automation_infobar_delegate.cc
[add] https://crrev.com/7a66b24c10161a5db8668729a97ac95cee9068e2/chrome/browser/ui/startup/automation_infobar_delegate.h
[modify] https://crrev.com/7a66b24c10161a5db8668729a97ac95cee9068e2/chrome/browser/ui/startup/startup_browser_creator_impl.cc
[modify] https://crrev.com/7a66b24c10161a5db8668729a97ac95cee9068e2/chrome/common/chrome_switches.cc
[modify] https://crrev.com/7a66b24c10161a5db8668729a97ac95cee9068e2/chrome/common/chrome_switches.h
[modify] https://crrev.com/7a66b24c10161a5db8668729a97ac95cee9068e2/chrome/test/chromedriver/chrome_launcher.cc
[modify] https://crrev.com/7a66b24c10161a5db8668729a97ac95cee9068e2/components/infobars/core/infobar_delegate.h
[modify] https://crrev.com/7a66b24c10161a5db8668729a97ac95cee9068e2/tools/metrics/histograms/histograms.xml

Comment 15 by bugdroid1@chromium.org, Feb 15 2017

Project Member
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/5da9a9aed98a274658b923478a68968f348ec5b5

commit 5da9a9aed98a274658b923478a68968f348ec5b5
Author: samuong <samuong@chromium.org>
Date: Wed Feb 15 06:08:20 2017

Temporarily re-introduce load-component-extension switch.

BUG= chromedriver:1625 ,615096

Review-Url: https://codereview.chromium.org/2680883003
Cr-Commit-Position: refs/heads/master@{#450581}

[modify] https://crrev.com/5da9a9aed98a274658b923478a68968f348ec5b5/chrome/browser/extensions/extension_service.cc

Comment 16 by pkinya...@gmail.com, Feb 21 2017

Hi! I have an same issue:
WebDriverException: Message: unknown error: cannot get automation extension
E           from unknown error: page could not be found: chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html
E             (Session info: chrome=58.0.3013.3)
E             (Driver info: chromedriver=2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2cfd9),platform=Mac OS X 10.12.4 x86_64)

For taking a screenshot i use a workaround(experimental options) in python:

chrome_options = webdriver.ChromeOptions()
chrome_options.add_experimental_option("forceDevToolsScreenshot",True)

Comment 17 by gmanikpure@chromium.org, Feb 21 2017

Project Member
 Issue chromium:694272  has been merged into this issue.

Comment 18 by bugdroid1@chromium.org, Feb 21 2017

Project Member
Labels: merge-merged-2987
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/795fb79651648d3da7c538aafc2b548e25299912

commit 795fb79651648d3da7c538aafc2b548e25299912
Author: Sam Uong <samuong@chromium.org>
Date: Tue Feb 21 23:08:09 2017

Add an infobar if a session is being controlled by an automated test.

This infobar is only displayed if the browser is launched with the
--enable-automation switch. It also disables the developer mode extensions
warning bubble.

Design doc: https://docs.google.com/document/d/1JYj9K61UyxIYavR8_HATYIglR9T_rDwAtLLsD3fbDQg/edit

BUG= chromedriver:1625 
TEST=launch with and without --enable-automation, and check for presence of automation infobar

Review-Url: https://codereview.chromium.org/2564973002
Cr-Commit-Position: refs/heads/master@{#450257}
(cherry picked from commit 7a66b24c10161a5db8668729a97ac95cee9068e2)

Review-Url: https://codereview.chromium.org/2703363004 .
Cr-Commit-Position: refs/branch-heads/2987@{#627}
Cr-Branched-From: ad51088c0e8776e8dcd963dbe752c4035ba6dab6-refs/heads/master@{#444943}

[modify] https://crrev.com/795fb79651648d3da7c538aafc2b548e25299912/chrome/app/generated_resources.grd
[modify] https://crrev.com/795fb79651648d3da7c538aafc2b548e25299912/chrome/browser/ui/BUILD.gn
[modify] https://crrev.com/795fb79651648d3da7c538aafc2b548e25299912/chrome/browser/ui/extensions/extension_message_bubble_factory.cc
[add] https://crrev.com/795fb79651648d3da7c538aafc2b548e25299912/chrome/browser/ui/startup/automation_infobar_delegate.cc
[add] https://crrev.com/795fb79651648d3da7c538aafc2b548e25299912/chrome/browser/ui/startup/automation_infobar_delegate.h
[modify] https://crrev.com/795fb79651648d3da7c538aafc2b548e25299912/chrome/browser/ui/startup/startup_browser_creator_impl.cc
[modify] https://crrev.com/795fb79651648d3da7c538aafc2b548e25299912/chrome/common/chrome_switches.cc
[modify] https://crrev.com/795fb79651648d3da7c538aafc2b548e25299912/chrome/common/chrome_switches.h
[modify] https://crrev.com/795fb79651648d3da7c538aafc2b548e25299912/chrome/test/chromedriver/chrome_launcher.cc
[modify] https://crrev.com/795fb79651648d3da7c538aafc2b548e25299912/components/infobars/core/infobar_delegate.h
[modify] https://crrev.com/795fb79651648d3da7c538aafc2b548e25299912/tools/metrics/histograms/histograms.xml

Comment 19 by bugdroid1@chromium.org, Feb 21 2017

Project Member
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/130867c44e3c11a69fff053dff567186b6b3859f

commit 130867c44e3c11a69fff053dff567186b6b3859f
Author: Sam Uong <samuong@chromium.org>
Date: Tue Feb 21 23:09:55 2017

Temporarily re-introduce load-component-extension switch.

BUG= chromedriver:1625 ,615096

Review-Url: https://codereview.chromium.org/2680883003
Cr-Commit-Position: refs/heads/master@{#450581}
(cherry picked from commit 5da9a9aed98a274658b923478a68968f348ec5b5)

Review-Url: https://codereview.chromium.org/2702203005 .
Cr-Commit-Position: refs/branch-heads/2987@{#628}
Cr-Branched-From: ad51088c0e8776e8dcd963dbe752c4035ba6dab6-refs/heads/master@{#444943}

[modify] https://crrev.com/130867c44e3c11a69fff053dff567186b6b3859f/chrome/browser/extensions/extension_service.cc

Comment 20 by bugdroid1@chromium.org, Feb 25 2017

Project Member
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/5352c794daa94efb7814429d5316218a22f1daae

commit 5352c794daa94efb7814429d5316218a22f1daae
Author: samuong <samuong@chromium.org>
Date: Sat Feb 25 00:22:25 2017

[chromedriver] Force DevTools screenshots by default.

BUG= chromedriver:1625 
TBR=stgao@chromium.org

Review-Url: https://codereview.chromium.org/2682793002
Cr-Commit-Position: refs/heads/master@{#453014}

[modify] https://crrev.com/5352c794daa94efb7814429d5316218a22f1daae/chrome/test/chromedriver/capabilities.cc

Comment 21 by samu...@chromium.org, Feb 28 2017

Status: Fixed (was: Assigned)
This is fixed now, both on HEAD and on the 57 branch.

Comment 22 by gmanikpure@chromium.org, Feb 28 2017

Project Member
Status: Assigned (was: Fixed)
I tested the window & screenshots tests (disabled in #c5) on beta v57 against HEAD chromedriver. Here is the observation :-

1) Py tests passes without any issues.
2) Java screenshot tests passes but window tests fails with the same error.

One of the test failure:-
WindowTest.testSetsTheSizeOfTheCurrentWindowFromFrame@@@
================================================================================ org.openqa.selenium.WindowTest.testGetsTheSizeOfTheCurrentWindow (10.102s)
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: chrome=57.0.2987.74)
  (Driver info: chromedriver=2.27.453344 


Reason - In java tests, "disable-extension" switch is passed at https://github.com/SeleniumHQ/selenium/blob/master/java/client/test/org/openqa/selenium/testing/drivers/TestChromeDriver.java#L71.

So, the issue still stands true when the user passes "disable-extension" switch. Therefore, reopening the bug.

Comment 23 by nitima.w...@gmail.com, Mar 1 2017

Hi, I am facing similar issue. I am getting similar exception "cannot get automation extension". 
browser.window.move_to and browser.window.resize_to is giving following exception
Chrome version: chrome57+
chromedriver=2.27.440174
Watir web driver version: 0.8.0
Language: Ruby version 2.2
 
irb(main):003:0> @browser=Watir::Browser.new(:chrome)
[0301/005357.234:ERROR:child_thread_impl.cc(762)] Request for unknown Channel-associated interface: ui::mojom::GpuMain
=> #<Watir::Browser:0x..f2bbb5b0 url="data:," title="">
irb(main):004:0> @browser.window.move_to(100,120)
Selenium::WebDriver::Error::UnknownError: unknown error: cannot get automation extension
from unknown error: page could not be found: chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html
  (Session info: chrome=57.0.2987.74)
  (Driver info: chromedriver=2.27.440174 (e97a722caafc2d3a8b807ee115bfb307f7d2cfd9),platform=Windows NT 6.1.7601 SP1 x86_64)
        from C:/Ruby22/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/remote/response.rb:70:in `assert_ok'
        from C:/Ruby22/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/remote/response.rb:34:in `initialize'
        from C:/Ruby22/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/remote/http/common.rb:78:in `new'
        from C:/Ruby22/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/remote/http/common.rb:78:in `create_response'
        from C:/Ruby22/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/remote/http/default.rb:90:in `request'
        from C:/Ruby22/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/remote/http/common.rb:59:in `call'
        from C:/Ruby22/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/remote/bridge.rb:649:in `raw_execute'
        from C:/Ruby22/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/remote/bridge.rb:627:in `execute'
        from C:/Ruby22/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/remote/bridge.rb:262:in `setWindowPosition'
        from C:/Ruby22/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/common/window.rb:74:in `position='
        from C:/Ruby22/lib/ruby/gems/2.2.0/gems/watir-webdriver-0.9.9/lib/watir-webdriver/window.rb:83:in `block in move_to'
        from C:/Ruby22/lib/ruby/gems/2.2.0/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/common/target_locator.rb:73:in `window'
        from C:/Ruby22/lib/ruby/gems/2.2.0/gems/watir-webdriver-0.9.9/lib/watir-webdriver/window.rb:193:in `use'
        from C:/Ruby22/lib/ruby/gems/2.2.0/gems/watir-webdriver-0.9.9/lib/watir-webdriver/window.rb:83:in `move_to'
        from (irb):4
        from C:/Ruby22/bin/irb:11:in `<main>'
Could you please let me know in case I need to provide any other info.
Also Could it be fixed with this  bug#1625  or Do I need to open another bug

Comment 24 by gmanikpure@chromium.org, Mar 1 2017

Project Member
Labels: ChromeDriver-2.28
Status: Fixed (was: Assigned)
Issue mentioned in comment#22 has been fixed by Sam in http://crrev.com/c1da30bf485aad6bb1fda929b830467898495370

It will released soon in the next version 2.28. Stay tuned!

Comment 25 by gmanikpure@chromium.org, Mar 1 2017

Project Member
 Issue 1697  has been merged into this issue.

Comment 26 by bugdroid1@chromium.org, Mar 1 2017

Project Member
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/a515dc389dc5e4a6ecf5583f35692c3e3e724406

commit a515dc389dc5e4a6ecf5583f35692c3e3e724406
Author: gmanikpure <gmanikpure@chromium.org>
Date: Wed Mar 01 20:28:56 2017

[chromedriver] Re-enable window & screenshot tests on HEAD.

Note: Not re-enabling these tests on M57 because the revision build used for v57tests on bot is old and does not contain the new fixes.

BUG= chromedriver:1625 

Review-Url: https://codereview.chromium.org/2726903002
Cr-Commit-Position: refs/heads/master@{#454020}

[modify] https://crrev.com/a515dc389dc5e4a6ecf5583f35692c3e3e724406/chrome/test/chromedriver/test/run_py_tests.py
[modify] https://crrev.com/a515dc389dc5e4a6ecf5583f35692c3e3e724406/chrome/test/chromedriver/test/test_expectations

Comment 27 by gmanikpure@chromium.org, Mar 1 2017

Project Member
@ those who cannot wait for next release v2.28 follow the below workaround:-

Pass --enable-automation switch to Chrome beta v57 and test it with Chromedriver 2.27. Here is how you do it in Java:

ChromeOptions options = new ChromeOptions();
options.addArguments("enable-automation");
options.setBinary("/opt/google/chrome-beta/google-chrome-beta");
WebDriver driver = new ChromeDriver(options);
driver.manage().window().maximize();

Comment 28 by bugdroid1@chromium.org, Mar 2 2017

Project Member
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/3eff24d697882f1851680e7bbd38eb18fbc20585

commit 3eff24d697882f1851680e7bbd38eb18fbc20585
Author: samuong <samuong@chromium.org>
Date: Thu Mar 02 22:25:19 2017

[chromedriver] Use disable-extensions-except on Windows and Mac.

BUG= chromedriver:1625 

Review-Url: https://codereview.chromium.org/2730783002
Cr-Commit-Position: refs/heads/master@{#454406}

[modify] https://crrev.com/3eff24d697882f1851680e7bbd38eb18fbc20585/chrome/test/chromedriver/chrome_launcher.cc

Comment 29 by geoff...@gmail.com, Mar 3 2017

Is there any ETA for v2.28? I presume prior to M57 reaching stable, but ideally it'd be sooner rather than later?

Comment 30 Deleted

Comment 31 by gmanikpure@chromium.org, Mar 10 2017

Project Member
thomasjevans90@,
That's not good. Patch of comment#28 landed in Chromedriver v2.28 should fix this issue. It passes 'disable-extensions-except' if 'disable-extensions' switch is applied in the test.

Can you please share chromedriver verbose logs?

Comment 32 by gmanikpure@chromium.org, Mar 10 2017

Project Member
Looks like comment#30 posted by thomasjevans90@ was deleted. Does it mean that you do not see the issue anymore? Please confirm.

Comment 33 by sudarson...@gmail.com, Mar 20 2017

Could you please tell what is the work around to resize the window in chrome driver 2.28. I have a use case where I need to open multiple chrome windows and resize and keep waiting, so that all windows should be focus. (Application will get update only if the window is in focus)

Also how should i disable chrome extensions in chrome driver 2.28.
Passing --disable-extensions is not working 2.28 version. Am I missing anything? Any help please.

Thanks!

Comment 34 by sudarson...@gmail.com, Mar 20 2017

I passed --disable-extensions to ChromeOptions but still it says that , "Loading of unpacked extension is disabled by the administrator" window

Chrome driver : 2.28,

Webdriver: 3.3.1

Comment 35 by gmanikpure@chromium.org, Mar 20 2017

Project Member
regarding comment#33, Chromedriver v2.28 already includes fix for window resizing issue. What error do you see while resizing the chrome window? If it is different from the original issue, please file a new bug.

Comment 36 by chinado...@gmail.com, Mar 21 2017

Per comment#33, I found '--disable-extensions' cannot take effect on Chrome 57 with Driver 2.28. Anyone can help me?

Comment 37 by mittal.t...@gmail.com, Mar 31 2017

2 things resolved this issue for me :-
1. Downloaded v2.28 of ChromeDriver 
2. ChromeOptions options = new ChromeOptions();
	options.addArguments("enable-automation");
	options.addArguments("--disable-infobars");
	 WebDriver driver = new ChromeDriver(options);

Comment 38 by sar...@gmail.com, Apr 18 2017

I see the same error

selenium.common.exceptions.WebDriverException: Message: unknown error: cannot get automation extension
from unknown error: page could not be found: chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html
  (Session info: content shell=)
  (Driver info: chromedriver=2.29.461571 (8a88bbe0775e2a23afda0ceaf2ef7ee74e822cc5),platform=Linux 4.4.0-62-generic x86_64)

with Chromium 57.0.2987.98 if '--headless' flag is passed to chromium.

Comment 39 by gmanikpure@chromium.org, Apr 18 2017

Project Member
sardok@,

Chromedriver uses an extension for window sizing/positioning operations, that is not supported by headless at the moment.

Sign in to add a comment