All Questions
Tagged with c# selenium-webdriver
11,132
questions
0
votes
0
answers
10
views
SpecFlow isn't able to find test results in test results file
I'm trying to set up SpecFlow. I have set up my configuration to create .trx files for test results so that I can upload them to Azure DevOps using SpecFlow. I assume I set something up incorrectly in ...
0
votes
0
answers
19
views
C# Selenium ChromeDriver, how to perform window zoom out function?
What I need to accomplish is the same exact functionality as the cntrl+ or contrl- key strokes in the chrome driver. Using the javascript way does not bring all the elements into view.
I've tried the ...
0
votes
0
answers
22
views
Unable to obtain chrome using Selenium Manager, --language-binding
I upgraded my Selenium from 4.6.0 to 4.19.0 and running a test gives me this error
OpenQA.Selenium.NoSuchDriverException : Unable to obtain chrome using Selenium Manager; For documentation on this ...
0
votes
0
answers
22
views
How to export test result present in Visual Studio 2022 Professional? I am working on specflow and there is no nunit used
I have executed my tests and want to export result present in Test Explorer in Visual Studio 2022 Professional v17.10.4. I am working on specflow and there is no nunit used. Is there any way to export ...
-1
votes
0
answers
18
views
Getting error: System.NullReferenceException : Object reference not set to an instance of an object [duplicate]
Getting error on executing this line IWebElement logo = driver.FindElement(orangeHRMBranndindLogo);
Create Page file which contains below code:
public void LaunchOrangHRM(string URL)
{
...
-2
votes
1
answer
60
views
Getting an error while running my selenium project with corpdev account-Exception thrown: 'OpenQA.Selenium.WebDriverException' in WebDriver.dll
My Chrome driver is not launched when I open my .csproj in VS 2022 through corpdev account. When I open my project directly in VS 2022, I am able to run successfully. The error is as follows:
...
0
votes
0
answers
19
views
I am using IEDriverServer to automate Edge in IE mode. But my application open new window on click of button and it is not recognising the new window
var ieOptions = new InternetExplorerOptions();
ieOptions.AttachToEdgeChrome = true;
//change the path accordingly
ieOptions.EdgeExecutablePath = "C:/Program Files (x86)/Microsoft/Edge/...
0
votes
1
answer
52
views
Multi thread Automation scripts Selenium C# (Threads - 8). After sometime the CPU went to 100% utilization as the Edge browser is not getting closed
Selenium - C#
I triggered a multi-thread Automation scripts(200 scripts) (Threads - 8).
After some time the CPU went to 100% utilization as the MsEdge browser is not closing and it eats up all the ...
0
votes
0
answers
14
views
Selenium accordion element to be clickable
I have the following HTML code:
<spaui-accordion _ngcontent-ouh-c26="">
<spaui-accordion-tab _ngcontent-ouh-c26="" id="accordioAcordosPendentes&...
0
votes
1
answer
35
views
Click on a Selenium button that isn't an input
I've the following HTML code:
<div _ngcontent-fsi-c26="" class="col-xs-12 ng-star-inserted" style="margin-top: 3%;">
<div _ngcontent-...
0
votes
1
answer
123
views
Getting error for COM excel when trying to build project in Visual Studio
Using Bitbucket as remote repo.
Created a Https token in bitbucket
When trying to clone using Visual Studio it asked for username and password. I provided with my username and for password gave the ...
0
votes
1
answer
20
views
Verifying a checkbox is checked with C# & Selenium is failing
I'm working with C#.NET and Selenium and am attempting to verify whether or not a checkbox is checked. It fails every time. Here's the code:
public static void verifyCheckboxIsChecked(WebDriver driver,...
0
votes
0
answers
30
views
Test Run Results Directory "In" always is empty
I am developing automation tests using MSTest, Selenium and C#. The test results structure is:
Solution\
TestResults\
DeployDirectory\
In\
...
0
votes
0
answers
10
views
NUnit [TestCaseSource] causing [SetUp] and [TearDown] run multiple test as well
I don’t want NUnit [TestCaseSource] causing [SetUp] and [TearDown] run multiple following the [TestCaseSource]
I want it the [SetUp] run 1 time at begining, [TestCaseSource] run multiple times until ...
0
votes
0
answers
25
views
C# selenium Chrome options for user data not working
I am building a selenium app, and it is supposed to start some websites (of course), and I want to make that chrome have data so user doesn't have to log in and stuff. So I put this code from ChatGPT (...