All Questions
Tagged with visualstudio selenium-webdriver
27 questions
0
votes
1
answer
192
views
Can't find a specific element generated in DevExpress
I am attempting to find an element using this code:
try
{
new WebDriverWait(wdriver, TimeSpan.FromSeconds(10)).Until(ExpectedConditions.ElementExists(By.Id("messageGrid_TL")));
...
0
votes
1
answer
1k
views
Selenium with C# "Element is no longer valid" exception being thrown when repeating steps
I am repeatedly getting a very annoying problem when automating my test cases using Selenium/C# in Visual Studio.
This test is designed around validating search criteria text. In order for me to test ...
1
vote
3
answers
4k
views
How to automate KendoUI dropdown with selenium webdriver and C#
Cannot make it work, need help, I don't know how to automate KendoUI drop-down with Selenium using C#.
Sendkeys doesn't work for KendoUI.
Here is my HTML:
<div style="background-color: #e6e6e6;...
3
votes
1
answer
6k
views
Selenium code generates error messages the likes of CS0246 & CS0103
I am getting lots of CS0246 Code error messages in Visual Studio after trying to run the Selenium code below. I have chosen the ASP.Net Core file to programme the code in.
The file is called LoginTest....
1
vote
1
answer
2k
views
Best practices for exception handling with Selenium
I've been searching on google for best practices regarding exception handling, however I did not have much success besides using try-catch.
My framework is set with a EventFiringWebDriverwhich, ...
4
votes
2
answers
14k
views
Parallel Execution in Selenium with Visual Studio
How to run test scripts in parallel for Selenium WebDriver with Visual Studio and C# ?
3
votes
5
answers
5k
views
Selenium Webdriver: Finding elements and contents in deep structures
I've got a fair basic grasp about how Selenium works, and I'm comfortable at a beginning level using it in VS and C#. However, when it comes to finding things in pages which are not straight-forward ...
-1
votes
2
answers
164
views
New to automated testing (C#, Selenium/Tosca, .NET, Visual Studio)
After working 4 years as manual tester, I now want and have to learn "how to do test automation" after joining a new company.
My new team is currently developing a new web app in Visual ...
0
votes
1
answer
837
views
Run series of tests using one browser instance - Selenium web-driver c# i
I developed a series of unit tests in Visual Studio 2019, C# Selenium.
How can run back to back with one browser instance?
For example,
the first test is going through a series of steps and creates a ...
1
vote
0
answers
1k
views
PDF Automation using URL opened in Selenium, not a new URL
Currently, I'm 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 pdf")...
2
votes
1
answer
311
views
Unable to pass dynamic xpath in repository file?
My code is :
for (int z = 0; z < rows.size(); z++) {
rows.get(z).findElement(By.xpath("//*[@class='ng-scope'][" + (z + 1) + "]//*[@placeholder='Stop Name']")).sendKeys(shuttleObj.getStopArea());
...
1
vote
1
answer
458
views
TFS Selenium C# Visual Studio 2017
I have recently joined a company and they use TFS. I am an automated tester so I have setup MS Unit framework, selenium and c# within VS2017. I am comfortable in doing this standalone because its ...
1
vote
2
answers
856
views
Can not find getPageSource method in visual studio 2017
I am using Visual Studio 2017 and found that class ChromeDriver does not contains method getPageSource(). Does anybody knows why?
using System;
using System.IO;
using OpenQA.Selenium.Chrome;
...
7
votes
2
answers
24k
views
Selenium C# - How to wait with WebDriverWait using the element as parameter instead of a locator?
I have a big problem, and I don't find the solution.
I have 2 classes: Components_BI.cs with this component:
[FindsBy(How = How.XPath, Using = "//*[@id='body-container']/div/div[1]/div/div/button[...
0
votes
1
answer
2k
views
C# Selenium - How to write a conditional statement with multiple elements/xpaths
I have a problem and having trouble to finding a solution.
Problem Statement:
Navigate to a webpage and check if three checkboxes are selected. If not, I'd like to select them (if only one is ...
1
vote
1
answer
1k
views
How to use the page object model pattern in C# without deprecated libraries
What can I use as an alternative option to the soon-to-be deprecated OpenQA.Selenium.Support.PageObjects library?
I still want to make sure I encapsulate the elements and be able to assemble the ...
1
vote
1
answer
152
views
White Label Website Automated Testing
My company is in the process of setting up a white label website, in which there are slightly different user journeys. These journeys, for the most part, use the same functionality but I'm wondering ...
1
vote
2
answers
3k
views
Javascript : click() method doesn't click the link
I have link with below properties on my Webpage:
<li class="XXXX" title="This is test"> TestLink </li>
I am trying with below code for clicking on above link with Javascript:
var a = ...
2
votes
2
answers
1k
views
VS 2015: Selenium webdriver reference isn't found
I just started with Selenium and C# and came across this problem at very beginning. I've installed nuget webdriver package in project WebdriverTest, then created Unit test project in which I add ...
1
vote
1
answer
162
views
Tests are not running in order
Why are tests not running in the order that is set inside test suite in Visual Studio Online?
We have Microsoft Visual Team Services builds, Visual Studio Test Agent is deployed to virtual machine.
2
votes
1
answer
1k
views
Selenium in VS 2015/C#: Problems with ordered unit test
I'm using unit tests in VS to create my tests, and naturally I ran into the challenge that unit tests should not be dependant on the run order. However, since my tests are actually functional tests, ...
2
votes
1
answer
625
views
C# + Visual Studio : Can I create multiple selenium test through unit test project type in one solution?
This is a newbie question as I am very new to selenium and automation basics. I am creating my selenium tests through Visual Studio, with the help of C#. I have some confusion on these areas:
I am ...
4
votes
4
answers
3k
views
Any one have experience with frameworks using webdriver in Visual Studio?
I'm using webdriver to automate our browser testing, I have some scripted tests already where I am using Visual Studio and while I don't mind other formats I'm looking for a good supportable framework ...
0
votes
2
answers
2k
views
Load testing selenium scripts in visual studio
I am wondering if someone has some advice for running load testing in visual studio, preferably with a selenium webdriver script. I know that JUnit can be integrated with JMeter, so that you can test ...
1
vote
1
answer
1k
views
Need to validate compiled document using C# selenium in VS 2010
I am using selenium, C# at this point I am able to compile word document and then need to save as a pdf on desktop and then validate the links in the downloaded document with original parsed document, ...
1
vote
1
answer
922
views
How to save compiled document on Desktop using C# Selenium
Using Selenium WebDriver with C# in VS 2010, I compiled a document using automation and then I want to save the file on my desktop. During automation a new window is popping up to "save or open file". ...
3
votes
1
answer
2k
views
Web Driver (Selinium Version)
How to add the webdrivers of C# in VS 2005, I was tried the same but the "OpenQA" not found error is shown,
Is there is any version problem?