Questions tagged [selenium-webdriver-c#]

C# Flavor of the Selenium Webdriver Library

Filter by
Sorted by
Tagged with
-1 votes
1 answer
50 views

I am learning Page Model Object, i was trying to make this program work but i am getting the "NullPointerException" error everytime. can someone help

FrameWork code: package FrameWorks; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support....
Amit Dwivedi's user avatar
0 votes
0 answers
18 views

Web scrape - Not get any children elements

I have trouble in web scrape, come with short VBA for help on MSXML2.XMLHTTP60. VBA Code's Goal: get 5 class names(num,stock-ad,data,pan-cont-chart toggle_area) from parent element(pan-cont) URL: http:...
rose1205's user avatar
0 votes
1 answer
126 views

Trying to select element from dropdown

After dropdown is expended how can I select an option from the dropdown which is in span image of the expanded dropdown https://prnt.sc/k-rFIUa6Ixeo HTML: <span class="ant-select-selection-...
Amel Krupalija's user avatar
0 votes
0 answers
30 views

parallel testing on scenario lever using c# selenium specflow

I have looked over the internet and everywhere I find examples of parallel testing at the feature level. Can someone tell me how to execute parallel testing at the scenario level? Or running scenarios ...
user20889773's user avatar
0 votes
2 answers
295 views

How can we execute selenium automation script, without Visual Studio?

I am automating a web application using Selenium WebDriver in C# using Microsoft Visual Studio Professional 2019. Here is my question: how can we execute our automation script without Visual Studio? ...
Surya Rao's user avatar
-1 votes
1 answer
763 views

How to get the correct XPath for a column title using C# and selenium webdriver?

I have the following HTML <label class="ms-Label headerText-269" title="Reference Id">Reference Id</label> which I am trying to locate using XPath. I have written the ...
RShome's user avatar
  • 101
-1 votes
1 answer
194 views

cannot click on link Python Selenium

I am trying to add a confirmation link on selenium but selenium is not able to click on that link its on yopmail with name janemartin90452 It doesn't click on the confirmation link Name "Activate ...
Muazam's user avatar
  • 1
3 votes
0 answers
445 views

Server gets incredibly slow when running Selenium

I'm attempting to run Selenium (Chrome) test on 2 servers, each running Windows Server 2019 Standard (with GUI). The first server (the one with the worst specs) has the following specs: It runs ...
Hasse Andersen's user avatar
0 votes
0 answers
546 views

How to assert a line that is present on the chrome console?

Basically I am trying to automate if a player receives data from OBS. Besides manual, the best way I can think of how to automate would be to read and confirm that the player is receiving data from ...
DjNewma's user avatar
  • 43
1 vote
1 answer
391 views

How can i call classes under other different class?

This might be a very strange question, but I am not even sure how to title this question. I am quite new to C# and Selenium. I have done some coding on it and I'm quite comfortable creating a (very ...
DjNewma's user avatar
  • 43
0 votes
1 answer
2k views

C# + chrome-driver : How to fix - cannot find Chrome binary/Chrome failed to start: crashed/Failed to create a Chrome process?

I am trying to run selenium using chrome-driver in my project. While creating object of chrome-driver facing errors : Message "unknown error: cannot find Chrome binary\n (Driver info: ...
Narendra Chandratre's user avatar
3 votes
4 answers
229 views

How many tests to include when using Page object model

I've created a basic test for checking if some article is displayed and I have a question regarding Page object model. In my solution, I've testing page, base page, map page with element id's, and ...
locke's user avatar
  • 65
1 vote
2 answers
343 views

How to select value from this dropdown list in Selenium using C# e.g. Main Feature as shown in the attached picture

Website if you want to try by your self: https://phptravels.com/ to run the script <div class="lvl-0 dropdown"> <span>Features</span> <div class="dropdown-...
Khan's user avatar
  • 11
1 vote
2 answers
1k views

Specflow Cucumber BDD - Only log in once on test run not on every scenario

We have a Cucumber BDD test project using C# Specflow. The application is browser based tested using Selenium WebDriver automation framework. There are a number of feature files with scenarios: ...
m_finn's user avatar
  • 57
0 votes
2 answers
2k views

Cant close the selenium web driver when its on a exception C#

As on my code I'm trying to find an element and click on it. If the element is not available then there will be an exception. So inside the exception I'm trying to close the web driver. But as on the ...
ChathuD's user avatar
  • 2,141
0 votes
1 answer
430 views

Not able to select option from div type listbox in selenium C#

Here the id=popupY8cuUiMiDU is dynamic.I need to get the Y value from span but there are multiple listbox with the same span attribute taking Y option. How can I select from listbox as there is no ...
N_QA's user avatar
  • 1
3 votes
1 answer
1k views

How to log *everything* in Selenium/WebDriver/ChromeDriver

I am struggling with this stale-element-exception. Now I had the idea that I could perhaps maximize the logging in order to get a closer look on what's actually happening. I am instantiating the ...
MBaas's user avatar
  • 197
1 vote
1 answer
163 views

How to get Visual Studio to break on Selenium Exceptions?

Below are the categories of exceptions that I can choose to break on in Visual Studio (2019). Where should I go to find the Selenium/WebDriver Exceptions? I want to tell VS to break on all OpenQA....
Ken's user avatar
  • 13
2 votes
4 answers
7k views

Encountered Error Could not load type 'OpenQA.Selenium.Internal.IWrapsElement' from assembly 'WebDriver

I'm working in multiple browser testing. It was working code with chrome browser. Recently I have installed "Install-Package Selenium.WebDriver -Version 4.0.0-alpha04". MSedge Chromium and ...
Thiyagarajan's user avatar
1 vote
1 answer
2k views

Unable to load MS edge chromium with Selenium

I'm trying to load the msedge chromium. encountering error. Steps to recreate: Installed mschromium Beta and Dev versions. Installed the Nuget package "Install-Package Selenium.WebDriver -Version 4....
Thiyagarajan's user avatar
3 votes
1 answer
489 views

Running Selenium not under a Testing Framework

I've been using Selenium for a while but with a slightly different scope (actually constraints). Instead of running a test for a particular site, I'm interested for instance in filling in a web form ...
Sebastian Inones's user avatar
1 vote
1 answer
925 views

Keyboard ArrowDown in listbox using Selenium with C#

I'm working in selenium c# automation, I'm trying to traverse down in list box values. <ul> and <li>. I have tried many options in trial and error. The kind of code I'm trying to use is ...
Thiyagarajan's user avatar
1 vote
3 answers
12k views

Access is Denied Issue thrown at ChromeDriver Initiation step

Azure DevOps is triggering and running tests on a VM. All my tests are working fine on local machine. On VM, While trying to launch Chrome browser using ChromeDriver and WebDriverManager, tests are ...
JAbdul's user avatar
  • 11
1 vote
1 answer
2k views

Not able to verify the downloaded file with Chrome WebDriver running headless

We are trying to verify the downloaded file in headless mode with C#, the file is downloading but not saving in the download path, so my test script is failing. Any idea for this? The code is below ...
Bendi Vasundhara's user avatar
0 votes
2 answers
4k views

Unable to connect to Remote Server using Selenium Chrome RemoteWebDriver

public static IWebDriver UserMultiUserSignIn (IWebDriver driver, string port, string hostName, string password, string Username) { string name = Dns.GetHostName(); ChromeOptions Options = new ...
JAbdul's user avatar
  • 11
1 vote
1 answer
7k views

Invalid Session id (Connect Failure) randomly when running automated tests

I've been new to automated test creation and have been dipping my hands on it recently. Every test seems to be running successfully individually except whenever I run them all together sequentially, ...
E.T.'s user avatar
  • 13
0 votes
2 answers
87 views

How can I verify that saved data is displayed corrrectly using Selenium + C#?

<p class="details-info-block__text"><span class="details-info-block__label">Business Address 1:</span> 1010 Priority Way West Dr</p> I want to verify the address value (e.g. "...
Uliana's user avatar
  • 1
0 votes
1 answer
729 views

Selenium chaining IWebElement actions in C# [duplicate]

[FindsBy(How = How.XPath, Using = "//input[@id='Username']")] private IWebElement txtUsername; public void EditTxtUsername(string text) { txtUsername.Clear(); txtUsername.SendKeys(text); } ...
O S's user avatar
  • 103
0 votes
1 answer
476 views

How to run automated selenium test scripts using C# in AWS Lambda and integrate them Amazon CI/CD pipeline

I have been give an task by a faculty member in which I have to run my selenium automation scripts written in C# using Visual Studio under the .Net Core on AWS Lambda and also I have been told to ...
mwaleedkhan's user avatar
7 votes
2 answers
34k views

Using Python Selenium Not able to perform click operation

I am automating for the following page on CHROME Browser https://study.yupl.us/studies/5d5a64aa8b5bb92fb776753b?auth=false Here I'm able to identify the unique element from the console for the XPATH ...
srini_sharma's user avatar
1 vote
1 answer
1k views

Teardown of Multiple Threaded Tests with Selenium

I'm trying to run multiple test cases with Nunit in C# in which every test needs its own Selenium Chrome Driver. Before it was threaded, I handled the chrome driver with [Setup] and [Teardown] like ...
Erin B's user avatar
  • 113
1 vote
1 answer
66 views

Selenium to test Dygraphs

Is it possible to use selenium(C# bindings) to write automated tests for testing Dygraph charts? If selenium does not support this? Are there any other tools which can be used? http://dygraphs.com/ ...
VSD's user avatar
  • 97
0 votes
2 answers
968 views

Unable to select <li> element from a <ul> list

How do I select a "li" element from a "ul" tag list? This is my current code vtenants.VT_USDelselectfld.Click(); //Clicks field to display the dropdown Thread.Sleep(500); IList<IWebElement> ...
user40734's user avatar
-1 votes
2 answers
65 views

Selenium with C#

I am new to C# with selenium and visual studio,I have some experience only in Selenium with java in eclipse. Here my doubt is that in eclipse we used to configure the packages for every new projects ...
swamynathan's user avatar
1 vote
0 answers
487 views

How can i use an existing existing chrome browser instance in selenium C#

How do I use an existing chrome browser in selenium C# ? Currently I have the following but it always creates a new window SessionId sessionId = new SessionId(""); var driver = new phantomJSDriver();...
Pankaj's user avatar
  • 29
1 vote
1 answer
864 views

Selenium C# Using relative XPath inside the wait.Until()

How do you use a relative xpath inside of a wait.until? For example, the below will work: elementA.FindElement(By.Xpath(.//div)); However, putting a 'FindElement' inside of the wait.Until() ...
Fractal's user avatar
  • 149
1 vote
0 answers
5k views

How to configure proxy settings for chrome in selenium c#

I want to configure the proxy settings for chrome web driver by using selenium 3.141.0 version in c#. var co = new ChromeOptions(); Proxy proxy = new Proxy(); ProxyIPAddress proxyIP = JsonConvert....
Shiza's user avatar
  • 11
1 vote
1 answer
385 views

How can I keep this framework scalable?

I am developing an automated test suite for regression testing using Extent Reports, Selenium WebDriver and C#. The tests are confined to a single Visual Studio console app. What I have right now ...
Raoul Duke's user avatar
0 votes
3 answers
377 views

Trouble deleting NaN in input field

I'm using Selenium to fill in a web form. The fields there have their default values, usually it's 0. If I issue the command Driver.chrome.FindElement(By.Id("ID_of_my_element")).Clear(); the value ...
Nikola Pepic's user avatar
2 votes
1 answer
60 views

Strange exception when executing tests

I write test automation using Selenium and C#. I use the Page Object Model consistently. And have had a random bug crop up in my code: Type of member 'IWebDriver' is not IWebElement or IList
Brian's user avatar
  • 584
0 votes
3 answers
80 views

should tests be run on the same machine/server the website being tested is located on? Selenium testing

Are there any rules or articles which discuss where tests should ideally be run? Specifically smoke tests. Smoke tests should run quickly after someone checks in new code. If you are looking for fast ...
Fractal's user avatar
  • 149
0 votes
0 answers
1k views

Handle windows authentication pop up on Chrome using AutoIT

I am trying to handle the basic authentication pop up for my Selenium webdriver scripts using AutoIt in Chrome. I am using following AutoIt script: If WinExists("","Chrome Legacy Window&...
user avatar
-1 votes
1 answer
21k views

C# - Element Not Interactable error [closed]

I am unable to select a value from dropdown for span type I've got the error Element Not Interactable Exception in Selenium . I am running Selenium in C#.
Gokul Kumar's user avatar
0 votes
2 answers
269 views

mstest using testsettings file on bamboo?

I am using bamboo to run an mstest task. The mstest task runs selenium code and generates an extent report. I am wanting to pull the results from that report as an artifact in Bamboo. I accidentally ...
Greg P's user avatar
  • 209
0 votes
0 answers
338 views

Selenium C# Tests on Various Browsers

I would like to run my tests on multiple browsers but NOT in parallel. I want to provide a pop up to the user to choose which browser (IE, Chrome, Firefox) to execute all tests on when first started. ...
Daisy's user avatar
  • 1
1 vote
0 answers
70 views

Changed Selenium Framework

I am using this Selenium Set-Up in an older Project. (later called "Old-Project") Now I want to migrate this test to a Project with this Set-Up: (later called "New-Project) I am using a code sample ...
BlindRob's user avatar
1 vote
7 answers
13k views

Get Driver Version using Selenium with C#

I am testing with C# & Selenium & Selenium.Chrome.WebDriver (Nu-GET Package, Version 2.44.0). Now I am searching for a Method which gives me the actual Version of the current runnig driver. ...
BlindRob's user avatar
1 vote
2 answers
838 views

Can not find getPageSource method in visual studio 2017

I am using Visual Studio 2017 and found that class ChromeDriver does not contains method getPageSource(). Does anybody knows why? using System; using System.IO; using OpenQA.Selenium.Chrome; ...
Marcos Guerrero Wilson's user avatar
0 votes
2 answers
995 views

Unable to find Dynamic Xpath

I am unable to find dynamic xpath for below code <input class="login_button" type="submit" tabindex="3" id="@COMMAND_EVENT@" name="@COMMAND_EVENT@" value="Submit" style="top: 20px; left: 360px; ...
Rahul's user avatar
  • 1
2 votes
2 answers
4k views

Selenium c# how to handle multiple "Save As" dialog?

I am testing opening multiples "Save as" dialog browser windows to make sure each dialog will download the correct file. As a workaround I am sending user's keyboard keys to control a dialog. But it ...
Lolpez's user avatar
  • 141