Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
253 views

Login Credentials are not being accepted if the Brower is opened via Selenium Webdriver Session

I am getting into a very weird issue if a browser (either Chrome or Edge) is opened by Selenium 4.2.0 then credentials are not being recognized and login fails regardless of if the credentials were ...
M-A Charlotte's user avatar
0 votes
1 answer
136 views

Execute Code when all Test Scripts are executed in C# Visual Studio

I need to execute some set of code once all the Test Scripts have been completed executed (Sequentially/ Parallelly)( It should be like ‘After Suite’ in JAVA). I came across annotation [SetupFixture] ...
suman kundu's user avatar
0 votes
0 answers
365 views

Pass list of WebElements in a parameter of a function and loop it using selenium c# code

I have a common function to verify the element is present in the page as below public EditorialMiscellaneousPages VerifyContent(element) { Boolean _element = element.Displayed; if(...
Meghasri's user avatar
  • 105
0 votes
1 answer
57 views

Verify Order Of HTML Elements With Attribute Values Such as Class="Group0-Item1" Class="Group0-Item2" Class="Group1-Item1"

In my Selenium/C#/NUNIT project, I need to find a way to validate the order (top down hierarchy of a page's HTML) for a group of HTML elements (as well as the elements contained within those groups). ...
Mike Johnston's user avatar
0 votes
0 answers
440 views

Selenium Webdriver with C# Is there a way to Scroll the Mouse wheel?

While using Selenium Webdriver with C# Is there a way to Scroll the Mouse wheel over a Hover Menu?
M-A Charlotte's user avatar
-2 votes
1 answer
594 views

Steps to setup and work with Specflow, Selenium, Nunit, .NET Core using Visual Studio 2017 and Visual Studio 2019

Installed Specflow via Nuget Package Manager in VS2017 however in visual studio Specflow items nothing was showing. Uninstalled Visual Studio and Reinstalled VS 2017 Enterprise edition. Please help ...
venkat's user avatar
  • 5,738
0 votes
2 answers
49 views

Unable to inspect an element with compound class error [duplicate]

<input type="button" class="action button" style="margin-left: 0px;" value="Tracking Code" onclick="SetTrackingCodeModal(JSON.parse(jQuery(this).closest('tr').attr('data-row')))"> When trying to ...
Analyst's user avatar
  • 117
0 votes
2 answers
479 views

Unable to Run [Test]'s together when using [setup] and [teardown] attributes of Nunit with Selenium

Below is the Test class code: [TestFixture] public class Playground { public static IWebDriver d { set; get; } [SetUp] public void Initialize_Browser() { d = new ChromeDriver(); ...
Abhi3106's user avatar
  • 139
1 vote
0 answers
63 views

I am facing "TypeInitializationException" while executing selenium(C#) Script

I am new to Selenium and am trying to understand different areas of it. I have come across a situation where I have 3 classes under namespace Automate_Dynamics365. Class POM contains all the elements ...
Abhi3106's user avatar
  • 139
0 votes
1 answer
5k views

How to run parallel test using NUnit in visual studio

I am trying to get parallel tests going with NUnit and C# in visual studio using the NUnit3Test adapter and .runsettings file. It's basically this sample from Souce Labs I am unable to get to run in ...
Oddleif's user avatar
  • 801
2 votes
1 answer
737 views

TFS2018 running NUnit / Selenium tests

I'm trying to configure TFS2018 to run my c#/selenium/specflow project for the first time. I have the job building fine, but I'm struggling with getting it to recognise my tests. Locally my tests are ...
mikey h's user avatar
  • 53
0 votes
1 answer
993 views

Shared test playlist in Visual Studio?

We have a smallish team of few Automated testers and working on BDD driven test automation using following tools - Specflow NUnit Selenium Webdriver(C#) on Visual Studio 2015 Right now we have ...
SymboCoder's user avatar
0 votes
3 answers
2k views

How to change the app.settings from Nunit console command line for tests

I have set of selenium tests developed with VS 2017,Nunit (Project type - class library using .net framework 452. In my OneTimeSetUp, I am reading app.config that define few things such web URL, ...
deb's user avatar
  • 145
1 vote
2 answers
2k views

How to prevent from Nunit closing browser after each test using Selenium WebDriver in C#

When I'm using Nunit for testing Selenium WebDriver in visual studio, after each method annotated with [Test] the browser closes. I there a way to prevent it? Meaning having a few tests that will ...
Dgot's user avatar
  • 119
1 vote
2 answers
2k views

C# NUnit Selenium - Passing Objects from SetUp to TestCase

I am not understanding how the scoping works on a test case. [TestFixture] class MockTests { [Setup] private void StartTest() { IWebDriver driver = new ChromeDriver(); ...
J-Roel's user avatar
  • 520

15 30 50 per page