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

learn more… | top users | synonyms

0
votes
2answers
32 views

How to verify if a button is not clickable in Selenium (C#)?

Can anyone suggest a good method to use when you want to check if a element is NOT clickable. In one of my scripts, I'm trying to verify that a button clickable until a certain action is taken on the ...
4
votes
2answers
37 views

“Element is not currently visible and so may not be interacted with” when locating element by CssSelector/helptext [closed]

I faced an issue with locating the element. Currently it's impossible to locate it by CssSelector/helptext, but it's located by CssSelector/Id without issues Here's the element <span ...
1
vote
2answers
46 views

Software to Build a Selenium POM

I have a basic script that parses through HTML and creates a basic POM based on Inputs, Selects etc. It does a decent job but I was curious if there is any 'professional' or popularly used pieces that ...
0
votes
1answer
40 views

Running parallel scripting in Selenium Web driver for Firefox, do I need Selenium Grid?

I have a process, using Selenium Web driver for Firefox, for automatic look up for information on one specific site. Due to the volume of the data being looked up, I will need to run parallel ...
0
votes
0answers
12 views

Sikuli and it's effectiveness with .NET

I am researching a proof of concept for the automation tool Sikuli, and I work primarily at a .NET shop. I see a lot of videos using this product with Java and Eclipse. My question is simply: Does ...
0
votes
1answer
52 views

Selenium: any more ideas what to do when everything fails but Sleep?

So... I have no idea why (well, probably Javascript) but here are the different issues with the code below. With a visibility/enabled wait, Selenium executes the Click() but it doesn't do anything ...
2
votes
2answers
72 views

How to set ComboBox value in Coded UI using Value Attribute?

In coded UI is there a way to set the value of a ComboBox using the value of Value Attribute. Consider the following Html of a ComboBox: <select name="ParametersID" tabindex="-1" title="ABC" ...
2
votes
1answer
28 views

Coded UI Test Explorer execution order?

What is the order of test cases execution in Coded UI? I have my test cases created in Coded UI and they all follow a naming convention e.g. _, so my test cases name looks like: ...
1
vote
1answer
29 views

Selenium: source code for the different locator types?

So, I've been wanting to take a look at the dotNet code for the different locator strategies (Id, ClassName, XPath, TagName, ...). In the By class, I've found this for Id: by.findElementMethod = ...
2
votes
2answers
32 views

How to capture image from webcam in selenum webdriver c#

I have to capture image using webcam and save as profile image. Below is the screenshot of my flash application . Below are the steps I have to perform: Click on allow click on capture click on ...
0
votes
0answers
17 views

Implications of UI testing in Linux instead of Windows

I'm currently working on parallelizing my Selenium tests using Selenium Grid and Docker. Right now my test suite is running on Chrome in Windows - the issue is that Docker can only create Linux ...
0
votes
1answer
29 views

Not able to click Left Navigation icon using Coded UI

I am using Coded UI for creating Automated test cases and have encountered an issue. There is a menu icon inside on the Homepage and clicking on this icon will expand the Left Navigation, so that user ...
0
votes
0answers
19 views

Not able to locate chrome browser using Coded UI - C#

When I wrote the code for IE, it works: BrowserWindow browserWindow = new BrowserWindow(); BrowserWindow.CurrentBrowser = "ie"; browserWindow = BrowserWindow.Locate("Google"); ...
2
votes
1answer
20 views

Is it possible to Serialize a UITestControl (when using Coded UI)?

Let me start by saying that currently I am not using the record and playback features of Coded UI, nor am I using the UIMap features. I am trying to speed up the performance of my Coded UI tests ...
1
vote
2answers
80 views

How to set up selenium tests so that if one fails, the others still run?

To give some context I am building a testing system with Selenium, nUnit and Visual Studio in c# that will allow me to test a number of websites one after another. The issue I have is that all of the ...
1
vote
1answer
30 views

Coded UI slows down in executing JS enabled fields

Coded UI test cases doesn't respond well on time if they encounter any field having JavaScript validation. Issue: Currently I am facing some issues with the time taken by Coded UI in execution of ...
0
votes
2answers
45 views

Test that deals with time, selecting a time 1 hour ahead of test run

In a test I have to automate, I have to fill out a time drop down selection. The catch is that I have to select a time that is 1 hour after the test has created the event. My question is simply: ...
1
vote
3answers
52 views

Personal framework project website [duplicate]

I am a selenium C# developer, and have just recently conducted an interview with a company. During this process I was asked a lot of questions about "hypothetical" framework questions, and how I would ...
0
votes
2answers
74 views

Inconsistent behaviour of Click() in Selenium

I'm working on a Product automation(Web CMS), where element.Click() shows the inconsistent behaviour. Basically we are using, Selenium + Nunit GUI(unit testing framework) - To run the test cases from ...
0
votes
3answers
59 views

Handling A Popup

So I have to upload a document, and the popup for file explorer loads and my code can find the document I need, but how do I then switch back to my original browser? Here is the code: ...
0
votes
1answer
92 views

How to swipe specific element using appium?

I have list of elements of specific type, I want to swipe one of this element right or left, How i can do this using appium ? I know i can use driver.Swipe(); to swipe in appium but how to use to ...
1
vote
2answers
59 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
2answers
108 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
117 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 ...
2
votes
1answer
76 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
245 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
495 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
80 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
53 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
119 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
3k 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 ...
0
votes
1answer
624 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
421 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
81 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
341 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
196 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
868 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
225 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 ...
3
votes
1answer
191 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
292 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
360 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
396 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
518 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
525 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
74 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
236 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
347 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
77 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
987 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 ...