Tagged Questions
-1
votes
2answers
57 views
XPATH of element with the same class name
How can I create an Xpath for individual elements within the same class name? The element ids (eg. id='some_item_12') is not constant (ie. could be 12,3, etc on next iteration) so I can't use a direct ...
1
vote
1answer
25 views
How do i dump errors reported by logger.error into a file
I have a selenium script and I need to write the failures to a log file. i am using the logger.info() method to dump the required information into my file but i need to maintain a seperate errorlog ...
0
votes
0answers
56 views
Handling Mozilla alert using selenium IDE and click on continue button to continue with the test
I am new to selenium ide , i am facing problem to handle alert dialog box in mozilla browser using selenium ide
Scenario: When i click on a link on my web page it navigate the user to new page, ...
2
votes
2answers
73 views
How to test the ads displayed on UI, using Selenim WebDriver/RC
How to test the ads which displayed on web page. This ads are injected thorugh some plugins. When i record using IDE, it displays the adds on Firefox browser. But when i run the webdriver selenium ...
0
votes
1answer
119 views
Retrieve 5th item's price value using selenium webdriver
Say I have multiple price quotes from multiple retailers, how will I retrieve the 5th value from a particular retailer - say Target or Walmart ? I can get to the 5th entry using the matching image ...
0
votes
1answer
222 views
com.thoughtworks.selenium.SeleniumException: ERROR: Command execution failure
com.thoughtworks.selenium.SeleniumException: ERROR: Command execution failure. Please search the user group at https://groups.google.com/forum/#!forum/selenium-users for error details from the log ...
0
votes
1answer
149 views
How to click on an hidden drop down menu element using webdriver, which is not a select
I want to click on delete which is in the sub menu.
I tried the below code, but nothing happens.
wd_handle.execute_script("document.getElementById('optionPanel').hidden=false;")
...
0
votes
2answers
176 views
WebDriver Chrome Browser: Avoid 'Do you want chrome to save your password' pop up
Every time my webdriver tests login into the application, 'Do you want chrome to save your password' pop up appears.. Is there a way to avoid this??
Please help.
Thanks,
Mike
0
votes
1answer
319 views
Regular expression for xpath in selenium java code
Selenium java code for regular expression.
Xpath = "//*[@id='gritter-item-6']/div[2]/div[2]/p"
In above xpath 6 is varying, any one help me how to solve this problem
Please give me the solution for ...
1
vote
1answer
118 views
Selenium, PHP Unit and Firefox on Ubuntu EC2
I am attempting to get PHPUnit tests running with Selenium.
I start up selenium:
java -jar selenium-server-standalone-2.32.0.jar &
Run my tests:
phpunit --verbose suite/TestSuite.php
... ...
1
vote
1answer
73 views
Codeception: How to continue testcase on url of previous testcase?
I am using codeception with selenium2.
And developing a data driven testing for which I require the url opened by first testcase (cept file) to be used by second testcase (cept file), that is, the ...
0
votes
1answer
273 views
How to start server for Selenium grid Java Maven setup
I setup Selenium framework with Maven Java. So all dependencies are storing in POM.xml
Here I got doubt.. How to start server java -jar selenium-server-standalone-2.18.0.jar -role hub .. Should I ...
1
vote
5answers
535 views
Selenium WebDriver reliable tests
I know that this question was asked many times before, but I still couldn't find a solution that works for me. When I run my tests with Selenium WebDriver most of the times they fail with ...
2
votes
2answers
113 views
phpunit selenium usage
My question is about phpunit+selenium usage.
The standard usage of this union is
class BlaBlaTest extends PHPUnit_Extensions_SeleniumTestCase
{... }
OR
class BlaBlaTest extends ...
1
vote
2answers
88 views
Need to get the occurrence of same webelement locator and wherever present then click it
I need the java webdriver to click a button on a page wherever it is present. No fixed number of occurrences of the element but its not more than 20.
i tried using:
for(i=0; i<=20; i++){
...
0
votes
0answers
285 views
Why does my code fail to connect to a Selenium Remote Webdriver?
I m trying to do automation testing using "Selenium Remote Webdriver" but getting an exception when try to connect with remote server.
The exception is:
Unexpected error. System.Net.WebException: ...
1
vote
1answer
161 views
PHP web driver method to upload files to a remote machine running Selenium2 RC?
I have a standalone selenium RC on a machine.
When I run tests, I would like to send a file over to that machine for upload.
Currently, in order to do this I have a predefined directory that I upload ...
0
votes
0answers
418 views
TestNG xslt reports not running
I am running Mac mini:
I am getting errors like:
1. similar like includeantruntime set to default/false (During ant run), ant compilation gave similar warning.
i made some changes, and got another ...
-1
votes
2answers
333 views
How to use selenium-server-standalone-2.0rc2 while creating script with RC
package com.html;
import com.thoughtworks.selenium.DefaultSelenium;
import com.thoughtworks.selenium.Selenium;
import junit.framework.TestCase;
public class Html5 extends TestCase{`enter code here`
...
0
votes
1answer
444 views
How to add an attachment in Gmail using selenium RC/Webdriver
Can some one tell me how can i add attachment in Gmail/Yahoo mail using selenium RC/Webdriver.
Please help me out in this situation.
Thanks in advance.
1
vote
0answers
182 views
Auto insertion of values in pop up text fields using selenium
I am trying to do auto-insertion of values to the fields inside the pop up(see attached image) using the code below. But the insertion of values to the fields is not happening using the automation ...
0
votes
0answers
424 views
selenium node-hub configuration
I have the following configuration in my /etc/rc.local file
Xvfb :99 -screen 0 1024x768x24 -ac 2>&1 >/dev/null &
export DISPLAY=:99
java -jar ...
0
votes
0answers
122 views
Selenium: PayPal Login process in Web Application
My application having Paypal as a payment option, while doing automation testing using Selenium Web Driver, the process flow goes on without any error but when flow navigate to Paypal login page ...
1
vote
1answer
75 views
Manual way to Automate the verificaton process (i.e for phone(text), voice, etc.) using Selenium WebDriver
I am testing a web App which contains phone/voice verification in one process flow, I am trying to automate this verification process. My Query is:
Is there any way to do it manually like for ...
1
vote
1answer
379 views
from selenium import webdriver not working?
I downloaded the Selenium Python package including server, but I get an error:
File "<pyshell#6>", line 1, in <module>
from selenium import webdriver
ImportError: cannot import name ...
0
votes
3answers
376 views
To select a text box using index
Below is my code
<TR ID="oldContent"><TD><input type="text" name="code" id="oldContent"></TD></TR>
<TR ID="oldContent"><TD><input type="text" name="code" ...
0
votes
0answers
51 views
FlexMonkium Grid automation
I am working on Selenium with Flex Monkey to automate Flex objects. I am having an issue with identifying field level objects within a grid. Requesting help.
1
vote
1answer
371 views
How to convert this xpath to css?
How to change this below Xpath to css? Please help.
//button[text()='Continue' and @class='buttonLargeAlt' and @type='submit']
1
vote
0answers
73 views
Does jMagick have compare method??
I am trying to compare screenshots using the jmagick java api for ImageMagick. I could not find any compare method here http://downloads.jmagick.org/jmagick-doc/
Could someone let me know, if jMagick ...
0
votes
0answers
77 views
How to get all the web page elements as tree using selenium web driver in C#
Say i am trying to use the selenium web driver to get the page source. I just want to know how to get all the html elements in a tree like structure.
Iwebdriver driver=new FirefoxDriver();
...
1
vote
5answers
214 views
Selenium, unable to browse and update files
I am doing an automation using selenium, I need an html code to click on the browse window (marked 1) and select the file (callform.txt) and update to the source filelist path
0
votes
4answers
2k views
How to locate an element using selenium that does not have id/name or any other unique identifier?
There are two fields in the page: Username and Password(Highlighted in the below code with **). Need to enter data into it using selenium. However, both the objects have same identifier elements ...
0
votes
1answer
332 views
Unpredictable Pop up appears - How to handle this using Selenium (Java)?
Here is the scenario.
I am using Page object design pattern(Web driver + TestNG). A pop up appears randomly on some of the pages during run time. Please note, they appear randomly on any page and I ...
0
votes
0answers
183 views
Unsure how to process: org.openqa.selenium.remote.RemoteWebDriver
I am trying backing selenium with RemoteWebDriver. Since i have a requirement to load the user-extensions.js file, i could not use WebDriverBackedSelenium for backing selenium. I tried the below code
...
1
vote
3answers
230 views
Locating href element in Selenium
Below is my code
<TD ALIGN="LEFT" width="65%" id="oldcontent" >3. Download csv template
<a href="javascript:doformsubmit('3');"><IMG src="images/date_pick.gif" ...
1
vote
1answer
615 views
How to disable Flash in selenium remote webdriver
How do I disable the loading of flash objects when using Selenium Remote WebDriver.
It will be helpful if I get a solution for the normal webdriver also.
Since in most cases the Flash object is ...
0
votes
1answer
899 views
How to use property file in Selenium Webdriver
//Reading data from property file :
String username = prop.getProperty("username");
String password = prop.getProperty("password");
@Test
public void ...
0
votes
1answer
172 views
merging selenium rc and webdriver
I have made most of my automation code using Selenium RC with Python. But, I feel that with the evolution in my product (what I'm testing through selenium RC), my automation needs are changed. I tried ...
1
vote
1answer
2k views
Page scroll up or down in WebDriver (Selenium 2) using java
I have written the following code in Selenium 1 (a.k.a Selenium RC) for page scrolling using java:
selenium.getEval("scrollBy(0, 250)");
What is the equivalent code in Selenium 2 (WebDriver)?
2
votes
3answers
3k views
How to select an element from a menu using Webdriver Selenium ? The Menu drop down shows up on Mouse Over?
How to select an element from a menu using Webdriver Selenium ? The Menu drop down shows up on Mouse Over?
1
vote
2answers
740 views
Equivalent code of selenium.refresh() in Selenium 2 (WebDriver)
In Selenium RC, I used the following code using Java for refresh on the browser:
selenium.refresh();
What is the equivalent code for refresh in WebDriver?
1
vote
2answers
2k views
xpath and cssSelector for Selenium 2 (WebDriver) or Selenium RC
I have the following HTML code:
<input type="submit" value="Publish" class="button submit">
I have written xpath as below:
//input[@value='Publish']
//input[@class='button submit']
...
1
vote
2answers
924 views
How can I setup a Database connection for Selenium-WebDriver?
If I run Selenium-WebDriver testcase it runs with the actual database which is configured for the application. But I want to setup a separate database for Selenium-WebDriver testcase For eg. "TestDB". ...
1
vote
1answer
341 views
How can I connect a JDBC connection pool for Selenium WebDriver test case?
I'm working on maven application. I'm using JPA and EJB.
I need to connect a JDBC connection pool for Selenium-WebDriver test case. Since I want to use a separate DataBase for testing.
How can I ...
1
vote
2answers
1k views
Jar files required to access Selenium class functions
Currently I have included the following JAR files to playback selenium recordings using JAVA.
junit-4.10.jar
selenium-java-2.24.1.jar
selenium-server-standalone-2.24.1.jar
Also I have imported ...
1
vote
4answers
1k views
Is there any method in WebDriver with Java for controlling speed of browser?
When I use Selenium RC there is a method setSpeed as:
selenium.setSpeed("500");
What is the way to control speed of browser in Selenium WebDriver?
0
votes
4answers
532 views
How to manage dynamic id for COMPOSE button in Gmail in Selenium Automated Test
The id of COMPOSE button of Gmail is dynamic. So when it is clicked different xpath is recorded by Selenium IDE as follows:
//div[@id=':lw']/div/div , //div[@id=':as']/div/div
What can be the ...
5
votes
7answers
1k views
Is there a Selenium 2 version of Selenium IDE?
I'm new to Selenium and I'm a bit confused about the version numbers. Selenium 2.0 was released in 2011. I just downloaded the Selenium IDE Firefox extension and it is version 1.7.2. Is there also ...
3
votes
5answers
7k views
How to press/click the button using Selenium if the button does not have the Id?
I have 2 buttons Cancel and Next button on the same page but it has only one id (see the below code). I wanted to press Next but every time it is identifying the cancel button only not Next button. ...
1
vote
2answers
2k views
How to use JUnit with eclipse [closed]
I want to use JUnit as test framework with Selenium using eclipse as IDE. I am using Java for Selenium. Which jar file needed to add as library?