Tagged Questions
0
votes
0answers
15 views
Working with Pagination (Selenium webdriver C#)
I am facing a problem while automating my test for Pagination.
My code is able to iterate through table on first page and also able to click the Next page if 'Search Element not Found'. But, the ...
0
votes
2answers
11 views
Selenium [JavaScipt Application] Error
I have the following code:
driver = new FirefoxDriver();
// driver = new InternetExplorerDriver();
The InternetExplorerDriver works fine (with the .exe), but with the Firefox driver, ...
0
votes
1answer
41 views
Retrieving Text between <span>Text</span> in Selenium C#
I am facing problem in retrieving Subject title of a mail from Unread mails using Selenium webdriver-C#.
Here's the HTML code :
<div class="ae4 UI UJ" gh="tl">
<div class="Cp">
...
6
votes
1answer
69 views
Running Selenium test on nUnit not executing scripts
When I was running my tests on C#-visualnUnit it runs successfully but when I was running it on Nunit only and just having the dll on the project it out puts like this:
Started ChromeDriver
...
-1
votes
0answers
50 views
How to crop the right position of element from the screen shot?
Currently i am working on a selenium webdriver tool. This tool is going to screen shot a website page and crop it into the size of the element i look for. However, I am not able to get the correct ...
0
votes
0answers
71 views
Selenium Chrome Driver displays page differently then manually navigating to link
I have a strange issue using Selenium Web driver with C#.
When I navigate to this webpage manually in Chrome or using the Firefox Selenium WebDriver then the following "Proovikabiin" link is ...
-1
votes
0answers
32 views
How to Activate/add firebug addon in firefox in selenium webdriver using c# code
Hi I have installed firebug addon to firefox and it is working fine when i am opening firefox manually .But when the firefox is opening using selenium webdriver(c#) the firebug add on is not present ...
-1
votes
0answers
30 views
Selenium web driver window handling
i am having a problem of finding the element in the container page, the scenario is as follows
1 when i open my web url(loader page) it will be navigated to the new window which is a container page. ...
0
votes
0answers
23 views
how can i export data to exel sheet using selenium webdriver in C#
I need to export the data from table to exel sheet on button click and read the data in the exel sheet by using selenium webdriver in C#.
Is there any solution?
if there is any method please write ...
0
votes
0answers
75 views
Selenium webdriver disabled on browser start?
I am using the Selenium Firefox web driver and attempting to start an existing profile which I have created specifically for Selenium.
Firefox starts up with the correct profile, but the web driver ...
0
votes
2answers
113 views
Difference between Selenium Web Driver Implementations
I recently developed a sample test in Selenium using IE Web Driver and it worked fine on IE. I was wondering if the same test would work on Chrome or Firefox just by changing the driver to Chrome or ...
0
votes
2answers
32 views
Generic Click Method in WebDriver
I am migrating test scripts from Selenium RC to WebDriver. The biggest issue so far is that our extension classes are having to be rewritten to use the WebDriver API, which I don't mind, but the By ...
0
votes
1answer
49 views
unhandled exception: system.typeInitializationException
I am using selenium webdriver to navigate to website and send keys.
It is working fine in development environment/computer. But I am getting error, when im trying to run through different computer.
...
0
votes
0answers
29 views
Is there a way to use selenium IEDriverServer client side?
I am using asp.net C# to develop web application uses IEdriverserver to communicate with the IE.
I have application ready but it would be good if each client gets to open a browser locally but not on ...
1
vote
1answer
156 views
Selenium webdriver script failing to locate button even with ID
I'm hoping this is easier than it seems and I've just gone snow blind trying to fix it! Your help would be massively appreciated on this.
I am using the PageObject Model (I think!) to create my ...
0
votes
0answers
53 views
RemoteWebDriver & IE8 hangs Downloading picture res://ieframe.dll/background_gradient_red.jpg
I've managed to handle a missing security certificate in IE8, however quite often the browser will hang while loading "Downloading picture res://ieframe.dll/background_gradient_red.jpg..." and any ...
0
votes
1answer
124 views
Selnium WebDriver Automatically Throws TimeoutException - C#
We are currently migrating our automation scripts from Selenium RC to WebDriver. I have ran into a few issues with WebDriver, mainly dealing with TimeoutExceptions being thrown the instant something ...
0
votes
1answer
48 views
Hiding Chrome WebDriver in a console application
Is there any way to hide the chrome windows opened with Selenium WebDriver in C# console application?
1
vote
0answers
85 views
Missing “System.Drawing” in Global Assembly Cache package install with NuGet [closed]
I recently dealt with some "dependency hell" version conflicts with JSON.Net trying to use RavenDB and Selenium Webdriver in the same library, and hence I reinstalled Visual Studio 2010 and Visual ...
1
vote
1answer
109 views
selenium webdriver ijavascriptexecuter executescript argument types
I am looking at the selenium-webdriver API for .NET at http://selenium.googlecode.com/svn/trunk/docs/api/dotnet/index.html. For the arguments on IJavaScriptExecutor.ExecuteScript, it states that 'For ...
1
vote
1answer
84 views
Is it possible to test css property of some element, defined in external css file, using Selenium Webdriver and C#?
How can I test css properties of any web-page element, which is defined in external css file. If I had, for example:
<div id="some-div" style="opasity: 10;"></div>
I could just take the ...
0
votes
2answers
219 views
C# Selenium webdriver selectByText containing from listbox or dropdow
I use code which perfectly selects item from listbox by visible text.
var selectElement = new SelectElement(TestFramework.FindWebElement(this));
selectElement.SelectByText(text);
The problem is ...
2
votes
1answer
128 views
Selenium c# accept confirm box
I have written an nUnit test using selenium in c#.
All was going well until I have to confirm a JS confirm box.
here is the code I am using:
this.driver.FindElement(By.Id("submitButton")).Click();
...
5
votes
2answers
204 views
Cannot initialize AndroidDriver
At W2k8 64 bit I have in the android emulator instance of android 4.1 API Level 16 with ARM as CPU.
After launch of it I'm running my UnitTest and on the first line
var webDriver = new ...
0
votes
1answer
228 views
Data Driven test framework in c# + NUnit
I am required to create a data driven test framework in c# at my work place. I have been given time to get to grips with c# since the little experience I have is mostly in java. Basically the ...
1
vote
1answer
96 views
How to return an array from javascript? (ExecuteScript)
Although returning a string is cake, I just can't figure out how to return an array, this is an example that does not work (myURLs is a global array variable):
List<object> list = ...
0
votes
0answers
134 views
How to select an option from the Telerik RadComboBox using Selenium WebDriver and c#?
I am trying to select an option in a Telerik RadComboBox Asp.Net control using Selenium WebDriver and I can't make it work consistently. I am using the following code
var wait = new ...
2
votes
1answer
99 views
Selenium C# how to select an element on a dynamic li id list within a class
<ul class="cartItems">
<li id="ba464302-4733-4a06-80af-44e315d98bc9" class="cartItem">
<div class="thumbContainer">
<span class="transferLinks">
<a ...
0
votes
1answer
96 views
OpenQA.Selenium.Support.PageObjects.FindsBy parameters
What does the Priority parameter of the FindsBy attribute from OpenQA.Selenium.Support.PageObjects do? I am interested in the C# version of the library.
Is there any documentation out there regarding ...
1
vote
2answers
163 views
C# Selenium webdriver. Quickly check the page after every click
I have a big site to test. After every click it could be an error on page such as Warning, Fatal error, etc. So after every click i must check innertext (or innerHTML) of the page on this errors.
...
1
vote
5answers
958 views
How do I get this div tag using selenium webdriver?
<div id="ctl00_ContentHolder_vs_ValidationSummary" class="errorblock">
<p><strong>The following errors were found:</strong></p>
<ul><input type="hidden" ...
0
votes
1answer
133 views
how to take input from file in selenium webdriver c#
I am new to Selenium Webdriver. I need to automate test cases where i'm giving input from a file for a field. how do i do that?
1
vote
2answers
395 views
What is the best approach for Timeout using Selenium using Webdriver
I'm running into a problem
My web page which has dropdownlist control and once the dropdownlist value changed (selected different value) then the page refresh and it renders the contents...
and I ...
0
votes
1answer
263 views
Does creating Selenium test cases for C# require Visual Studio?
I am aware that you can use Java using Eclipse an Python etc... but my question is more towards writing a test script in C# and testing....
How can the QA team test cases if i have those written in ...
0
votes
1answer
839 views
http authorization with webdriver and popup window
I'm trying to use Selenium WebDriver to automatically login in to a site with a user-name and password. I've done my research and I don't believe this feature is supported by WebDriver, so I need to ...
2
votes
2answers
892 views
Selenium Webdriver C# - Firefox dropdown menu text not selected
I am trying a select a text from the Dropdown Menu using Selenium webdriver in C#
It is working perfectly with Chrome browser, but not with Firefox. Could any one help me to fix this.
The code I am ...
0
votes
1answer
261 views
Does SeleniumWebdrive change focus on element when using jQuery to locate an element?
Background:
Been using Selenium 2.0 (WebDriver), and understand that the focus moves to elements when locating them, like so:
var element = driver.FindElement(By.CssSelector("#foo"));
...
1
vote
5answers
3k views
How to get all options in a drop-down list by Selenium webdriver + c#?
I'm new to both C# and Selenium webdriver.
I know how to select/click on an option in a drop-down list, but I've a problem before that. Since the drop-down list is dynamically generated, I have to ...