Questions tagged [chrome-options]

144 questions
2
votes
2 answers

addArguments(java.lang.String... arguments) method of ChromeOptions is giving error

For the below code of setting chromeoptions using addArguments() method is giving following error cannot access AbstractDriverOptions options.addArguments("--disable-web-security"); ^ class file for…
2
votes
0 answers

Selenium browser capability fontSize

Is it possible to change the fontsize of the browser through capabilities? if so how? manually we can set it from chrome>>Settings>> Appearance>> font Size.. so, wanted to set it at initial launch of browser and work. Had tried to find it in…
2
votes
1 answer

Problem when using custom Chrome profile from different location

After I created a custom profile "SeleniumBot" I try to open it using Selenium ChromeDriver and Selenium ChromeOptions. It works just fine for the default path in AppData/Google/Chrome/User Data/SeleniumBot. I get problems when I try to copy the…
2
votes
2 answers

How to address "Options is not defined error" in Python Selenium?

I've recently have gotten a problem where, while using Selenium, wanted to use my default chrome browser profile, so it's signed in and everything, but when searched up on google, it gave me a code which is basicallty this: chrome_options =…
2
votes
1 answer

Selenium chrome use multiple add_experimental_option

I want to use 2 experimental options on my selenium chromedriver project, but I don't get enough information about the "add_experimental_option" function, I want to use 2 experimental options "prefs" and "debuggerAddress", and when I try to run it,…
2
votes
1 answer

AttributeError: 'Options' object has no attribute 'self' error using ChromeOptions for headless Google Chromethrough Selenium Python

So I've been trying to get headless chrome working for days. I have no idea whats wrong !! I've tried everything I can find in the forums relating to the issue. Right now this is the code im running (it's a direct snippet from someone else's…
2
votes
1 answer

Is there a way to allow chrome use your camera and microphone for selenium script? I don't want to pass fake stream

I am aware of ChromeOptions and passing fake media stream options.addArguments("use-fake-device-for-media-stream"); options.addArguments("use-fake-ui-for-media-stream"); But I don't want to pass fake media. I want to use my laptop's camera
2
votes
1 answer

How to disable camera and microphone popup alert via Selenium WebDriver tests?

Currently, I have tests which perform a specific test flow however this specific flow causes Chrome to present the user (Tests) with a microphone, camera alert popups: I need a way to disable the alerts via Selenium Webdriver / Java, I have…
2
votes
2 answers

How to run the Chrome Beta version with ChromeDriver using Selenium?

i am trying to run the chrome beta version with selenium Web-driver. When i run the test case i got the following error on console see image please: I have added following lines in the node config file: { "capabilities": [ { …
2
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…
2
votes
2 answers

UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure

While executing my suite dynamically on grid using docker-compose, I am getting the following exception stacktrace: org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the…
Sagar Jani
  • 161
  • 2
  • 3
  • 21
2
votes
0 answers

chromeOptions responsive mode show device frame argument?

Is there an argument so I can setup the chromeOptions to show the device Frame in responsive mode here is what I use so far: HashMap mobileEmulation = new HashMap(); mobileEmulation.put("deviceName",…
2
votes
1 answer

ChromeOptions and DesiredCapabilities relations in Selenium and C#

I've been searching for the correct documentation on how to use ChromeOptions and DesiredCapabilities in the atmosphere of Selenium and C#, but since it's all open sourced, I only find suggestions (and they are not helping sometimes). My question…
President
  • 37
  • 1
  • 7
2
votes
1 answer

Capture XHR / Ajax requests in Chrome

I am using LogType.WebBrowser, LogLevel.All to capture console output from Chrome's console output window But for some reason, I am not capturing the XHR messages under the 'Debug' tab Can anyone tell me why, I can't capture these XHR logs?
2
votes
1 answer

How to get chromeOptions value from remote webdriver capabilities?

Once start the test run, remote web-driver has initialized for the given capabilities: Below is the selenium node log:[Here I am setting some chrome options] 19:16:08.245 INFO - Creating a new session for Capabilities [{browserName=chrome,…
1 2
3
9 10