All Questions
Tagged with nunit selenium-webdriver
708 questions
0
votes
2
answers
63
views
Browserstack Nunit testing - run locally
After 2 days of trying reaching out for somebody to shed some light on this.
My ideal setup for writing tests is that a test will be developed using local browser (which I can get to work).
Then have ...
0
votes
1
answer
63
views
How to print off .xml test result from Selenium in same format as NUnit Console?
I'm trying to build an Azure pipeline that can read test results so that I can automatically update their status in Test Plans. The only way I've been able to print off test results that the Visual ...
0
votes
0
answers
85
views
Selenium Tests Failing on GitLab CI Runner (Windows) and Seeing White Screen in Headless Mode Locally
I'm encountering an issue with Selenium tests in a .NET/C# project using the NUnit framework, and I’m seeing two related issues between my local machine and the CI environment.
Setup and Issue ...
0
votes
1
answer
71
views
Unable to attach ExtentReportManager as ITestListener in NUnit Test Runner
Description:
I'm working on integrating Extent Reports with NUnit for my automation framework, aiming to capture detailed test execution logs and screenshots. The idea is to create a structured Extent ...
0
votes
1
answer
46
views
Using selenium to assert a large amount of text on a web page all at once?
What I am using:
C#, Selenium (v 4.20), NUnit, Visual Studio
The Scenario:
I am trying to assert that all the text on a given web page is visible and is also the correct text. I have a handful of ...
0
votes
0
answers
37
views
Choose Your Search Engine’ Dialog Works in Headless Mode but Not in Non-Headless Mode - Selenium C#
I am facing an issue where every time I run a test, the "Choose your search engine" screen appears. My browser setup configuration is as follows:
For non-headless mode:
`windowsChromeOptions....
1
vote
0
answers
297
views
Selenium issue: DevToolsActivePort file doesn't exist (SessionNotCreated)
since a week ago, we are facing an error when we start the ChromeDriver in a Selenium project. Our C# piece of code is:
var options = new ChromeOptions();
options.AddArgument("--no-sandbox");...
0
votes
0
answers
28
views
The result of the xpath expression is: [object Text]. It should be an element. Cannot capture Xpath for the text after :: (double colons) [duplicate]
I'm trying to capture "News & Events". But I can't get Xpath for the text after :: (double colons)
Please refer this image for the html code
private IWebElement newsAndEventsHeadding =&...
0
votes
1
answer
173
views
Selenium runs very slow with headed web driver in VS debug mode and NUnit test run
I'm working on Web automation test and I plan to use Selenium. I use Selenium to manipulate Edge browser to test. I create console application with C#.
EdgeOptions edgeOps = new EdgeOptions();
edgeOps....
0
votes
1
answer
129
views
When starting a Nunit project from the command line, searches for files along the nunit3-console path
I run tests with the command:
C:\Users\user\NUnit.Console-3.17.0\bin\net6.0\nunit3-console.exe C:\Users\user\source\repos\mmfo_autotest\RegressionTestSuite\bin\Release\net6.0\Regression_Test_Suite.dll
...
0
votes
3
answers
72
views
React - Selenium - Testing project - How to get nth element
Using C# I am writing unit tests using Selenium (testing my react front end)...My html is:
<article class="company-details-container">
<div class="details-header"...
0
votes
2
answers
313
views
Issue in excluding nunit test fixtures from parallel execution
AssemblyInfo.cs
using NUnit.Framework;
[assembly: Parallelizable(ParallelScope.Fixtures)]
[assembly: LevelOfParallelism(3)]
Now I have 55 test classes in my suite, and I have marked only 5 test class ...
0
votes
1
answer
69
views
WebDriver and NUnit - [Test] best practice
Imagine there is a CRUD (create, read, update, delete) test for a car object.
Is it best to have
[Test, Order(1)]
{
Create
}
[Test, Order(2)]
{
Read
}
[Test, Order(3)]
{
Update
}
[Test, Order(4)]...
0
votes
2
answers
83
views
How to write instructions to write log records of Selenium automation test results in batch file
My batch file to run Selenium Automation test cases that were written using C# NUnit is as follows:
set test_runner="C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\...
0
votes
1
answer
148
views
How to run C# NUnit automation tests from bibucket.org repository using jenkins localhost instance?
I am trying to run the C# automation tests which are present in a repository which is located at the bitbucket.org (It is a remote repository). The project uses C# and NUnit framework. I totally got ...