Questions tagged [chrome-options]
144 questions
3
votes
2 answers
Chrome browsing windows stays open even after session failed with WebDriverException
I am using selenium 3.141.59 with chrome 79 and chromedriver 79. Randomly I am getting an exception from RemoteWebDriver.get(url); and that session removing from the selenium server. But the Chrome window stays open. Because of that, I am not able…

rdonuk
- 3,921
- 21
- 39
3
votes
3 answers
Chrome works in headless mode on linux Server but shows "DevToolsActivePort file doesn't exist" error in gui mode through Selenium and Python
selenium code to automate on chrome browser.
chrome version: 79.0.3945.117 (same for local and server machine)
chrome driver: tried all latest & below till chrome version driver.
Execution Status - On Local machine:
Works fine in headless and…

Vaibhav
- 143
- 1
- 6
- 14
3
votes
1 answer
Selenium newer Chrome cannot disable browser notification (Tried other solns)
I know this is an old question, and I've tried answers from a few posts such as Disable Chrome notifications (Selenium)
Unfortunately none worked, the browser notification popup still comes and interrupts my simulations.
My Chrome version is…

user2751691
- 401
- 2
- 10
- 32
3
votes
0 answers
How to change already set chrome options while running tests?
While sharing screen from webrtc application, user gets 3 options.
1. Share entire screen
2. Share specific tab
3. Share specific application
I need to automate these TC's. Have found a way to do it individually on different browser driver by…

Prachi Dake
- 31
- 2
3
votes
3 answers
Selenium - Mobile Emulation - how do I add user Agent to Chrome options while automating the emulator?
Below are the capabilities I added. I am getting a Google reCAPTCHA
in my website which can be trespassed by adding user agent.
But even after the addition of user agent I am still getting the captcha. Is there another way to add it?
Map

testergirl
- 121
- 1
- 4
- 11
3
votes
3 answers
selenium RemoteWebDriver opens but ChromeOptions are not passed to Selenium Grid
I have been trying to resolve a few issues with RemoteWebDriver and ChromeOptions using docker and selenium grid. The main issue is with the proxy but I half resolved that with a proxy pac file passing the pac file url as an arg into ChromeOptions.…

titan9873
- 51
- 1
- 3
3
votes
3 answers
Chrome headless browser with corporate proxy authetication not working
I am trying to run a Chrome headless browser sitting behind a corporate proxy. I tried below code. But unable to pass through it.
public class HeadlessChrome
{
WebDriver driver;
@Test
public void createChromeDriverHeadless() throws…

Solomon Raja
- 1,341
- 1
- 14
- 23
3
votes
1 answer
ChromeOptions to set browser zoom to 80%
I would like to set the default zoom value to 80% when opening the browser for a selenium framework. Something along the lines of below. Is this possible with ChromeOptions.
private static ChromeOptions GetChromeOptions()
{
ChromeOptions…

Ross
- 2,463
- 5
- 35
- 91
3
votes
2 answers
Passing chromeOptions args to the selenium node in .json file on Linux
I'm trying to create node with following configurations:
java -Dwebdriver.chrome.driver=/randomfolder/chromedriver -jar selenium-server-standalone-3.4.0.jar -role node -nodeConfig node-conf.json
As you see I'm passing config in a json file. It sets…

Tadas Baikshtis
- 35
- 2
- 4
3
votes
2 answers
How To Hide Chrome Web Driver Icon (Python-Selenium)
UPDATED WITH REASONING
Goal: Run chrome web driver in background without showing an app icon in the dock or application bar. FYI: I can already run chrome headless, but I have not been able to hide or not show the chrome icon in my app bar.
Reason:…

Krusaderjake
- 479
- 1
- 7
- 19
3
votes
2 answers
Selenium ChromeDriver - is it possible to load multiple extensions?
(I'm new so don't kill me, please)
I'm trying to start ChromeDriver for a Chromium-based browser with multiple unpacked extensions, thus (simplified for your convenience, but basically the same as in the code):
foreach (var path in…

Bell
- 31
- 1
- 2
3
votes
2 answers
Protractor - disable 'harmful' download message on chrome
I'm trying to download a file in my test. I've managed to start the download without getting the download prompt.
the problem now is that I'm getting a warning saying that "This type of file can harm your computer.Do you want to keep...anyway?" and…

user2880391
- 2,683
- 7
- 38
- 77
3
votes
1 answer
Selenium ChromeDriver is getting timed out after google profile is loaded
I wanted to load the chromedriver with default profile of chrome. I used the below code to do that.
var options=new ChromeOptions();
options.AddArguments("--user-data-dir=C:\Users\username\AppData\Local\Google\Chrome\User Data");
var drivers=new…

Raghavendra Bankapur
- 843
- 1
- 9
- 18
2
votes
0 answers
How to disable chrome pdf viewer in new tab with java in playwright
I'm trying to disable the pdf viewer in a new tab when I use chromium in Playwright. Do you know how can achieve that? Firefox has a method, it's called .setFirefoxUserPrefs().
For chrome, it's not implemented, but found the following…

Angel Dayredzhiev
- 21
- 2
2
votes
1 answer
How to update the Proxy Server within the same session using Selenium and Python
How is it possible to change the proxy server in Selenium after starting the driver?
I saw several threads on this topic, but none of the answers were correct.
You can use not only Chrome but also Firefox.
If you have any ideas on how to change the…

Leo
- 43
- 9