FireFox :
self.driver = webdriver.Firefox()
self.driver.maximize_window()
Chrome :
url = "C:\\Programs\\Python36\\BrowersDriver\\chromedriver.exe"
options = webdriver.ChromeOptions() options.add_argument("--start-maximized") self.driver = webdriver.Chrome(url,chrome_options=options)
No comments:
Post a Comment