Questions tagged [chrome-options]
144 questions
1
vote
1 answer
"ChromeOptions.AddUserProfilePreference" updating in a wrong format in Selenium C#
I wanted to update Chrome Profile preferences in Selenium C# to make a popup disappear by adding following line as part of Chrome Options.
string url = "https://google.com";
string envName =…

Subba Changa
- 194
- 2
- 15
1
vote
0 answers
chrome_options.add_extension adds the extension in switch off mode
I am using chrome_options.add_extension to add the extension into chrome browser and it works fine but the extension is loading in switch off mode. How can i handle that in script.
chrome_options = ChromeOptions()
…

sam
- 11
- 2
1
vote
2 answers
How can the Chrome Settings page be opened through a hyperlink?
I am building an app that requires the user to change a Chrome setting. It will be more convenient to send the user directly to chrome://settings instead of having them open it manually via the menu, but when I try and open it directly or through a…

Jaidev Ramakrishna
- 87
- 1
- 9
1
vote
0 answers
What does w3c : false under chrome options assert?
I am trying to run a protractor test, and had to include the following
chromeOptions: {
args: ["--incognito"],
w3c : false
}
Had to set w3c flag to false, as it was affecting the keyboard events. But by doing so, the…

siri
- 11
- 3
1
vote
0 answers
How to declare ChromeOptions and chrome Driver as a Public method to blockBrowserNotification_ Testng
I have worked with Selenium and TestNG to Automate my web based application,
in TestNG, we have more test methods, so I declared my chrome Driver and ChromeOptions as a public like below code,
ChromeOptions options = new ChromeOptions(); //declared…

SivaPrakash Testing
- 61
- 6
1
vote
1 answer
C# Selenium: How to click Accept button that is not in the DOM in a Sharepoint Folder Upload dialogue box
I have searched StackOverflow and could not find the correct solution for the following problem:
In an internal Sharepoint site, after clicking Upload, and then Folders, I use SendKeys.SendWait to input the directory location,. And then after…

Sohel
- 656
- 2
- 11
- 31
1
vote
3 answers
ChromeOptions not getting applied
I am trying to open the chrome browser with devtools open in maximized window.
Following code does not work, driver opens the URL in a smaller window without devtools.
System.setProperty("webdriver.chrome.driver", "

Jai S
- 41
- 1
- 5
1
vote
1 answer
Changing language order in Chrome settings with python selenium
I'm trying to test localization on a website. I can get Chrome to launch, and the settings page will show whatever I set in ChromeOptions under Language.
When I go to check the order of languages based on preference, they don't always match.
The…
1
vote
0 answers
How to block third party party JS using chrome profile 'managed_javascript_blocked_for_urls'
I have an automation suite running on an e-commerce website, which has a lot of third party JS content I do not want to load while running my tests.
I am looking for ways to block the unwanted content on the website to reduce the page load time.
I…

Rachit Goel
- 23
- 5
1
vote
1 answer
selenium python fullscreen_window
I want to put full window, but it only leaves me 800x600
def driver(request):
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
options =…

josue
- 630
- 1
- 10
- 16
1
vote
1 answer
What are the different chromeoptions for webdriver
For the ChromeOptions class in selenium, how can I find out all the keys like profile.default_content_settings.popups, download.default_directory which I can use with chromeoptions class to perform browser specific setting.
ChromeOptions option =…

smith
- 87
- 7
1
vote
0 answers
.NET - Selenium chromeOptions set preference for devtools
i'm trying to set a devtool preference for the chrome webdriver in .net, with the following code (Selenium)
ChromeOptions opts = new ChromeOptions();
opts.AddUserProfilePreference("devtools.preferences.Inspector.drawerSplitViewState",…

Pop Levente
- 29
- 4
1
vote
1 answer
ChromeDriver - headless option causes WebDriver to crash, when applied over added extension
Our framework uses “basic authenticator” extension that automatically takes care of authentication dialogs. The problem is that when attempting to run tests in headless mode, chromedriver crashes with following…

Yulaz
- 81
- 8
1
vote
1 answer
How to address "The constructor ChromeDriver(Capabilities) is deprecated" and WebDriverException: Timed out error with ChromeDriver and Chrome
I'm trying to config the default download directory as below, it's works correctly but I'm having two issues :
String exePath = "src\\Drivers\\chromedriver.exe";
System.setProperty("webdriver.chrome.driver", exePath);
String…

Eric
- 23
- 6
1
vote
0 answers
"Save as PDF" should be an option by default in Chrome (by Protractor)
If I create Chrome shortcut with the Traget "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --print-to-pdf it opens Chrome with "Save as PDF" option by default. That's fine.
But if I try to do it using Protractor config…

Bristly
- 11
- 2