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

learn more… | top users | synonyms

0
votes
1answer
17 views

I am unable to switch to popup window in c# selenium

I have to create a new record, for that a new popup window opens. so i am unable to switch to that window. I used this code to switch the popup window foreach (string handle in driver.WindowHandles) {...
2
votes
2answers
546 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
2answers
61 views

unit testing vs automation selenium resume value [on hold]

I started working in automation development with selenium and am told it is a hot field and can earn some high-end coding salaries. We recently hired a new manager who once hired immediately took us ...
0
votes
4answers
32 views

Im unable to locate the element to enter the text in the txt box in c#

i tried using xpath, Id to find elements. even though im getting the error "unable to locate the element" please can anyone help? HTML Snippet <input type="text" value="" maxlength="256" id="...
0
votes
3answers
49 views

How to automate functionality of this complex web application?

I am tasked with creating regression suite from scratch for this huge, confusing mess of a software. General idea is like this: 1) User presses "Create this thing", first step of thing creation is ...
-1
votes
0answers
20 views

How to select option after clicking settings button in selenium c#?

I am unable to select options under settings button. I clicked on settings button using findelement(by.id("O365_MainLink_Settings")).click();. This is what I did by doing inspect element. But for to ...
0
votes
1answer
26 views

I did findelement using Xpath, the next step i need to is findelement.text(); to get the text. how i can do that

This is the xpath for the text I need to find----- /html/body/div/table/tbody/tr/td[2]/table/tbody/tr[4]/td/table/tbody/tr/td[2]/table/tbody/tr[5]/td/form/table/tbody/tr[2]/td/table/tbody/tr[3]/td[3]/...
0
votes
2answers
102 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
0answers
67 views

Webdriver will not click checkbox

I am passing in the checkbox ID, grabbing the element and then if the checkbox is not checked I want to check it. It wouldn't check the box though, so I was debugging and then it worked when I added a ...
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 ...
0
votes
2answers
60 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 ...
1
vote
1answer
17 views

Testing Different User Setting's Effects On a Page

I am using Microsoft Visual Studio and Selenium to test a webpage. This particular website requires a user to login to the web page and based on some settings, some elements will be displayed and some ...
0
votes
1answer
14 views

How to handle file upload through windows form when using selenium grid?

Writing tests with c#/nunit and running tests on the same machine i could use System.Windows.Forms, or call Autoit script to handle upload window that selenium cant interact with normally. But this ...
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 ...
1
vote
2answers
732 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/...
0
votes
1answer
174 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
2answers
310 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 ...
2
votes
1answer
134 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: ...
1
vote
1answer
36 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
0answers
25 views

How to Run Selenium webdriver c# script in Grid with different browser?

How to Run Selenium webdriver c# script in Grid with different browser? If the script is built in Nunit framework.
0
votes
0answers
6 views

How to get control inside Windows 10 mobile IE edge browser coded UI?

I was working on writing coded UI test automation where I need to get controls inside the IE Edge browser on Windows 10 mobile emulator. I am using coded UI universal platform for Windows 10 Phone.
0
votes
0answers
11 views

Selenium : NUnit: C#: I want the case is re executed one more time when it is failing

My Testsuite has a number of cases but sometimes it fails due to low internet connectivity(HttpsRespose) or (element not found) , I want the case is re-executed one more time when it is failing. ...
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 ...
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 ...
0
votes
1answer
375 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
58 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 ...
1
vote
1answer
54 views

Selenium 2 Webdriver: Persistent cookie browser restart

I test a OAuth 2 Login page. It allows me to remember my login. This is done with a persistant cookie. Now I want to test if this cookie remains present after a browser restart which is its intent: .....
0
votes
0answers
13 views

Winforms+WPF Automation software tool

I work for an IT company which has two applications developed, one in Winforms and the other one in WPF (both of these apps comunicate with each other). I'm a QA Tester but I honestly don't know how ...
0
votes
1answer
34 views

How to count rows in GridView using webdriver c#, how to translate the existing protractor script to c# webdriver

I am trying to count the rows of the table and below is the HTML: I want to get the total count rows of the table, discarding table header and expanded row. I had tried the code below: var ...
0
votes
1answer
33 views

How do I extract the inner element in Selenium?

I am new to Selenium and C#, which we are using right now. I am also new to using the Page Object model, to make our codes readable. Though I am having troubles using the FindsBy, so my original code ...
1
vote
0answers
32 views

Coded UI test cases not running on 64 bit machine

I have created some test cases in Coded UI on 32-bit machine and now I have got another machine for running these test cases (which is 64 bit machine), when I executed my test cases using that machine,...
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
3answers
94 views

Do we really need testing framework when creating automation tests in C#?

I am new in automation, and my team is going to create an automation testing framework and we selected hybrid framework. We are using C# and Visual Studio. I am looking for selenium tutorials and I ...
1
vote
1answer
68 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
33 views

how to run selenium scripts in already opened cef based application

How to run selenium scripts in already opened cefclient application.(CefClient is a sample CEF based application). How to get the window properties in selenium c#?
0
votes
0answers
22 views

Selenium automatically disposing the application after 60 seconds

am trying to automate CEF(Chromium Embedded Framework) Based application through selenium. am able to execute the .exe file by using setBinary function. after executing that selenium is not waiting ...
0
votes
1answer
45 views

What test frameworks can be used when doing Selenium based automation in C# for functional tests?

I have done some research and found that most frameworks available are either for unit testing or the work on them has stopped. I need to either build or find a suitable testing framework for ...
1
vote
1answer
5k 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. ...
5
votes
2answers
2k views

Writing automated tests for System.Web.HttpApplication

I am currently using Moq to write automated tests for System.Web.HttpApplication in C#: public FakeHttpApplication CreateBaseMocks() { MockContext = new Mock<HttpContextBase>(); ...
4
votes
2answers
44 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 id="...
0
votes
1answer
53 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 ...
1
vote
2answers
50 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 ...
2
votes
2answers
233 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" class=...
0
votes
0answers
59 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
853 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
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
45 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
30 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 = (...
6
votes
1answer
983 views

What's the best way to test log4net logging?

What's the best way to test log4net logging? As logging is to some degree an interface to our component, I want to make sure it keeps working as it can be configured in a few different ways. Should ...
0
votes
0answers
27 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 ...