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

learn more… | top users | synonyms

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\...
0
votes
2answers
55 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: ...
0
votes
4answers
2k views

Selenium - advantages and disadvantages of using Python vs C#

We currently have two teams. An automation team and also a web testing team. The automation team currently use Selenium and C# to automate tests on our web applications and legacy systems. As a ...
0
votes
2answers
567 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, ...
0
votes
1answer
548 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 ...
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
57 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
2answers
123 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
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
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 ...
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 ...
0
votes
1answer
894 views

How to test Image carousel

I would like to test an Image carousel using Selenium C# An example of the type of the type of carousel can be found here: http://bxslider.com/ Maybe the test could click on the next image, assert ...
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
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 ...
0
votes
3answers
61 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
1answer
90 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> ...
0
votes
2answers
784 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 ...
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 ...
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. ...
0
votes
1answer
2k views

Selenium : How can I scroll to an element in an iFrame

I have an element that is out of view when I am using Selenium within an iFrame. I have switched the context using Driver.SwitchTo.Frame("frame_id") and I am able to interact with elements that are ...
0
votes
3answers
1k views

Loading page generates exception 'Timed out waiting for page load'

I'm navigating to a webpage using Firefox driver. The page is loaded correctly but I'm getting this exception and the test crashes Timed out waiting for page load I've tried to add some Thread....
0
votes
1answer
250 views

Generic Automation Framework [closed]

I have to make a generic automation framework which can work on any eCommerce website using Ranorex test automation tool. I am unable to figure out what things should be included in a generic test ...
0
votes
2answers
3k views

Counting the number of browser windows opened by Selenium

Is there a way to get a list of opened browser windows using Selenium? I want to use this to count the number of open browsers within a test.
0
votes
1answer
1k views

Selenium WebDriver - How to clear RadEditor content

I am working to write some Selenium WebDriver scripts that work with Telerik RadEditor controls. I can successfully enter content into the RadEditor in the following way with C#: Driver.FindElement(...
0
votes
1answer
410 views

send multiple element to kendo multiselect from selenium

I want to sent more than one value to Kendo Multiselect element. whenever i use the Following function ((IJavaScriptExecutor)driver).ExecuteScript(String.Format("$('# {0}').data('kendoMultiSelect')....
0
votes
1answer
18 views

How do I call a web api with selenium c#

How do I call a web api with selenium c#? Using Rest, vs 2015. Looking for sample code if any to test api's end to end. Thanks
0
votes
2answers
27 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) {...
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
53 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 ...
0
votes
1answer
15 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 ...
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. ...
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
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 ...
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 ...
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
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 ...
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
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 ...
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 ...
0
votes
0answers
38 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"); ...
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
1answer
169 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 ...
0
votes
1answer
175 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
379 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 ...
0
votes
1answer
861 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 ...
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
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 ...