driver.manage().window().maximize() issue with ChromeDriver 2.33
The release notes for ChromeDriver 2.33 says that ""Fixes a bug which caused Resizing/Positioning Window commands to fail on Chrome 62+" however this still seems to be an issue when i am using Chrome 62+ browser. Maximizing chrome window using chrome driver results in below exception. Does anyone know a solution please?
Another thing i noticed is, though i installed latest chromedriver (v2.33) from https://chromedriver.storage.googleapis.com/index.html?path=2.33/, the log printed below says Driver info: chromedriver=2.25.426923 !!
Exception in thread "main" 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=62.0.3202.62) (Driver info:
chromedriver=2.25.426923
(0390b88869384d6eb0d5d09729679f934aab9eed),platform=Windows NT
10.0.15063 x86_64) (WARNING: The server did not provide any stacktrace information)
windows selenium selenium-chromedriver
add a comment |
The release notes for ChromeDriver 2.33 says that ""Fixes a bug which caused Resizing/Positioning Window commands to fail on Chrome 62+" however this still seems to be an issue when i am using Chrome 62+ browser. Maximizing chrome window using chrome driver results in below exception. Does anyone know a solution please?
Another thing i noticed is, though i installed latest chromedriver (v2.33) from https://chromedriver.storage.googleapis.com/index.html?path=2.33/, the log printed below says Driver info: chromedriver=2.25.426923 !!
Exception in thread "main" 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=62.0.3202.62) (Driver info:
chromedriver=2.25.426923
(0390b88869384d6eb0d5d09729679f934aab9eed),platform=Windows NT
10.0.15063 x86_64) (WARNING: The server did not provide any stacktrace information)
windows selenium selenium-chromedriver
So what is you question exactly?
– Sand
Oct 18 '17 at 3:28
Does anyone know a solution for this? Unable to maximise browser with mentioned versions of driver and chrome.
– marjava
Oct 18 '17 at 3:33
So this is happening when you want to maximize the browser are you writing a program or is there any code base that prompt this problem?
– Sand
Oct 18 '17 at 3:35
You have multiple versions of chromedriver on your system. Get rid of the 2.25 one and it should work
– Lucas Tierney
Oct 18 '17 at 3:36
add a comment |
The release notes for ChromeDriver 2.33 says that ""Fixes a bug which caused Resizing/Positioning Window commands to fail on Chrome 62+" however this still seems to be an issue when i am using Chrome 62+ browser. Maximizing chrome window using chrome driver results in below exception. Does anyone know a solution please?
Another thing i noticed is, though i installed latest chromedriver (v2.33) from https://chromedriver.storage.googleapis.com/index.html?path=2.33/, the log printed below says Driver info: chromedriver=2.25.426923 !!
Exception in thread "main" 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=62.0.3202.62) (Driver info:
chromedriver=2.25.426923
(0390b88869384d6eb0d5d09729679f934aab9eed),platform=Windows NT
10.0.15063 x86_64) (WARNING: The server did not provide any stacktrace information)
windows selenium selenium-chromedriver
The release notes for ChromeDriver 2.33 says that ""Fixes a bug which caused Resizing/Positioning Window commands to fail on Chrome 62+" however this still seems to be an issue when i am using Chrome 62+ browser. Maximizing chrome window using chrome driver results in below exception. Does anyone know a solution please?
Another thing i noticed is, though i installed latest chromedriver (v2.33) from https://chromedriver.storage.googleapis.com/index.html?path=2.33/, the log printed below says Driver info: chromedriver=2.25.426923 !!
Exception in thread "main" 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=62.0.3202.62) (Driver info:
chromedriver=2.25.426923
(0390b88869384d6eb0d5d09729679f934aab9eed),platform=Windows NT
10.0.15063 x86_64) (WARNING: The server did not provide any stacktrace information)
windows selenium selenium-chromedriver
windows selenium selenium-chromedriver
edited Oct 18 '17 at 3:27
HaC
501612
501612
asked Oct 18 '17 at 2:49
marjavamarjava
63
63
So what is you question exactly?
– Sand
Oct 18 '17 at 3:28
Does anyone know a solution for this? Unable to maximise browser with mentioned versions of driver and chrome.
– marjava
Oct 18 '17 at 3:33
So this is happening when you want to maximize the browser are you writing a program or is there any code base that prompt this problem?
– Sand
Oct 18 '17 at 3:35
You have multiple versions of chromedriver on your system. Get rid of the 2.25 one and it should work
– Lucas Tierney
Oct 18 '17 at 3:36
add a comment |
So what is you question exactly?
– Sand
Oct 18 '17 at 3:28
Does anyone know a solution for this? Unable to maximise browser with mentioned versions of driver and chrome.
– marjava
Oct 18 '17 at 3:33
So this is happening when you want to maximize the browser are you writing a program or is there any code base that prompt this problem?
– Sand
Oct 18 '17 at 3:35
You have multiple versions of chromedriver on your system. Get rid of the 2.25 one and it should work
– Lucas Tierney
Oct 18 '17 at 3:36
So what is you question exactly?
– Sand
Oct 18 '17 at 3:28
So what is you question exactly?
– Sand
Oct 18 '17 at 3:28
Does anyone know a solution for this? Unable to maximise browser with mentioned versions of driver and chrome.
– marjava
Oct 18 '17 at 3:33
Does anyone know a solution for this? Unable to maximise browser with mentioned versions of driver and chrome.
– marjava
Oct 18 '17 at 3:33
So this is happening when you want to maximize the browser are you writing a program or is there any code base that prompt this problem?
– Sand
Oct 18 '17 at 3:35
So this is happening when you want to maximize the browser are you writing a program or is there any code base that prompt this problem?
– Sand
Oct 18 '17 at 3:35
You have multiple versions of chromedriver on your system. Get rid of the 2.25 one and it should work
– Lucas Tierney
Oct 18 '17 at 3:36
You have multiple versions of chromedriver on your system. Get rid of the 2.25 one and it should work
– Lucas Tierney
Oct 18 '17 at 3:36
add a comment |
4 Answers
4
active
oldest
votes
There are exactly 2 issues.
As you mentioned, you have installed latest chromedriver (v2.33) but the log printed below says Driver info: chromedriver=2.25.426923, this issue must be addressed first. You can consider to manually kill all the dangling
chromedriver.exe
tasks from theTask Manager
. Additionally you can consider to useCCleaner
to wipe out all the rotten OS stuffs from your system. Take a system reboot if required. Finally ensure that what ever the absolute location ofchromedriver.exe
you are using withinSystem.setProperty()
ensure that the chromedriver binary is of version 2.33.
Finally, it is suggested to use
ChromeOptions
class tomaximize
the Web Browser as follows:
System.setProperty("webdriver.chrome.driver", "C:\your_directory\chromedriver.exe");
ChromeOptions opt = new ChromeOptions();
opt.addArguments("disable-infobars");
opt.addArguments("--start-maximized");
opt.addArguments("--disable-extensions");
WebDriver driver = new ChromeDriver(opt);
driver.get("https://google.com");
For the error
cannot get automation extension from unknown error
you can also refer to this QA/Discussion.
add a comment |
Use class ChromeOptions.
System.setProperty("webdriver.chrome.driver", "h:\chromedriver.exe");
ChromeOptions options = new ChromeOptions();
options.addArguments("disable-infobars");
options.addArguments("--start-maximized");
WebDriver driver = new ChromeDriver(options);
driver.get(url);
add a comment |
I believe there were some old chrome driver processes running in backend and same were being picked up when it was invoked via code. I deleted all processes instances, deleted old version of chrome driver, added the new 2.33 version and it worked. Thanks all for your suggestions.
add a comment |
I think the reason behind it may be your chrome version. Try again with updating your chrome browser. I have faced this type of issues for compatibility between chrome browser & the driver
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f46802051%2fdriver-manage-window-maximize-issue-with-chromedriver-2-33%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
There are exactly 2 issues.
As you mentioned, you have installed latest chromedriver (v2.33) but the log printed below says Driver info: chromedriver=2.25.426923, this issue must be addressed first. You can consider to manually kill all the dangling
chromedriver.exe
tasks from theTask Manager
. Additionally you can consider to useCCleaner
to wipe out all the rotten OS stuffs from your system. Take a system reboot if required. Finally ensure that what ever the absolute location ofchromedriver.exe
you are using withinSystem.setProperty()
ensure that the chromedriver binary is of version 2.33.
Finally, it is suggested to use
ChromeOptions
class tomaximize
the Web Browser as follows:
System.setProperty("webdriver.chrome.driver", "C:\your_directory\chromedriver.exe");
ChromeOptions opt = new ChromeOptions();
opt.addArguments("disable-infobars");
opt.addArguments("--start-maximized");
opt.addArguments("--disable-extensions");
WebDriver driver = new ChromeDriver(opt);
driver.get("https://google.com");
For the error
cannot get automation extension from unknown error
you can also refer to this QA/Discussion.
add a comment |
There are exactly 2 issues.
As you mentioned, you have installed latest chromedriver (v2.33) but the log printed below says Driver info: chromedriver=2.25.426923, this issue must be addressed first. You can consider to manually kill all the dangling
chromedriver.exe
tasks from theTask Manager
. Additionally you can consider to useCCleaner
to wipe out all the rotten OS stuffs from your system. Take a system reboot if required. Finally ensure that what ever the absolute location ofchromedriver.exe
you are using withinSystem.setProperty()
ensure that the chromedriver binary is of version 2.33.
Finally, it is suggested to use
ChromeOptions
class tomaximize
the Web Browser as follows:
System.setProperty("webdriver.chrome.driver", "C:\your_directory\chromedriver.exe");
ChromeOptions opt = new ChromeOptions();
opt.addArguments("disable-infobars");
opt.addArguments("--start-maximized");
opt.addArguments("--disable-extensions");
WebDriver driver = new ChromeDriver(opt);
driver.get("https://google.com");
For the error
cannot get automation extension from unknown error
you can also refer to this QA/Discussion.
add a comment |
There are exactly 2 issues.
As you mentioned, you have installed latest chromedriver (v2.33) but the log printed below says Driver info: chromedriver=2.25.426923, this issue must be addressed first. You can consider to manually kill all the dangling
chromedriver.exe
tasks from theTask Manager
. Additionally you can consider to useCCleaner
to wipe out all the rotten OS stuffs from your system. Take a system reboot if required. Finally ensure that what ever the absolute location ofchromedriver.exe
you are using withinSystem.setProperty()
ensure that the chromedriver binary is of version 2.33.
Finally, it is suggested to use
ChromeOptions
class tomaximize
the Web Browser as follows:
System.setProperty("webdriver.chrome.driver", "C:\your_directory\chromedriver.exe");
ChromeOptions opt = new ChromeOptions();
opt.addArguments("disable-infobars");
opt.addArguments("--start-maximized");
opt.addArguments("--disable-extensions");
WebDriver driver = new ChromeDriver(opt);
driver.get("https://google.com");
For the error
cannot get automation extension from unknown error
you can also refer to this QA/Discussion.
There are exactly 2 issues.
As you mentioned, you have installed latest chromedriver (v2.33) but the log printed below says Driver info: chromedriver=2.25.426923, this issue must be addressed first. You can consider to manually kill all the dangling
chromedriver.exe
tasks from theTask Manager
. Additionally you can consider to useCCleaner
to wipe out all the rotten OS stuffs from your system. Take a system reboot if required. Finally ensure that what ever the absolute location ofchromedriver.exe
you are using withinSystem.setProperty()
ensure that the chromedriver binary is of version 2.33.
Finally, it is suggested to use
ChromeOptions
class tomaximize
the Web Browser as follows:
System.setProperty("webdriver.chrome.driver", "C:\your_directory\chromedriver.exe");
ChromeOptions opt = new ChromeOptions();
opt.addArguments("disable-infobars");
opt.addArguments("--start-maximized");
opt.addArguments("--disable-extensions");
WebDriver driver = new ChromeDriver(opt);
driver.get("https://google.com");
For the error
cannot get automation extension from unknown error
you can also refer to this QA/Discussion.
edited Oct 18 '17 at 9:46
answered Oct 18 '17 at 6:14
DebanjanBDebanjanB
40k73577
40k73577
add a comment |
add a comment |
Use class ChromeOptions.
System.setProperty("webdriver.chrome.driver", "h:\chromedriver.exe");
ChromeOptions options = new ChromeOptions();
options.addArguments("disable-infobars");
options.addArguments("--start-maximized");
WebDriver driver = new ChromeDriver(options);
driver.get(url);
add a comment |
Use class ChromeOptions.
System.setProperty("webdriver.chrome.driver", "h:\chromedriver.exe");
ChromeOptions options = new ChromeOptions();
options.addArguments("disable-infobars");
options.addArguments("--start-maximized");
WebDriver driver = new ChromeDriver(options);
driver.get(url);
add a comment |
Use class ChromeOptions.
System.setProperty("webdriver.chrome.driver", "h:\chromedriver.exe");
ChromeOptions options = new ChromeOptions();
options.addArguments("disable-infobars");
options.addArguments("--start-maximized");
WebDriver driver = new ChromeDriver(options);
driver.get(url);
Use class ChromeOptions.
System.setProperty("webdriver.chrome.driver", "h:\chromedriver.exe");
ChromeOptions options = new ChromeOptions();
options.addArguments("disable-infobars");
options.addArguments("--start-maximized");
WebDriver driver = new ChromeDriver(options);
driver.get(url);
answered Oct 18 '17 at 4:58
AutomationEngineerAutomationEngineer
245
245
add a comment |
add a comment |
I believe there were some old chrome driver processes running in backend and same were being picked up when it was invoked via code. I deleted all processes instances, deleted old version of chrome driver, added the new 2.33 version and it worked. Thanks all for your suggestions.
add a comment |
I believe there were some old chrome driver processes running in backend and same were being picked up when it was invoked via code. I deleted all processes instances, deleted old version of chrome driver, added the new 2.33 version and it worked. Thanks all for your suggestions.
add a comment |
I believe there were some old chrome driver processes running in backend and same were being picked up when it was invoked via code. I deleted all processes instances, deleted old version of chrome driver, added the new 2.33 version and it worked. Thanks all for your suggestions.
I believe there were some old chrome driver processes running in backend and same were being picked up when it was invoked via code. I deleted all processes instances, deleted old version of chrome driver, added the new 2.33 version and it worked. Thanks all for your suggestions.
answered Nov 14 '17 at 2:53
marjavamarjava
63
63
add a comment |
add a comment |
I think the reason behind it may be your chrome version. Try again with updating your chrome browser. I have faced this type of issues for compatibility between chrome browser & the driver
add a comment |
I think the reason behind it may be your chrome version. Try again with updating your chrome browser. I have faced this type of issues for compatibility between chrome browser & the driver
add a comment |
I think the reason behind it may be your chrome version. Try again with updating your chrome browser. I have faced this type of issues for compatibility between chrome browser & the driver
I think the reason behind it may be your chrome version. Try again with updating your chrome browser. I have faced this type of issues for compatibility between chrome browser & the driver
answered Nov 6 '18 at 9:33
PoulamiPoulami
12
12
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f46802051%2fdriver-manage-window-maximize-issue-with-chromedriver-2-33%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
So what is you question exactly?
– Sand
Oct 18 '17 at 3:28
Does anyone know a solution for this? Unable to maximise browser with mentioned versions of driver and chrome.
– marjava
Oct 18 '17 at 3:33
So this is happening when you want to maximize the browser are you writing a program or is there any code base that prompt this problem?
– Sand
Oct 18 '17 at 3:35
You have multiple versions of chromedriver on your system. Get rid of the 2.25 one and it should work
– Lucas Tierney
Oct 18 '17 at 3:36