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

learn more… | top users | synonyms

1
vote
1answer
297 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 ...
1
vote
3answers
2k 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
3answers
1k 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 ...
1
vote
1answer
415 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
984 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 ...
1
vote
2answers
3k 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 ...
1
vote
2answers
7k views

Question: C# Selenium: Read rows from html table until the last row is found, and Store in array

The following snapshot is what I see when I do a view of class and Ids in using IE Developer tool. It consists of a table and inside the table there are links. I need to read all the link names, and ...
1
vote
2answers
51 views

Quickest way to get ID and Name of all fields in single go

Currently, I am using the traditional way i.e. 'Inspect Element' (or Firebug or IE Developer) for getting value of ID and Name attributes of any field present over page for which I am creating test ...
1
vote
1answer
284 views

Testing the Downloading/Uploading of files with Selenium IDE/WebDriver/Other?

In a series of applications my team is building we would like to test our import and export functionality which requires the respective upload and download to be automated. The functionality is ...
1
vote
1answer
60 views

C# Web Driver Page Object Framework: Retrieve Dollar Values from a <td> using class identifier

I am creating an C# / Web Driver automation script that uses a Page Object Framework. I would like to check certain dollar amounts on a page (premium and tax amounts) and verify that they are ...
1
vote
1answer
127 views

Handling multiple Iframes with same name

I am trying to navigate on a web browser that has multiple iframes that are all tagged with the id of "InlineDialog_Iframe". When I try to switch to the window I get a stale reference exception, which ...
1
vote
3answers
302 views

Options for headless browsers for .net?

I am looking at speeding up my automation using a headless browser. I tried converting my tests to use PhantomJS but test stability took a big hit. Some pop ups don't seem to render correctly, tests ...
1
vote
1answer
208 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. ...
1
vote
1answer
425 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 ...
1
vote
2answers
2k 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 ...
1
vote
2answers
479 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 ...
1
vote
1answer
1k 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
3k 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. ...
1
vote
1answer
413 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, ...
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 ...
1
vote
1answer
778 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
138 views

Selenium: Select 2nd item by both class and with certain text?

I am creating some test scripts using Selenium WebDriver in C#. The AUT contains a left menu in which the position/ordering of the links depend upon the 'User Preferences' and a lot of ...
1
vote
0answers
56 views

PDF Automation using URL opened in Selenium, not a new URL

Currently im using Selenium Webdriver for c# and PDFBox to automate the PDF text of a report. Now, using PDFBox, we have the ability to parse a pdf given a URL link, with URL = new URL("link of ...
1
vote
1answer
98 views

Adding user-data-dir option to ChromeDriver makes it do not work and timeout only

Using .NET's C#: I was thrilled to learn how to start a web driver session with your local cookie data here. The browser now starts with my bookmarks and cookies loaded (I tested accessing sites ...
1
vote
1answer
220 views

How to select from drop-down list in selenium c# by specific attribute value?

<ul class="options"> <li data-raw-value="smt-b1bbdd96-f135-48ae-8744-e920942dd7a3" class="selected" data-sys-status="running">3. LIELA LEGAL SISTĒMA ( EN - LV )</li> I want to ...
1
vote
1answer
428 views

Verify grid data in selenium webdriver using c#

I am new to selenium. I want to verify data shown in grid on my web application page with database value. I have gone through blogs, and what I have found is: Using Selenium Webdriver in C#: i. ...
1
vote
2answers
200 views

Handle drop down on web page dialog selenium C#

I am working on automation of a website using Selenium and C#, but I am stuck in a situation where on a button click a new webpage dialog opens and on that web page dialog we have to select some value ...
1
vote
0answers
46 views

Skipping iteration for test cases

This is a simulation of the test suite I want to run with selenium webdriver. Running through everything will generate 128 test-cases which are too ambiguous. I plan to reduce it to 32 by only ...
1
vote
1answer
2k views

Handling PopUp windows in selenium webdriver by using c#.net [closed]

Example of Handling PopUp in selenium webdriver using C#.Net [TextFixture] public class PopUp { IWebDriver driver = null; IWebElement element = null; [SetUp] public void setUP() ...
1
vote
2answers
265 views

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

Running firefox portable (which 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
0answers
1k 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
264 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 ...
0
votes
4answers
2k 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
2answers
238 views

Verifying URL while ignoring part of its string

I have a URL I am attempting to verify through my test, basically I click on the image of a product and it takes me to the item description page. At the end URL string for this items description page, ...
0
votes
1answer
339 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
3k 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 ...
0
votes
2answers
45 views

How to verify PDFs with Selenium web driver

In our application, we upload PDF's into an interface. In this interface, the PDF is just a property of an object in a row that is displayed for the end user. The end user can see if a PDF has been ...
0
votes
1answer
1k views

Selenium framework using C# and excel

I am new to automation (Selenium ). I am working as manual tester and recently got a task related to selenium automation. I have basic knowledge of selenium and very good knowledge of C#. I can ...
0
votes
2answers
179 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
1answer
644 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
1answer
37 views

Need help with getting list of items in Page factory, c#

I am new to Page factory model - I need number of elements in list, I am trying in the following way: **[FindsBy(How = How.XPath, Using = "//*[@id='ABC']/div")] public List<IWebElement> ...
0
votes
2answers
180 views

Cannot access elements in iframe

I cannot access elements inside of an iframe, I have tried the call: IWebElement iframeSwitch = driver.FindElement(By.XPath("//iframe[contains(@id, 'contentIFrame1')and contains (@title, 'Content ...
0
votes
2answers
663 views

how to launch Chrome using remote webdriver

I have set up 2 PCs as selenium hub & node.Now, I am trying to browse a URL in that node, from a console app that runs in the hub. But there is an error when initialising the browser.Both PCs run ...
0
votes
2answers
450 views

Unhandled exception in Selenium Webdriver with C#

I have created a small test using C# in Selenium Webdriver, for this test I first used Selenium IDE and then converted that IDE code to C# code and created Project in VSTS C#. But while running the ...
0
votes
1answer
103 views

Cannot find element with <i> tag in selenium C#

I have an element onscreen that I am attempting to click, my test runner is telling me that SyntaxError: The expression is not a legal expression. I am trying to access an ' i ' tag on a button. ...
0
votes
1answer
1k 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
3answers
697 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
186 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 ...
0
votes
2answers
2k views

Counting the number of 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.
0
votes
1answer
974 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#: ...