Questions tagged [selenium-webdriver-c#]

C# Flavor of the Selenium Webdriver Library

16 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
0 answers
182 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 ...
3 votes
1 answer
393 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 ...
2 votes
4 answers
6k 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 ...
2 votes
0 answers
2k views

Selenium c# how to get a window title by searching by its Handle Id?

In order to get a browser window title, the web driver must switch to the window by its Handle id: string title = driver.SwitchTo().Window("Handle ID").Title; I am testing opening multiples windows ...
  • 141
2 votes
0 answers
1k views

Selenium Chrome Driver: How to Load all the Frames and get the Complete Page Source?

I'm developing an web application that monitor changes in other websites. I came across some of the websites and that contain load of Frame set and Frames. I'm using the below code: var ...
1 vote
3 answers
7k 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 ...
  • 11
1 vote
0 answers
370 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();...
  • 29
1 vote
0 answers
4k 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....
  • 11
1 vote
0 answers
69 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 ...
0 votes
0 answers
7 views

How to access Iwebelemt in the function of other class using getter and setter in c#

class UtilityClass { public IWebDriver driver=null; //public String baseURL = "https://accounts.google.com/"; public void OpenURL() { ...
0 votes
0 answers
309 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 ...
  • 23
0 votes
1 answer
3k 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 ...
  • 11
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
0 votes
2 answers
224 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 ...
  • 209
0 votes
0 answers
315 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. ...
  • 1
-1 votes
1 answer
103 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 ...
  • 1