Questions tagged [chrome-options]

144 questions
21
votes
2 answers

Chrome Options in Python Selenium : Disable GPU vs Headless

In python-selenium chrome_options, What exactly is the difference between the following two options, I know both runs the selenium script without opening the browser.…
Mahesh Kumaran
  • 887
  • 2
  • 12
  • 30
10
votes
1 answer

Change ChromeOptions in an existing webdriver

Scenario: There is a requirement of downloading files from web hierarchy to local drive under same hierarchy. Example Web Hierarchy: Parent 1: Child 1: *File 1 Child 2: *File 2 When downloading File 1, it should store in…
10
votes
1 answer

Can I still specify a path to chromedriver using ChromeOptions in Python?

I received this error: "WebDriverException: Message: 'chromedriver' executable needs to be in PATH." The only way I was able to fix it was to manually add one of the locations of chromedriver like this: driver =…
7
votes
1 answer

What does double dash (--) implies in Selenium ChromeOptions

I am using selenium with java and I am using some chrome options with it. But I see different usages of chrome options in different sources. I mean some folks using double dash before the option and some do not (like disable-dev-shm-usage and…
7
votes
1 answer

Pass audio from file to Chrome using selenium

I'm trying to pass .wav file to Google Web Speech API Demonstration with "--use-file-for-fake-audio-capture=/path/to/file.wav" Using Web Speech API requires selecting a language and clicking the microphone icon. In result, I expect the .wav file…
7
votes
2 answers

Where can I find a list of all available ChromeOptions with selenium?

Where can I find a list of all available Chrome Options with selenium? While crawling with selenium in a python environment, I had to use flash in the chrome webdriver. so I tried to find a setting that would allow Flash and I found these…
7
votes
2 answers

Python Selenium Chrome disable prompt for "Trying to download multiple files"

I am currently running a Python automator which needs to download multiple files within the same session using Selenium Chromedriver. The problem is that when the browser attempts to download the second file and read it, the browser will not…
Andy Feely
  • 245
  • 1
  • 2
  • 10
5
votes
2 answers

How to change browser language of webdriverio

I would like to change browser language. but it is not working. default browser language is displayed.. capabilities: [{ browserName: 'chrome', chromeOptions: { args: ['--lang=ja'] } }],
Tomo
  • 51
  • 1
  • 3
4
votes
1 answer

How To Set ChromeOptions (or goog:ChromeOptions) for Selenium::Chrome in Perl

In Python, I could easily change the browser "navigator.webdriver" property to false, when using the local chromedriver with my local Chrome browser. from selenium import webdriver options =…
Shang Zhang
  • 269
  • 1
  • 8
4
votes
1 answer

Chrome options Proxy Bypass List not working

I've been trying to add arguments to my Chrome Options to use a proxy and to ignore certain URL's. I've followed the documentation and am trying to run this very simple test: @Test public void myTest(){ ChromeOptions options = new…
ChrisG29
  • 1,501
  • 3
  • 25
  • 45
4
votes
1 answer

Getting network information with ChromeDriver in C#

I'm trying to access the network tab information from a chrome page that was launched with ChromeDriver in C#. I would like total data transferred and page load time at the least... I've been messing around with setting different ChromeOptions and…
3
votes
3 answers

How to change download directory location path in Selenium using Chrome?

I'm using Selenium in Python and I'm trying to change the download path. But either this: prefs = {"download.default_directory": "C:\\Users\\personal\\Downloads\\exports"} options.add_experimental_option("prefs", prefs)` or…
3
votes
2 answers

Selenium: get() not working with custom google profile

All what im trying to do is pretty much access whatsapp web where I have my whatsapp already linked, However when I use a custom profile the profile does open, however browser.get("https://web.whatsapp.com) doesn't seem to open. or any…
3
votes
0 answers

How to prevent being signed out of your Google account on a Chrome profile opened in Selenium Python

I managed to start Selenium with a custom Chrome Profile that is signed into a Google Account using ChromeOptions by changing the location of the Chrome Profile folder in my directory, renaming it to "Default" and omitting the "Default" in the path…
3
votes
1 answer

chromedriver doesn't make use of download.defaultDirectory

Using ruby, selenium, capybara, cucumber; Setting local driver in env.rb next way: args = %w[--ignore-certificate-errors --window-size=1360,998] prefs = { download: { default_directory: "#{Directories::DATA}/downloads", …
1
2 3
9 10