All Questions
81 questions
0
votes
1
answer
62
views
click allow cookies popup on firefox selenium c#
I want to click on allow option which is coming out from a pop up of a website ,I want to do on firefox to allow cookies:
i try this code but not work :
FirefoxDriverService cService = ...
0
votes
0
answers
41
views
Selenium Firefox event page load complete
I want to make a code run when page is COMPLETE.
if like a address do action if not do another action
Like this:
If (url==1) {}else{}
I want run that when page refresh or navigate repeatedly.
Like we ...
0
votes
1
answer
249
views
Firefox Marionette is detected by hCaptcha
Whenever I visit indeed.com using firefox web driver in Marionette mode. I get hit with an hCaptcha prompt. I tried using a user script that runs at document-start to overwrite the navigator.webdriver ...
2
votes
1
answer
355
views
File upload using SendKeys in Selenium not working
I have following code
IWebElement chooseFile = driver.FindElement(By.XPath("//button[@id='btnSelect']"));
chooseFile.SendKeys(@"D:\Workspace\Base Version (Do Not Use)\file.tar.gz");...
4
votes
0
answers
489
views
I want navigator.webdrivers set false or undefined in selenium.firefox
I want navigator.webdrivers set false or undefined in selenium.firefox.
Geckodriver version : 0.30.0
Firefox version : 95.0.2
Selenium version : 4.1.0
This problem's solution in Chrome.
Coptions = new ...
2
votes
0
answers
1k
views
OpenQA.Selenium.WebDriverException: 'Cannot start the driver service on http://localhost:64225/'
I want to change my ip address and visit a site using proxy ip, but in the code block
IWebDriver driver = new FirefoxDriver(firefoxDriverService,
firefoxOptions);
It gives an error when it comes to ...
0
votes
1
answer
906
views
How to address the error The file geckodriver.exe is being used by another process using Firefox and Selenium C#
I'm trying to run my test in Chrome and Firefox using selenium c#.
The problem is, when install the Selenium.WebDriver.GeckoDriver to be able to run the test on Firefox browser it breaks my code and I'...
0
votes
1
answer
1k
views
C# Selenium get Html document after it has been modified
Basically I have the following HTML source:
<b class="number"> Click to see </b>
And when you click on this, this is its JS code:
function fun(){
number.html("12345"...
1
vote
1
answer
1k
views
C# SELENIUM: Can't access URL after setting custom FIREFOX profile
I am trying to connect to profile, its successfully connect to custom firefox profile, but the problem after that is command FirefoxDriver driver = new FirefoxDriver(options); no more works, works ...
0
votes
1
answer
1k
views
How can I attach FirefoxDriver to a running instance of Firefox?
I have started firefox with the argument --start-debugger-server 61300.
FirefoxOptions firefoxOptions = new FirefoxOptions();
firefoxOptions.AddAdditionalCapability("debuggerAddress", "...
1
vote
0
answers
788
views
Selenium much slower in Firefox than Chrome
I have a very simple selenium test the completes a login form. Using the ChromeDriver it completes in around 5 seconds, but using FirefoxDriver it takes around 30 seconds, with a multiple second pause ...
1
vote
1
answer
650
views
Error starting selenium: cannot start the driver service
I am trying to launch a browser using selenium on my computer. There is a code like this:
IWebDriver driver = new FirefoxDriver(FirefoxDriverService.CreateDefaultService(@"F:\FirefoxPortable"...
2
votes
1
answer
553
views
(C#) How can I hide the Selenium Webdriver console application while also providing a custom path to the drivers?
I have a requirement to both hide the console that comes up when using Selenium-Webdriver and also being able to provide a custom path to the exact location and version of the driver I'm using. There ...
2
votes
2
answers
5k
views
System.InvalidOperationException: 'Expected browser binary location, but unable to find binary in default location error using Firefox Selenium in C#
I'm trying to use Selenium in C# and I get the following error,
System.InvalidOperationException: 'Expected browser binary location,
but unable to find binary in default location, no
'moz:...
0
votes
1
answer
1k
views
Click On The Google Form Quiz ViewScore Button Using Selenium C#
I have tried to click this last button to see score using Selenium but it doesnt work. I tried using CSSselector. Any ideas what will work lol?
![1]: https://i.sstatic.net/NZ90V.png
try
{
...