Questions tagged [chrome-options]

104 questions
0
votes
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 =…
0
votes
1 answer

Configured ChromeDriver capabilities are lost after building the WebDriver in Node Selenium

I'm trying to add in the default download path with chrome capabilities using the code shown below: const test = async () => { let builder = await new Builder().forBrowser("chrome"); let chromeCapabilities = builder.getCapabilities(); //…
0
votes
0 answers

Unable to add chromeoptions argument while running headless using cmd

My code contains these lines in java. Locally on windows, it runs fine in eclipse, but when I run it using a batch-file, it creates the options object and just closes the program without any error or logs. It does not execute the lines with…
0
votes
1 answer

Why is my webdriver.chrome() not working?

Before I get blasted in my comments on this question, I am well aware that this is a possible duplication of this link, but the answer provided is not helping me out with my instance of code, even after applying an adjusted version of the answer in…
0
votes
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…
0
votes
0 answers

Robot framework - Selenium - ChromeOptions "Prompt For Download" not working when downloading a file

I'm using robot framework with selenium for automating my web application. I'm trying to open chrome browser and download a XML file and then parse it from the results folder ${OUTPUT_DIR}. Every time I'm trying to download any file, chrome browser…
0
votes
1 answer

How to open Chrome browser maximized and supressing the infobars through ChromeOptions and addArguments using Selenium Java

I am using Chrome driver on mac, and when opening the browser I have these options WebDriver driver; @Before public void setup() { ChromeOptions options = new ChromeOptions(); options.addArguments("use-fake-ui-for-media-stream"); …
0
votes
1 answer

How can I open the Chrome browser in mobile mode using the Selenium webdriver for load testing in JMeter?

I want to open a URL in the Chrome browser, but in mobile mode during my load test in JMeter. I am using Selenium scripts. Below is my Selenium script var pkg = JavaImporter(org.openqa.selenium,org.openqa.selenium.support.ui) // Import Java Selenium…
0
votes
1 answer

Groovy, Selenium, Cucumber, adding ChromeOptions arguments

I wanted to create a BaseTest.groovy where i implement the Webdriver with headless mode. package api import org.openqa.selenium.WebDriver import org.openqa.selenium.chrome.ChromeDriver import org.openqa.selenium.chrome.ChromeOptions class…
0
votes
0 answers

Selenium Java Chrome error, DevToolsActivePort file doesn't exist still unresolved for me

Update: This is not a duplicate qns as none of the solutions at Selenium: WebDriverException:Chrome failed to start: crashed as google-chrome is no longer running so ChromeDriver is assuming that Chrome has crashed worked for me I had my Java…
0
votes
1 answer

How To Pass osVersion Capability Via Chrome Options To Browserstack

I have been refactoring my test framework to not use DesiredCapabilities since they are now Obsolete and there isn't a way to get rid of the warnings. I'm running into an issue when passing Options to BrowserStack where the OS and OSVersion options…
LoflinA
  • 310
  • 3
  • 17
0
votes
2 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
  • 31
  • 5
0
votes
1 answer

Chrome headless does not work with Re-direct (OAUTH2)

When I run my protractor project normally, everything is fine, but in headless mode, it does not work, times-out waiting for the first element I need. I feel that because the page redirects due to OAUTH2, in headless it fails. I have tried…
snikt
  • 493
  • 4
  • 8
  • 22
0
votes
0 answers

can't open browser using chromeoptions python

i Tried using chromeoptions in python to open the browser, but am facing some issues ,i have given the executable path but also it is telling like that. New To Python With Selenium. Help Needed!! selenium.common.exceptions.WebDriverException:…
koushick
  • 461
  • 1
  • 6
  • 24
0
votes
2 answers

Geb - ChromeOptions not being used

Geb test ignoring GebConfig.groovy file launched in IntelliJ helped me get the ChromeDriver to be used, but now I have the problem that ChromeOptions are not being used despite being supplied. I took the solution provided and just added the…
Guy
  • 191
  • 11