Open GoogleCodeExporter opened 8 years ago
'To start chrome maximized :
driver.addArgument "--start-maximized"
'To automatically download files to a directory :
driver.setPreference "download.default_directory", "C:\temp"
driver.setPreference "download.directory_upgrade", true
driver.setPreference "download.extensions_to_open", ""
driver.setPreference "download.prompt_for_download", false
'To set a proxy :
driver.setProxy "193.33.142.156"
'To set a profile :
driver.setProfile "C:\...\User Data"
'To start chrome :
driver.start "chrome", "http://www.google.com"
Be aware that addArgument, setPreference, setProxy and setProfile have to be
called before the start command to be effective.
Moreover setPreference is only working with chrome since version 1.0.16.0
(04/11/2013).
Hope this will help.
Original comment by florentbr
on 4 Nov 2013 at 9:28
Thank you so much, it is all working perfectly. You have been been very helpful
and I am truly grateful for all your hard work.
Original comment by stha...@gmail.com
on 4 Nov 2013 at 10:11
Original comment by florentbr
on 8 Sep 2014 at 5:40
Hey guys! can anybody help me? I have a Python routine that uses the command below to prevent Chrome from installing an add-in. I need this command because it's in a corporate network. Anyone know how I can use it not VBA?
capabilities = { 'browserName': 'chrome', 'chromeOptions': { 'useAutomationExtension': False, 'forceDevToolsScreenshot': True, 'args': ['--start-maximized', '--disable-infobars'] } }
Original issue reported on code.google.com by
stha...@gmail.com
on 31 Oct 2013 at 7:09