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

learn more… | top users | synonyms

0
votes
0answers
9 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
250 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
319 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
47 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
50 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
1answer
37 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
10 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 ...
2
votes
2answers
449 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 ...
0
votes
2answers
90 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
1answer
30 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
2answers
50 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 ...
0
votes
1answer
25 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
19 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,...
1
vote
2answers
590 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/...
4
votes
1answer
1k 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
1answer
156 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
293 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
3answers
83 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 ...
2
votes
1answer
114 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
35 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 ...
1
vote
1answer
60 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
19 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
17 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
43 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
4k 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
43 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
160 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
40 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
770 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
471 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
41 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
979 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
24 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
46 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
3answers
60 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: driver....
0
votes
0answers
29 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
24 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
1answer
755 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
2answers
88 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 ...
0
votes
2answers
50 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
57 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
1answer
130 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
62 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
117 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 ...
2
votes
2answers
217 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 ...