driver.manage().window().maximize() issue with ChromeDriver 2.33












0















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)











share|improve this question

























  • 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
















0















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)











share|improve this question

























  • 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














0












0








0








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)











share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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



















  • 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












4 Answers
4






active

oldest

votes


















2














There are exactly 2 issues.




  1. 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 the Task Manager. Additionally you can consider to use CCleaner 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 of chromedriver.exe you are using within System.setProperty() ensure that the chromedriver binary is of version 2.33.



  2. Finally, it is suggested to use ChromeOptions class to maximize 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");


  3. For the error cannot get automation extension from unknown error you can also refer to this QA/Discussion.







share|improve this answer

































    0














    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);





    share|improve this answer































      0














      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.






      share|improve this answer































        0














        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






        share|improve this answer























          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
          });


          }
          });














          draft saved

          draft discarded


















          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









          2














          There are exactly 2 issues.




          1. 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 the Task Manager. Additionally you can consider to use CCleaner 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 of chromedriver.exe you are using within System.setProperty() ensure that the chromedriver binary is of version 2.33.



          2. Finally, it is suggested to use ChromeOptions class to maximize 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");


          3. For the error cannot get automation extension from unknown error you can also refer to this QA/Discussion.







          share|improve this answer






























            2














            There are exactly 2 issues.




            1. 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 the Task Manager. Additionally you can consider to use CCleaner 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 of chromedriver.exe you are using within System.setProperty() ensure that the chromedriver binary is of version 2.33.



            2. Finally, it is suggested to use ChromeOptions class to maximize 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");


            3. For the error cannot get automation extension from unknown error you can also refer to this QA/Discussion.







            share|improve this answer




























              2












              2








              2







              There are exactly 2 issues.




              1. 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 the Task Manager. Additionally you can consider to use CCleaner 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 of chromedriver.exe you are using within System.setProperty() ensure that the chromedriver binary is of version 2.33.



              2. Finally, it is suggested to use ChromeOptions class to maximize 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");


              3. For the error cannot get automation extension from unknown error you can also refer to this QA/Discussion.







              share|improve this answer















              There are exactly 2 issues.




              1. 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 the Task Manager. Additionally you can consider to use CCleaner 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 of chromedriver.exe you are using within System.setProperty() ensure that the chromedriver binary is of version 2.33.



              2. Finally, it is suggested to use ChromeOptions class to maximize 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");


              3. For the error cannot get automation extension from unknown error you can also refer to this QA/Discussion.








              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Oct 18 '17 at 9:46

























              answered Oct 18 '17 at 6:14









              DebanjanBDebanjanB

              40k73577




              40k73577

























                  0














                  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);





                  share|improve this answer




























                    0














                    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);





                    share|improve this answer


























                      0












                      0








                      0







                      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);





                      share|improve this answer













                      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);






                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Oct 18 '17 at 4:58









                      AutomationEngineerAutomationEngineer

                      245




                      245























                          0














                          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.






                          share|improve this answer




























                            0














                            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.






                            share|improve this answer


























                              0












                              0








                              0







                              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.






                              share|improve this answer













                              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.







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered Nov 14 '17 at 2:53









                              marjavamarjava

                              63




                              63























                                  0














                                  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






                                  share|improve this answer




























                                    0














                                    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






                                    share|improve this answer


























                                      0












                                      0








                                      0







                                      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






                                      share|improve this answer













                                      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







                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      answered Nov 6 '18 at 9:33









                                      PoulamiPoulami

                                      12




                                      12






























                                          draft saved

                                          draft discarded




















































                                          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.




                                          draft saved


                                          draft discarded














                                          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





















































                                          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







                                          Popular posts from this blog

                                          How to change which sound is reproduced for terminal bell?

                                          Can I use Tabulator js library in my java Spring + Thymeleaf project?

                                          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents