Open GoogleCodeExporter opened 8 years ago
Yes, it 's possible. Here is an example to start Chrome maximized and to
automatically download files to a directory:
Dim wd As New SeleniumWrapper.WebDriver
'To start chrome maximized
wd.addArgument "--start-maximized"
'To automatically download files to a directory
wd.setPreference "download.default_directory", "c:\"
wd.setPreference "download.directory_upgrade", true
wd.setPreference "download.extensions_to_open", ""
wd.setPreference "download.prompt_for_download", false
wd.start "chrome", "http://www.google.com"
Original comment by florentbr
on 19 May 2014 at 8:41
Hi Florent,
Thanks for your prompt response!
I have tried what you suggested - it appears the "--start-maximized" flag you
showed works fine, however I can't seem to start it with the
"--allow-file-access-from-files" flag.
I'm wondering if it has something to do with administrative rights being needed?
I ensured all other instances of Chrome were shut down before testing my script.
Original comment by luke....@gmail.com
on 19 May 2014 at 11:15
Sorry Florent - realised I had something wrong in my HTML string, not a problem
with selenium.
Thanks again - all working now.
Original comment by luke....@gmail.com
on 19 May 2014 at 11:21
Original comment by florentbr
on 8 Sep 2014 at 5:40
Original issue reported on code.google.com by
luke....@gmail.com
on 19 May 2014 at 8:24