0
votes
0answers
4 views
xpath keeps changing when a new entry is added to table
I am trying to select the checkbox against a table entry. But whenever there is a new entry in the table the xpath keeps changing(tr either increments or decrements). Attached is the source and xpath ...
0
votes
1answer
12 views
How do run each browserdriver based on enum list value?
Hi I am using the code found in the first answer on this page: Click Here
I an able to run this successfully and choose the browser by changing environment USED_DRIVER line for a number of different ...
0
votes
2answers
16 views
How to Initialize a C# Selenium webdriver test to pass in different browser types?
I want to pass into my unit tests which browser to use (Firefox, Chrome, IE).
[TestInitialize()]
public void Initialize(string URL, string Country, string Browser)
{
this.URL = ...
0
votes
1answer
25 views
Maintain and re-use existing webdriver browser - java
Basically everytime I run my java code from eclipse, webdriver launches a new ie browser and executes my tests successfully for the most part. However, I have a lot of tests to run, and it's a pain ...
0
votes
2answers
42 views
File upload works during debugging but not on the actual run in c#
While debugging, the below code works. But when I get it to do a trial run of the test it displays an error. To combat the error, I've added a java script ( example from another question) to change ...
0
votes
1answer
32 views
How to prevent IEDriverServer.exe process to launch multiple times?
I'm using Selenium and IE Web Driver. Whenever my test starts, IE Driver Server starts too, but it doesn't close/exit after test finishes. So for the next test run, I end up with multiple instances of ...
0
votes
1answer
41 views
Asserting a Page Using selenium
I Am new to selenium.
my question are:
1) How to assert whether particular page loaded or not or id present in the page through selenium web driver.(Using Java code)
2) For best performance in ...
0
votes
3answers
73 views
Not able to select element from drop down list
I am facing a problem that i am not able to select element from drop down list to proceed further.
The URL for reference site is "http://www.rechargeitnow.com/needrecharge.jspx"
I tried the code ...
0
votes
2answers
31 views
Not able to click on java script drop down element using selenium webdriver
In our application when I mouse over a menu item, drop down appears, where I want to select an item by clicking on it. The structure of the menu is as follows,
Main Menu
Admin Sub menu:
...
1
vote
0answers
32 views
Selenium Webdriver error: “Can't load the profile”
I'm using Selenium Webdriver (Python bindings) and my script works on Mac (OS X 10.6.8), but not on PC (Windows 7 Enterprise). Here's the error I get:
C:\Python27>python myscript.py
Traceback ...
0
votes
1answer
32 views
Is it possible to do a get next element in Selenium
I'm looking for a generic way of getting the next element within Selenium. Jquery has a .next() function and overloads to allow a given type so I imagine there may be a JS based solution available for ...
1
vote
1answer
44 views
Double Click On A WebElement in an iframe nested in an other iframe
Basically, my page has the following spec:
<html>
...
<iframe id="lvl1">
<html>
<iframe id="lvl2">
<div>Double Click Me ...
0
votes
0answers
34 views
ChromeDriver's changelog/release notes not found in its source code
ChromeDriver's Google Code site has a wiki entry called "ReleaseNotes", which doesn't give anything useful.
A bit googling gave me "ChromeDriver release notes", which is a shared Google doc that ...
-1
votes
0answers
103 views
Handling the popup window in selenium webdriver doesnt work
Webdriver launces browser and navigates to the URL and clicks a link in the application, then a new browser with pop-up window appears and the we can't get any control with the browser till we close ...
1
vote
1answer
41 views
Is it possible to automate Oracle Forms through Selenium?
Can anyone share your views whether we can automate Oracle Forms through Selenium?
One of the forms doesn't contain any locators (web elements) and only contains JavaScript functions. Alternatively, ...
0
votes
0answers
34 views
XML file location is not valid in TestNG
"/private/var/folders/jz/bb3nbjgx3wj02jz3zwddn6n80000gn/T/testng-eclipse--1323985404/testng-customsuite.xml"
How could i replace this using my own .xml file?
1
vote
1answer
35 views
Unable to load xml file in TestNG
I am using TestNG for WebDriver.
I have created my custom XML file to run methods.
But unable to load xml file in eclipse under TestNG.
How i can upload new xml in eclipse for TestNG?
testng.xml ...
-3
votes
3answers
69 views
How to click the nearest link
Lets say we have a table of people. In each row there is a picture, a name, a city and some social buttons, like PM, add as friend, follow.
How can I "Add as friend" a certain person?
There are 10 ...
2
votes
0answers
89 views
My current testcases are not working with new selenium 2.34.0 and php (edit added code and log file from selenium)
I am using Selenium 2.34.0 + phpunit and it cant recognize my "code".
I am using $this->url('blqblq') and the error is it cant be recognize command url.
Do you have same problem? When i "revert" to ...
0
votes
0answers
36 views
Selenium can't determine ready state
I'm running an automated test in Firefox browser using Selenium Web Driver and TestNG, but I'm encountering this error:
org.openqa.selenium.internal.seleniumemulation.WaitForPageToLoad ...
0
votes
0answers
31 views
Why can't I use the selenium.(etc…) library?
When I try to use the selenium. library to perform commands, they don't work.
I've imported the import com.thoughtworks.selenium.*; library but I get a java: can't find symbol error.
...
-1
votes
1answer
50 views
Java Selenium WebDriver - correct exception handling techniques when unable to locate window
I'm using Java and Selenium to automate some test cases. This involves loading a single page with search results and iterating over each 100-1000 links on that single page. Setting the test config to ...
1
vote
1answer
36 views
Issue while clicking on 'find hotels' using Selenium-Java
I am using Selenium (web driver) - Java. I picked a travel site to do demo of automation.
On this travel site, at home webpage, I need to place following input before submit the form.
Provide City ...
0
votes
1answer
86 views
selenium to click on several links one after other
I have a table over a webpage having many values repeating like this:
Description App Name Information
Some Desc1 App1 Some Info
Some Desc2 App2 Some Info
Some ...
0
votes
1answer
37 views
How to ignore children classes when extracting text from a class using Selenium in Python?
I am trying to extract the text from a class on html page using Selenium in Python. While doing so, my code is also extracting the text from its child class.
Below is the code I am using:
...
0
votes
0answers
20 views
Not able to generate signed certificate for safari
I want to execute my selenium scripts on safari browser on windows machine for cross browser testing, for this I followed these steps for Building the safari driver. But while doing registration for ...
0
votes
1answer
47 views
Selenium to click on an app name in a filter tool
I have another requirement like this in my c# selenium application. Since there are so many content in my webpage table, it will be quite nice to sort it based on the app name. I have content like ...
0
votes
1answer
59 views
What is the Page object pattern in webdriver?
What is page object pattern in selenium webdriver?
What is the use of it and how we can use this in web driver?
Example will be appreciated
0
votes
2answers
44 views
Why can't I interact with elements within the iframe?
I'm trying to parse and manipulate some data via Selenium and Java (using Firefox as a browser and Ubuntu as an OS).
I want to type to <textarea> within an <iframe>:
Main Form:
...
...
1
vote
0answers
32 views
Selenium-WebDriver with PHP returns {“ELEMENT”:“0”} on all element findings
I have an Ubuntu server running on a VPS with LXDE and Firefox been installed. Also I've started Selenium server using this command:
java -jar selenium-server-standalone-2.33.0.jar
it is now ...
0
votes
0answers
24 views
How to set $lastBrowserParams value
I would like to keep a Browser strategy between the testcases. More specific I need to keep cookie values, so instead of cleaning up FireFox profile when new testcase starts, I need to start new ...
0
votes
2answers
71 views
find xth td with td contains in same tr xpath python
My page has a table with 11 columns, given text value for column 2, I want to click on the 11th column (arrow button) for the same row.
My DOM looks like this:
<table id=”atab” width=”100%” ...
-1
votes
0answers
42 views
How to check that the website is down in ASP.Net [closed]
I have developed a testing application using Selenium Web driver to automate testing. I am using Assert.fail method to check website accessibility. Now I have to check that website is down or not. ...
0
votes
2answers
54 views
java sendkeys Error keys should be a string
I'm getting an error when trying to pass in a username and password to a form field using sendKeys. Below is my User Class followed by my test class. Does anyone know why the application is not ...
0
votes
2answers
45 views
Selenium findElement in the another findElement
For example, I have an element1 which I can find after I find element2, like this:
driver.findElement(By.xpath("//xpath2")).findElement(By.xpath("//xpath1")).click();
I want to use PageObjectModel ...
2
votes
2answers
66 views
how to find child (not all descendants) elements via an existing element (not xpath)
I am trying to find the children of an already found element. The problem I am having is that I can seem to only get all descendants of an existing element.
For example, given the following HTML ...
0
votes
2answers
47 views
Apachi POI - how to get cell content and change sheet in Selenium Webdriver
In Selenium Apachi POI - how can I get cell content and change sheet?
Scenario #
I have first sheet as "Test" which has 2 Test Scenario in 2 column as
TestScn ---------------- RunMod
...
0
votes
3answers
41 views
Wait for an element using Selenium webdriver
What is the best way to wait for an element to appear on a web page? I have read that we can use implicit wait and functions like webdriverwait, fluentwait etc and last but not the least ...
0
votes
3answers
60 views
Selenium WebDriver isDisplayed() method
I currently have a large number of circumstances where I need to verify that a page (along with all of its elements) are displaying correctly. The isDisplayed() method of WebElement appears to be a ...
0
votes
1answer
42 views
Issue with clicking Drop down list using Selenium in Python
I am trying to save the page as entire html using selenium, page has a dropdown list in it. There are 2 elements in that list and I want to save the entire html after clicking each of them.
Below is ...
0
votes
2answers
33 views
How to approach IFrame and LoadableComponent in Selenium?
what would be a good approach in modelling a page using LoadableComponent when most of the content is in an iframe? I was thinking about an inner class, but not sure about it.
0
votes
0answers
23 views
Selenium Webdriver connection pooling
I have my application automated, which has some 70+ scripts and runs against Selenium Grid which is open to other applications too.
My question is, is there any connection pooling api for WebDriver? ...
1
vote
1answer
52 views
Selenium IsElementPresent() behaviour Selenium 2.33 Java
I'm using selenium 2.33 java to write automation scripts for a website.
I'm calling the Selenium.isElementPresent() function to check if an element exists in page, but sometimes the function waits ...
0
votes
0answers
18 views
Using selenium WebEngine to get .js file content (when saved .js file is in pagename_files folder)
I need to parse page. I couldn't find element I need in html source, but found it in .js file. When I save page with firefox(and choose complete webpage) it is stored in pagename_files folder. I want ...
0
votes
1answer
63 views
Unable to load default profile in Chrome with Selenium WebDriver
I am using Selenium WebDriver to do something on a page that requires http authentication.
I am already login in my default profile. But the selenium chromedriver will automatically use a new profile ...
0
votes
1answer
53 views
Element is not visible
I'm trying to parse and manipulate some data via Selenium and java (using Firefox as a browser and Ubuntu as an os).
The HTML code:
...
<div id="someName1">
<div id="someName2">
...
0
votes
1answer
48 views
How to retrieve the dynamic value in selenium webdriver
I'm trying to create the test cases using Selenium WebDriver with Java. I have the following HTML syntax in the source.
<label for="00N30000005wfev"><span ...
1
vote
2answers
60 views
How to find unique selectors for elements on pages with ExtJS for use with Selenium?
I am using Selenium with Firefox Webdriver to work with elements on a page that has unique
CSS IDs (on every page load) but the IDs change every time so I am unable to use them to locate an element. ...
0
votes
2answers
33 views
Get the value from a RichTextArea in a Selenium test
I'm trying to test with Selenium if a value has been loaded from the server in a RichTextArea in GWT.
I'm doing
@FindByDebugId("gwt-debug-about-me")
private WebElement aboutMeRichText;
When I send ...
1
vote
1answer
69 views
Selenium RC skips onclick() event after click on element
I've got problem I can't deal with. I've tried to search answer in google, tried few things but it doesn't work any way.
Here is the problem:
I'm testing a log in page, where I type in login, ...