C# is a multi-paradigm programming language developed by Microsoft.

learn more… | top users | synonyms

0
votes
1answer
26 views

C# Selenium Webdriver “The path is not of a legal form.”

Running firefox portable (witch i know used to work). Is now producing an error "The path is not of a legal form." when trying to load profile. var binary = new ...
1
vote
1answer
20 views

Clicking a Non Existent DOM item

EDIT: I used mouse events and did get a working solution that is pretty ugly :). So I may be at a point that automating this page will not be possible. I am trying to click a popup menu that appears ...
2
votes
2answers
80 views

How to stop running selenium tests AFTER webdriver.quit()?

I have made a Windows Forms app to host my GUI for running selenium tests. When the user presses the "run test" button, it launches an instance of chromedriver and runs the selected selenium test. ...
1
vote
2answers
52 views

Selenium WebDriver not properly waiting

I am trying to download a file from a website using a webdriver. But my browser is shutting down before it was able to properly export. I inserted a wait() before I call dispose() but it is not ...
1
vote
1answer
42 views

wcf client test in vs 2010 tools

wcf client test I am using wcf test client in vs 2010 tools. First when i started tool, values came with null. I want to change value's dropdownlist with my default values. How can i do it?
0
votes
0answers
19 views

Access specflow test result in C#?

I am looking to add logging to my spec flow tests. What's the best way to determine if a test passed / failed / was inconclussive? I can do it by looking at ScenarioContext.Current.TestError, which ...
2
votes
2answers
57 views

Opening Multiple windows of firefox in the same test case

My question might sound very odd to you all but just wondering if this is possible for us. Okay so I have written 10 cases for my login page in selenium using C# .net. But they take quite a lot of ...
1
vote
1answer
38 views

I'm getting the exception “Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotAvailableException” even though control is available

As the title says i'm getting this exception when running my coded U.I Test. Currently i've researched and i cant pin point on whether this is an issue with IE9 or with my program or even VS itself. ...
0
votes
1answer
56 views

How to change the Text of a IWebElement of Selenium in C#

The Title pretty much explains everything. I'm searching for a way to change let's say <h1 id="title">Title<h1> to <h1 id="title">Nothing<h1> I'm kind of desperate since ...
0
votes
3answers
122 views

Example selenium project in C#?

Does anyone know of a good place to download a selenium project that was written in C#? I've been doing automation for the past ~1.5 years and i'm interested to see what other people are doing. How ...
1
vote
0answers
205 views

Coded UI - How write code to use existing browser (if exists) otherwise launch new browser window

I am stuck badly with this piece of code. I am trying to write a code to use existing Browser if it exists otherwise launch my website in new browser window. Currently, if browser is not open with ...
1
vote
0answers
89 views

Coded UI - How to launch website in IE InPrivate Browsing mode?

I am trying to launch my website by default in IE InPrivate mode so I can get rid of tons of code to handle multiple scenarios (listed below) script may counter during execution. My goal is to run ...
0
votes
2answers
139 views

Testing pdf/excel content with C#

Our site has a good number of reports that are using SSRS,Crystal and Excel. We are using C# with Selenium WebDriver. I have been searching for the best practices and best ways and tools to test the ...
1
vote
1answer
53 views

CodedUI : The Browser gets closed as finish testing without keeping for testing further steps

I'm working on a CodedUI project to check on a Web Solution. There, when Im testing for launching the site (as in launching the web URL), I am facing an issue with closing the browser as it finish ...
0
votes
0answers
77 views

Hovering over HighCharts - C# Selenium coding

Query w.r.t the answers on this page Selenium WebDriver and Highchart testing I need to hover over highcharts & at a specific point on chart, need to validate tooltip values using C# selenium. ...
0
votes
2answers
63 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
0answers
232 views

Get Visual Studio (2013 Community) unit test execution messages

Hi, I'm trying to make "nice" test execution report and get next messages: Message StackTrace Elapsed time Test name and Test Outcome are easily taken as TestContext parameters, for output I'm ...
2
votes
4answers
326 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 ...
0
votes
1answer
335 views

Selenium : How can I scroll to an element in an iFrame

I have an element that is out of view when I am using Selenium within an iFrame. I have switched the context using Driver.SwitchTo.Frame("frame_id") and I am able to interact with elements that are ...
0
votes
1answer
298 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
0answers
25 views

Log in pop up in Firefox

I am using c# WaTin tool for automation testing. Now during one of the scenario, I get a pop up that asks for log in credentials even after I am already logged in. The pop up does not appear in ...
1
vote
1answer
194 views

Wrap specflow scenario within try-catch

I have been running into a problem with the C# selenium bindings decribed here: http://stackoverflow.com/questions/22322596/ where a timeout exception is thrown occasionally while running my selenium ...
0
votes
3answers
248 views

Loading page generates exception 'Timed out waiting for page load'

I'm navigating to a webpage using Firefox driver. The page is loaded correctly but I'm getting this exception and the test crashes Timed out waiting for page load I've tried to add some ...
0
votes
1answer
101 views

Generic Automation Framework [closed]

I have to make a generic automation framework which can work on any eCommerce website using Ranorex test automation tool. I am unable to figure out what things should be included in a generic test ...
1
vote
2answers
523 views

Disable a pop up rendered in FF and not with IE

when testing with Selenium Webdriver, I'm getting an advertising pop up window with Firefox and not with IE. Actually this pop up is preventing me from doing many other tasks. Is there a way to ...
1
vote
1answer
173 views

Programming language for testing GUI written in C#

Our GUI for our Windows application is written in C#. I want to write some automated regression tests. Which programming languages would work? Have in mind: I do not have access to source code. I ...
1
vote
2answers
997 views

How to create and write Excel .xls file using C#

I have few tests which run three times and their average is calculated through c# code. I am able to write the three test times and their averages to the xls file if I create the file beforehand in ...
0
votes
1answer
485 views

Couting browser windows opened by Selenium

Is there a way to get a list of opened browser windows using Selenium? I want to use this to count the number of open browsers within a test.
2
votes
1answer
96 views

Unit tests: avoiding overspecification

Say I have the following method that sends emails. I know I should have tests for the different status codes returned. I am also testing if the the methods CreateMail() and Send() are being called. I ...
1
vote
2answers
233 views

Sikuli wrapper for .NET..Unable to connect to the remote server

I am using a Sikuli wrapper for .NET (Sikuli4Net). Using an embedded jetty server, it exposes the core functionality of Sikuli for use within .NET projects. However, in Visual Studio, when I try to ...
0
votes
4answers
1k 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 ...
0
votes
1answer
517 views

Selenium WebDriver - How to clear RadEditor content

I am working to write some Selenium WebDriver scripts that work with Telerik RadEditor controls. I can successfully enter content into the RadEditor in the following way with C#: ...
0
votes
1answer
230 views

send multiple element to kendo multiselect from selenium

I want to sent more than one value to Kendo Multiselect element. whenever i use the Following function ((IJavaScriptExecutor)driver).ExecuteScript(String.Format("$('# ...
1
vote
4answers
676 views

Automated Test With Image Comparison

I have a WPF application and I have a custom object (the output) with images and text. I need to check if the output has a correct format. I tried with Coded UI but, because the element is a custom ...
0
votes
1answer
968 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
1answer
1k 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. ...
0
votes
1answer
202 views

How to access a dynamically created element

I am using Watin to test a website. It contains a div which is created dynamically on clicking a tablecell. How can I access the dynamically created div. The issue is the div is deleted after a short ...
2
votes
4answers
2k views

Has any faced issue when automating auto suggest text box using selenium webdriver

I am automating an application which has auto suggest text box. I am facing an issue that sometimes the auto suggest values are not shown up at all. This happens 50% of the time. Worrying part is this ...
0
votes
1answer
328 views

Need to validate compiled document using C# selenium in VS 2010

I am using selenium, C# at this point I am able to compile word document and then need to save as a pdf on desktop and then validate the links in the downloaded document with original parsed document, ...
0
votes
1answer
326 views

How to save compiled document on Desktop using C# Selenium

Using Selenium WebDriver with C# in VS 2010, I compiled a document using automation and then I want to save the file on my desktop. During automation a new window is popping up to "save or open file". ...
1
vote
2answers
1k views

QC: How to get the Requirements Folder structure using OTA?

I'm trying to pull the Requirements folder structure from QC using C#. The OTA has a built in treeview for testplans but not for requirements. So far I'm able to pull all the folder under root but all ...
4
votes
2answers
434 views

Mocking IVR system

I am new to automation testing and was looking for guidance on how I can mock or create a simulator for a IVR ( automated call system ). We have an application, which sends some user data to a third ...
1
vote
3answers
7k views

Using Selenium (C#) how do I select an item from a drop-down list

I'm using the Selenium IDE to record my initial tests and then export them to c# and then use the webdriver. Some things that I do from the IDE don't export. I am trying to select a State from a ...
1
vote
2answers
879 views

Running Web and Application Automated Tests from the same Framework

I am writing automated tests for my company, and I am doing so from the ground up. We provide both desktop and web applications to our clients. After doing a lot of research and testing, I landed on ...
3
votes
1answer
2k views

Using Selenium's PageObject pattern and an Open() method

Here is an example of some C# WebDriver code I'm using to model a registration page: public class RegistrationPage : BasePage { private IWebDriver driver; private String URL = ...
1
vote
1answer
596 views

Effective web driver management in Selenium2 + Grid2 + NUnit tests in C# for multiple browsers

I've been struggling with this for a while. We plan to move to a continuous integration server soon (probably TFS or Jenkins). I'm having a hard time figuring out how to efficiently manage the ...
1
vote
2answers
1k views

How to configure HtmlUnit Driver

I clearly missed a step trying to get HtmlUnit driver working with my app. I am getting the following exception. OpenQA.Selenium.WebDriverException was unhandled HResult=-2146233088 ...
3
votes
1answer
448 views

Testing EJB based web service - Java vs .NET vs SoapUI

I am testing a workflow application that takes the user step by step through each task. The inputs in each task are basically just barcodes or some numerical values. Fortunately, each task has an EJB ...
2
votes
1answer
2k views

Unable to launch Chrome in remote webdriver

I have tried the following three options . I am using C# DesiredCapabilities capabilities = DesiredCapabilities.Chrome(); capabilities.SetCapability("chrome.binary", ...
-1
votes
1answer
73 views

Find out if nested class is zero [closed]

I have a class "Data" and a subclass "SubData". I want to access a method in SubData. In order to do something like: value = Data.SubData.getValue(); I need to make sure that Data!=null and also ...