Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [selenium-webdriver-c#]

C# Flavor of the Selenium Webdriver Library

2
votes
1answer
36 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
0
votes
3answers
34 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 ...
0
votes
0answers
139 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: WinWaitActive("","Chrome Legacy Window","120") If ...
-2
votes
1answer
146 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#.
0
votes
2answers
30 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 ...
0
votes
0answers
33 views

mstest using runsettings file on Bamboo

Is there a way to make sure mstests uses the runsettings file on our bamboo server? I just had to add it to my project to have my results in a consistent folder. This worked correctly from Visual ...
0
votes
0answers
61 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. ...
0
votes
0answers
64 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 ...
1
vote
5answers
308 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. ...
0
votes
0answers
12 views

System.ArgumentException : Cannot use How.Custom without supplying a custom finder type

I am a beginner in Selenium c#. I installed Visual Studio 2017 Community version & started created framework. So i created 2 files, 1 Page Factory(POM) file, 2 Test Case. Now if i run Test case, ...
1
vote
2answers
61 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; ...
0
votes
0answers
30 views

Regarding Driver and JavaScript executor using for scroll down - using selenium and C#

The driver and Javascript executor runs successfully but there won't be any action. When I checked the driver values, I saw errors regarding Application Cache and Network Condition. The code i am ...
0
votes
2answers
74 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; ...
2
votes
2answers
238 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 ...
1
vote
1answer
160 views

How to find IWebElement in other IWebElement with Selenium Web?

I'm trying to get some IWebElement in other specific IWebElement which I find, but it doesn't work. Here I find all of the repeated HTML blocks, it works OK: List<IWebElement> ...
1
vote
0answers
316 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 ...
4
votes
2answers
896 views

How to select the second tr of my HTML?

The code below works but it only selects the first tr: My HTML: <script>if(''!='') { document.Form2.endereco_ip.value='';}</script> <div style="font-size: 10pt; font-weight: bold">...
2
votes
2answers
491 views

Selenium Web Driver, ExpectedConditions [deprecated] alternative

The selenium web driver seems to be indicating that OpenQA.Selenium.Support.UI.ExpectedConditions method is now deprecated, I would humbly ask for some assistance in rewriting the below statement, ...
2
votes
1answer
37 views

Selenium, updating rows, refreshing, stale items

I have a table of charges, I am creating an array of elements of the rows. I go through the line items and zero them out. The issue is, each of these are handled by modal windows. It pops up, I ...
2
votes
3answers
180 views

(C#) Selenium: How to extract information from html and write to a variable

I want to know how to get the HTML tag information and write to a C# project variable. Remember that I can not change the HTML because I do not have access. In the example below, it is necessary to ...
1
vote
1answer
56 views

(C#) Selenium: How do I choose an option within a ComboBox?

How do I select the "C" option of my ComboBox "opcao_pesquisa"? <form name="Form1" method="post"> <input type="hidden" name="operacao" value="1"> <input type="hidden" name="d" ...
2
votes
2answers
56 views

Selenium: How do I use the button of my HTML in WebElement?

How do I locate my button that has the text Pesquisar > in my Selenium WebElement? My HTML: <div style="font-size: 10pt; font-weight: bold">Portais </div> <hr> <form name="...
1
vote
1answer
247 views

Unable to select element when element is in span than select Selenium c#

I am trying to select an element from dropdown with text as Ad. My page has a telerik dropdown and this is the HTML Code. I am running following code: SelectElement IDdropdown = new SelectElement(...
0
votes
2answers
332 views

Compare a screenshot with saved image on Devops build server

Background When releasing a C# MVC website through Devops release management the bundling failed. This caused the CSS file not to load on the released website, causing the UI to render incorrectly. ...
0
votes
1answer
405 views

C# Selenium - How to write a conditional statement with multiple elements/xpaths

I have a problem and having trouble to finding a solution. Problem Statement: Navigate to a webpage and check if three checkboxes are selected. If not, I'd like to select them (if only one is ...
1
vote
1answer
300 views

Selenium Webdrive object retains page source from previous page (of CRM). But page url is current

I am writing automation scripts for Dynamics 365 using Selenium Webdriver with C#. All is good till I login and visit first page (a list). Test script clicks on one item in first page and page ...
0
votes
1answer
848 views

Unable to click button with selenium webdriver using C#

I am having trouble with clicking a button within a modal using Selenium and C#. The button is for a photo upload, and for some reason the element that is select-able (tested with JS in the console) ...
1
vote
2answers
311 views

Unable to locate element (Selenium, Sharepoint2010) [closed]

I'm new in QA. I'm using VisualStudio 2017 + Selenium WebDriver. I'm Trying driver.FindElementById in Sharepoint 2010 web page. It is part of the DOM: <div id="ctl00_MSO_ContentDiv"> <a ...
0
votes
2answers
110 views

How to check a checkbox which is not visible?

I need to check a checkbox, but am not able to do that. It's giving the error: Element is not visible This is the element: <input _ngcontent-c5="" class="lb-checkbox ng-untouched ng-pristine ng-...
0
votes
2answers
95 views

How to Extend Automated Testing with C#/Selenium-Webdriver/NUnit Testing Past Chrome to Other Browsers?

I inherited a test automation suite that I have built a lot on top of, however I am unclear on how to migrate the current setup to use drivers past the chromedriver. I'd like to also use IE, FF, and ...
0
votes
3answers
593 views

C# webdriver: Issue with wait.Until(ExpectedConditions.VisibilityOfAllElementsLocatedBy(By.TagName(“tr”))); returning WebDriverTimeoutException

I am working with the following html table, <tbody role="rowgroup"> <tr data-uid="d4d2114f-2aaf-4498-977b-ae5b8c16618c" role="row" class="Standard k-state-selected" aria-selected="true"> &...
0
votes
4answers
3k views

How to Incorporate the Defunct PageFactory in Selenium with C#?

I just discovered the page object design pattern recently and really wanted to implement it into my company's UI Test Automation suite. I started to do so and immediately ran into problems which lead ...
1
vote
0answers
673 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 ...
0
votes
1answer
157 views

Is it possible to select a row of a table having role=grid using linktext?

I have a table in which the rows are shuffled every time. I want to select a particular row by its text, which I'm not able to do that. If I use xpath or cssSelector I am able to select by its ...
2
votes
3answers
271 views

Automation Testing approach for Web Based Application

I am automating a website which has multiple modules and involves users of different privileges (say Admin, User Type 1 and User Type 2). I am using Microsoft's Unit Test Tool inbuilt framework with ...
0
votes
1answer
191 views

Why is there different behavior of a Web Application with Automation and with Manual?

I am automating a website, there's web page containing few text fields, dropdowns. There is a mandatory field check for a dropdown, if I select the default option (which is 'Select') I get an error ...
0
votes
1answer
2k views

Selenium Webdirver C# Running more than one test class from the test suite

I have created a test framework in VS 2017. The framework is written in the Page Object Pattern. To avoid having one test class and n number of test methods I have decided to split all my tests into ...
1
vote
2answers
104 views

How to get the CreatePassword verification link sent to my Email address using Selenium?

I am trying to automate a scenario wherein I am Signing Up on a WebApp which will take my email address and send a Link to my Email address using which I can create my Password. I want to retrieve ...
3
votes
1answer
4k views

How to Take full document screenshot including non visible parts [duplicate]

How can I take a screenshot of the full web-page (including non-visible parts) with Selenium/WebDriver using c# and the ChromeDriver? So that is full page, including elements that are not in view, ...