Questions tagged [chrome-options]
144 questions
2
votes
1 answer
add_experimental_option() missing 1 required positional argument: 'value'
I used the following code according to this post Set chrome.prefs with python binding for selenium in chromedriver
chroptions = webdriver.ChromeOptions
chroptions.add_experimental_option('prefs',{'download.default_directory' :…

Helena K
- 469
- 2
- 6
- 15
2
votes
1 answer
Setting a particular chrome driver setting/option
I need to uncheck "Ask where to save each file before downloading" Chrome setting via selenium:
I don't even know where to start since the documentation page doesn't contain the list of all available options. And, I haven't found the appropriate…

alecxe
- 462,703
- 120
- 1,088
- 1,195
1
vote
0 answers
Change browser fingerprints in chrome using selenium python
I have such a problem. I can't spoof chrome browser data through selenium. I don't understand how to replace the data. I need to replace canvas, wavegl, and other data. I have a fingerprint file. But I don't understand how to connect them all to…

Rariti
- 11
- 1
1
vote
1 answer
Godaddy website cannot be scraped with Selenium Python
I attempted to scrape the Godaddy website but was unsuccessful.
When I conduct a search for a particular name, it comes up "We were unable to complete your search. Please try again." and a standard browser can use it just well (without…

Khush
- 11
- 2
1
vote
1 answer
Cannot use existing browser while debugging in selenium c#
I am trying to use an existing browser for debugging and I have used the below commands to open a browser session with a desired port.
chrome.exe --remote-debug-port=9014 --user-data-dir=****
A new browser window opens up but I guess chrome is not…

Saranya Arun Prakash
- 11
- 1
1
vote
1 answer
Selenium Chrome detection tests
I want more sure, than my python selenium chrome will not detected.
So, how i can avoide failed of these tests:
https://bot.sannysoft.com/ CHR_MEMORY FAIL
https://bot.incolumitas.com/ "inconsistentWebWorkerNavigatorPropery":…

MrBrendan
- 11
- 4
1
vote
3 answers
Code unreachable when adding Selenium ChromeOptions
For some reason my Python code displays as unreachable after adding a series of WebDriver options. Does anyone know why this is happening and how it can be fixed?
Code itself is below:
class DriverOptions(object):
def __init__(self):
…

frumsky
- 39
- 6
1
vote
1 answer
Python, Selenium: How to specify which sites can load images?
In Selenium chromdriver, we can disable images in this way:
from selenium import webdriver
chrome_options = webdriver.ChromeOptions()
prefs = {"profile.managed_default_content_settings.images": 2}
chrome_options.add_experimental_option("prefs",…
user18196171
1
vote
1 answer
allow chrome use your real time camera and microphone for selenium in multiple browser window for webrtc application
I am passing fake media stream for camera and microphone access for one of my webrtc application using selenium python.But i want to allow access for real device microphone and camera.I want to test it for multiple users in a single device.For every…

jack
- 351
- 5
- 23
1
vote
3 answers
How to enable Downloading PDF files through Karate ChromeDriver?
When PDF hyperlinks selected using karate chromedriver, the files are opening in new tab rather than downloaded to the local system. I tried with below ChromeOptions while configuring the driver, but none of them looks worked for…

Srinivasu Kaki
- 121
- 7
1
vote
1 answer
How to click "Allow" automatically on Google Chrome pop-up using Selenium + Java
Based on what I have read, there is a way to do this for Google Chrome versions < 50 and a way to do this for Google Chrome versions > 50. I am using Google Chrome 91.
There is an answer on to this located here: How to click Allow on Show…

mastercool
- 463
- 12
- 35
1
vote
0 answers
Chrome WebDriver - C#.NET How to load existing chrome cookie/profile, so I can bypass the authentication
I am having really difficult during development. Every time I run a Selenium test via VS.NET, the website I want to automate always ask for all security questions. It's very time-consuming. If I open the same webpage using Chrome, it has all the…

dev
- 11
- 2
1
vote
1 answer
Options().add_experimental_option does not work
I've been working on a script to automate a task in Google Chrome. Unfortunately, I haven't had any luck in giving Chrome access to my microphone and denying access to notifications. I have tried using Options().add_experimental_option() but without…

Stegosaur80
- 11
- 1
- 2
1
vote
0 answers
Python - Save to PDF screen not displaying in chrome 85.0.4183.102
With Reference to the solution from: Chromedriver Save as PDF method not working
Am having issue in displaying Ctrl+P for saving to PDF, the screen appears with all the fields disabled and will closes immediately. Am using the solution provided in…

Lokesh Kumar
- 11
- 1
1
vote
1 answer
Selenium: Disable headless when code is running? (Python)
I saw this post:
How to make headless browser visible Python
But apparently it's not possible to disable headless once the code is running, is there an alternative?
My code detects if there is a captcha on the page, displays the window and once the…

Tibo1212
- 53
- 1
- 10