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)