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

learn more… | top users | synonyms

2
votes
3answers
135 views

Testing using Selenium

I am a software architect we use selenium tests with nunit and c# i am trying to run jmeter load testing using firefox jmeter recorder (for blazemeter) i was sure selenium has its own cross ...
1
vote
2answers
5k views

Trying to find span element by class and text with selenium c#

I want to click on Administration panel. The <span> contains a class attribute and inner text. I get an error saying "unable to locate element". What am I doing wrong? HTML: <div class="...
0
votes
1answer
854 views

Logging in Selenium Webdriver using Log4net [duplicate]

I am using log4net for creating execution logs of test cases which are created and being executed using Selenium Webdriver in C#. I was able to implement the logging functionality but I am facing an ...
1
vote
2answers
734 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 factors/...
1
vote
0answers
92 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 pdf");....
4
votes
3answers
447 views

Can NUnit be used for Functional and Regression testing?

Now, here the confusion starts. I was creating some test cases using Selenium WebDriver with C# and thought of using a testing framework. My task is to create functional test cases which can later be ...
2
votes
2answers
239 views

Looking for a HEADLESS C# Selenium automatic nightly regression test solution

The WHY: I am looking for options and possible full solutions if someone has already done something similar. I am testing web-based applications using C# Selenium with VS2015 by writing tests that ...
2
votes
3answers
1k 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
1answer
292 views

Problem with selecting an Element from a div using nested FindElement option

I am creating a test for presenting a demo to my management and client using Selenium WebDriver in C#. In this test I need to find an element (a radio button), but for that I want to use the nested ...
4
votes
2answers
285 views

Explicit wait is not reliable with Selenium C#

While creating test scripts in Selenium WebDriver using C#, I have used Explicit wait (after going through this link) and have also gone through SO and SQA links for the same. So, I implemented it ...
1
vote
1answer
463 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 ...
2
votes
2answers
548 views

Downloading a file using Selenium Webdriver C# not working

I am using Selenium Webdriver with C# for creating Automation test cases and have encountered an issue i.e. not able to automate the file download windows pop-up. On doing search over web, I found ...
1
vote
1answer
493 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 ...
0
votes
2answers
781 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 ...
1
vote
1answer
620 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
80 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 correct....
1
vote
1answer
283 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 ...
0
votes
2answers
1k 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 ...
2
votes
2answers
510 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
0answers
82 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 Microsoft....
0
votes
2answers
1k 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
0answers
150 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 ...
2
votes
5answers
3k 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 ...
1
vote
2answers
1k 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
2answers
3k 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 ...
1
vote
1answer
810 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. ...
2
votes
2answers
311 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 ...
0
votes
1answer
3k 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 ...
2
votes
1answer
71 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 ...
2
votes
3answers
883 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
2answers
565 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, ...
3
votes
1answer
1k 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 ...
0
votes
1answer
203 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. ...
1
vote
1answer
657 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
686 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 ...
1
vote
1answer
3k 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
506 views

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

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 FirefoxBinary(@"C:\FirefoxPortable\...
2
votes
1answer
47 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
2k 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. ...
2
votes
4answers
265 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 ...
2
votes
1answer
73 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
338 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
352 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
547 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 ...
1
vote
3answers
4k 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 ...
2
votes
0answers
2k 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 ...
4
votes
1answer
2k 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 ...
2
votes
2answers
976 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 ...
2
votes
1answer
269 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
2answers
242 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 ...