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

learn more… | top users | synonyms

0
votes
2answers
28 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 ...
1
vote
6answers
9k 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 ...
0
votes
2answers
33 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 ...
1
vote
1answer
26 views

How to find frames without Name and ID using Selenium?

I'm creating some test cases using Selenium WebDriver in C# for a web application. That web application uses different frames for different elements and those frames are not having any Name and ID. ...
0
votes
2answers
100 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 ...
6
votes
2answers
4k views

How can I send the action “Ctrl” + “Alt” + “Double Click” to the browser

I am writing automated tests for a site at work and we have certain screens that when we send a specific set of keystrokes, a section of the page will become visible and allows us to see information ...
1
vote
1answer
69 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
3answers
70 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 ...
0
votes
0answers
10 views

How to organize tests and PageObject classes with FluentAutomation and MSTest (Cannot resolve symbol “I” error)

I am trying to run the example in the documentation here. I am using Visual Studio with MSTest, so I modified the code a little bit and it looks like this now: using System; using ...
0
votes
1answer
71 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
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 ...
0
votes
0answers
23 views

CodedUI [CUIT] doesn't work with Bootstrap Date Picker

I have been working with CodedUI in a bootstrap UI, which my currently working solution is built on. I recently noticed when automating the functionalities for a Smoke test, the recorded steps (CUI ...
0
votes
1answer
67 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 ...
0
votes
1answer
303 views

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

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
76 views

Can I use Eclipse for .Net application with Selenium jars?

My application is developed using .Net and now I need to automate this application using Selenium. So, please guide me which Selenium jar and IDE I have to use to do automation. I know, for Java ...
1
vote
1answer
243 views

Set date in datepicker using Selenium WebDriver and C#

I am using Selenium WebDriver. I have datepicker on a web page, and I want to set a date into that control. I am using .SendKeys("12/31/2015"), but it does not select that date on the screen. It ...
2
votes
4answers
109 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 ...
0
votes
1answer
142 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 ...
30
votes
4answers
4k views

Are Selenium functional tests reliable enough to be worthwhile?

I'm finding that regardless of how solid my tests scripts are, I still have tests that fail (falsely), even though they worked just fine before. I'm not talking about if markup changes (although that ...
0
votes
0answers
34 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 ...
3
votes
1answer
167 views

The HTTP request to the remote WebDriver server timed out after 60 seconds

I am running selenium tests in C# and every now and then I get this error while initiating or running my tests: The HTTP request to the remote WebDriver server for http://localhost:7055/xxxxx timed ...
3
votes
1answer
247 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
47 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
0answers
74 views

Selenium C# Why does Telerik Rad date picker clear its date text in the date picker text box when running tests?

using System; using System.Text; using System.Text.RegularExpressions; using System.Threading; using NUnit.Framework; using OpenQA.Selenium; using OpenQA.Selenium.Firefox; using ...
1
vote
1answer
105 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 ...
6
votes
2answers
291 views

Why does selenium fail every so often when running more complex tests because it can't find an element on the page?

private IWebDriver driver; private ChildSearchPage currentChild; private IWebElement divMeetingsTab { get { return driver.FindElement(By.Id("Content_InfantTab1_divMeetings")); } } private IWebElement ...
0
votes
1answer
32 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
2answers
925 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.
1
vote
3answers
856 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
3answers
425 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 ...
1
vote
1answer
25 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
281 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. ...
0
votes
2answers
104 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 ...
1
vote
1answer
60 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?
2
votes
2answers
149 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
99 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
0answers
36 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 ...
1
vote
2answers
6k 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
383 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 ...
0
votes
1answer
142 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
1answer
695 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
3answers
902 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
687 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 ...
0
votes
1answer
437 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 ...
4
votes
4answers
921 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 ...
1
vote
2answers
314 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
90 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
108 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
0answers
382 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 ...
0
votes
1answer
617 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 ...