ChromeDrive "--start-maximized" doesn't work

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

ChromeDrive "--start-maximized" doesn't work

Postby ari37086 » Wed May 20, 2015 6:52 am

Hi,

I have a set of Selenium Test , that in past I run them with Chrome browser and now I run them with my CefApp
The successfully tests run with both.
BUT, for some reason "start-maximized" option doesn't work for CefApp.
In CefApp the window stay in it's initial size, while with Chrome it's maximized.

Any ideas ?

Chromedriver version – 2.15

thank you

Code: Select all
   def __init__(self, pathToEXE=".\\EXE\\", browser=MBConfig.MB_APP):
              if browser == "CefApp":
         self.chrome_options = Options()
         self.chrome_options.binary_location = MBConfig.MB_BINARY
         [b]self.chrome_options.add_argument("--start-maximized");[/b]
         self.driver = webdriver.Chrome(pathToEXE+"chromedriver.exe", chrome_options=self.chrome_options)
      elif browser == "Chrome":
         self.chrome_options = Options()
         [b]self.chrome_options.add_argument("--start-maximized");[/b]
         self.driver = webdriver.Chrome(pathToEXE+"chromedriver.exe", chrome_options=self.chrome_options)
ari37086
Techie
 
Posts: 28
Joined: Thu Feb 19, 2015 10:50 am

Re: ChromeDrive "--start-maximized" doesn't work

Postby magreenblatt » Wed May 20, 2015 11:31 am

CEF does not support the start-maximized command-line flag. You would need to implement that in your application.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 30 guests