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

learn more… | top users | synonyms

1
vote
0answers
16 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 ...
0
votes
1answer
29 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
0answers
17 views

Issue with Radio buttons selection in Coded UI

I am using Coded UI for creating some test cases for a web application, while doing the same I have encountered an issue. I am not able to select a Radio Button using their Displayed Text, however if ...
0
votes
1answer
26 views

Accept SSL certificates in Selenium Opera C#

I am trying to launch an Opera web driver, but whenever I go to the homepage of the site under test, I get certificate errors. I have tried using the CapabilityType.AcceptSslCertificates = true: ...
0
votes
1answer
52 views

Coded UI Test cases taking too much time to execute

Update: I used some hit and trial method for this issue and found that this issue of slowness occurs only when Coded UI (or my code) encounters any Date-Type text field. If there is no Date-Field over ...
2
votes
2answers
84 views

Execute a particular test using command prompt and Selenium, NUnit, Test cases written in C#

I have written a number of test cases in C# for UI which uses Selenium Webdriver (I am new to Selenium). I would like to run a particular test case out of N number of test cases through command ...
0
votes
1answer
35 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> ...
1
vote
1answer
38 views

How to read value from XML [closed]

I know this is a common question, but I have a requirement where I need to read values from XML file. Sturcture of the XML file is <?xml version="1.0" encoding="utf-8" ?> <root> ...
2
votes
3answers
97 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
392 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 ...
1
vote
2answers
128 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
53 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 ...
4
votes
3answers
147 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
123 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
225 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
96 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 ...
2
votes
1answer
85 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
88 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
1answer
127 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
208 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
168 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
255 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
59 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
125 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
644 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
171 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
59 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
2answers
418 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
90 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
2answers
830 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
553 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
1k 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
411 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. ...
0
votes
1answer
190 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
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 ...
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
3answers
286 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
222 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
622 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
0answers
138 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 ...
0
votes
1answer
101 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
291 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
483 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
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
260 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 ...
2
votes
1answer
39 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
812 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
183 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
68 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
68 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 ...