Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [c#]

Use for questions about testing using C#. This can include unit tests, integration tests, UI tests. If a programmed test uses C#, and the question relates to testing rather than to code, the C# tag should be used.

Filter by
Sorted by
Tagged with
18
votes
5answers
9k views

How does one get started with web test automation using Selenium?

So I've been testing web based analytical software now for the past 4 years or so with mostly manual techniques. But for 2015, I've set myself the goal of getting setup and start writing automated ...
5
votes
5answers
35k views

How to wait for element to be clickable in WebDriver with C#

How can I wait for element to be clickable in Selenium WebDriver? When I execute my tests in Firefox or Internet Explorer I have no problems, but when I try to run it on Chrome, I get an element is ...
2
votes
3answers
688 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 ...
2
votes
1answer
11k views

How to find dynamically created elements in drop-down list based on input entered using Webdriver and c#?

I'm trying to test a page that has an input but really its a drop down list. The user enters text and then a dropdown appears based on what the user inputted. They are groups that are in the database. ...
6
votes
1answer
2k views

Inconsistent results when capturing javascript errors with WebDriver

I'm using a technique I found here, to capture javascript errors for testing purposes. It's a technique that is frequently recommended on Stack Overflow for those who need to catch JavaScript errors ...
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 ...
0
votes
2answers
102 views

Setting up an API Test Framework

I'm testing an API and I'm looking to define my payload using classes so that my program can then deserialize/serialize into any format(namely XML in my case). Below is an example of the payload <...
9
votes
3answers
758 views

Where tools for automated UI test like selenium or Coded UI fits in Dev Ops cycle

My manager asked me to look into how we can utilize automated UI testing to gain productivity and help testers automate basic functionality of the system. I developed few test suites and cases using ...
5
votes
2answers
16k views

Problem catching Selenium Webdriver NoSuchElementException

I have many test cases written in C# using Selenium2 Webdriver with NUnit. I have a problem that when a NoSuchElementException is thrown, it is treated as an unhandled exception despite me using a ...
2
votes
1answer
8k views

How to get a grid row count with Selenium in C#?

Hello I am currently trying to figure out how to get the count of how many rows are displaying in an HTML Grid on a page. From researching several stack exchanges some people reference GetXPathCount ...
2
votes
2answers
805 views

Explicit wait with more methods to same element

I have a few questions related to explicit waits: Is it possible to use more methods to same element? What combination of them I can use ? Why I still have exceptions with stale element and similar ...
2
votes
0answers
300 views

How can I automate testing of HTTP requests? [duplicate]

Possible Duplicate: Is there a captureNetworkTraffic implementation in Selenium 2 via webdriver? I'm using Selenium2/C# to run automated tests of a web app. I need to test the HTTP requests sent ...
2
votes
3answers
11k views

Efficient way of reading data from Excel in Selenium C#

I am creating some test cases in Selenium WebDriver using C# (I can't use Java as client has said so). These are sample test cases which will be used for presenting a demo to client and senior ...
2
votes
7answers
8k views

Selenium: how to wait for javascript fadeout (visibility and clickable don't work)

So, in the AUT there's a <div> loading screen covering the entire page, which then fades out and gets replaced in the DOM by the <body>. I'm using ExpectedConditions for visibility and ...
1
vote
2answers
4k views

Selenium element not selectable for a kendo ui element

I am having an issue with an element which works with a mouse click and there are some items from which one has to be selected but its unselectable is set to on. Whenever I try to select the elements ...
1
vote
2answers
9k views

Selenium Driver Service Not Found Exception

Good Afternoon All, I am creating a testing framework for a web app utilizing Selenium Web Driver and Visual Studio by way of C#. I have created a solution that includes two projects. The first ...
1
vote
2answers
3k views

how to find int value within span class Selenium C#

The int value inside the bold span class is a count of results, which will vary. I want to find it so I can validate it against a database get. <span class="baseline float-left blocking-rule-...
0
votes
1answer
3k views

How to test Image carousel

I would like to test an Image carousel using Selenium C# An example of the type of the type of carousel can be found here: http://bxslider.com/ Maybe the test could click on the next image, assert ...
0
votes
3answers
736 views

How to automate functionality of this complex web application?

I am tasked with creating regression suite from scratch for this huge, confusing mess of a software. General idea is like this: User presses "Create this thing", first step of thing creation is ...
0
votes
2answers
2k views

Searching dropdown contents for string

I have a simple solution to search for a string within a dropdown menu, but I would like to improve the code so it allows more options, preferable storing each option as a separate entry in a list or ...
0
votes
5answers
5k views

Selenium - advantages and disadvantages of using Python vs C#

We currently have two teams. An automation team and also a web testing team. The automation team currently use Selenium and C# to automate tests on our web applications and legacy systems. As a ...