Tagged Questions

1
vote
0answers
18 views

Webdriver is not able to close the Browser

I'm using IE. When I use the command driver.quit() or driver.close() to close the browser, an alert box pops up saying "do you want to navigate away from the webpage?" So How to accept the alert box ...
0
votes
0answers
29 views

Element is not clickable at point (693, 14). Other element would receive the click: With Chrome Driver only

Hi all i am using selenium backed webdriver i am automating some third party site so i don't have any access to the code of that site problem is that my selenium test case works well firefox but when ...
0
votes
2answers
29 views

Click on element does not produce expected outcome using selenium webdriver

First the specs, I am writing Selenium Webdriver tests in java for an application written largely in ExtJS and running on the firefox browser v14. The interesting thing is that Selenium can find the ...
1
vote
3answers
54 views

Selenium 2: something wrong with “driver.findElement(By…);

the selenium webDriver just does nothing when no Element is found by calling driver.findElement(By.className("item")); the driver does not even throw an ElementNotfoundException, which I´m sometimes ...
0
votes
0answers
21 views

How to verify that a file has been downloaded

I'm writing some automated tests in selenium, one thing which I would like to check is whether a file has been downloaded. The download is initiated by navigating to a certain page (via selenium). ...
0
votes
1answer
55 views

Selecting random values using Selenium in Java

I have a page that contains 10 drop down options and each drop down has a list of values. I would like for Selenium to run the script, select a random drop down and then a random value within that ...
0
votes
1answer
45 views

Getting error while running the script in Webdriver: An error has occurred in the script on this page line 27

I am getting the error when running the following script in Webdriver. Error Message: An error has occurred in the script on this page line 27 package Example; import java.util.Iterator; import ...
-1
votes
0answers
31 views

How to produce Image Diff? [closed]

I need you valuable inputs here. I am trying automate image comparison. The end result should be Image Diff with comparison metric. Image diff to be specific is like producing output with two image ...
0
votes
3answers
46 views

How can I inject an XML file using Selenium?

I have the path to my XML file on my computer, but how can I use selenium (web automation tool) to inject the XML file ? Usually how it is done (manually) is navigate to the URL and COPY AND PASTE ...
0
votes
3answers
27 views

WebDriver exiting for

I have a problem with Selenium WebDriver exiting the for loop after performing only once. Presumably it's the problem with getting content and the loop starting before the page is loaded. Is there a ...
0
votes
0answers
19 views

Ant Email Error: Authentication Required

I am not able to send email through ant build. I am getting the following error: Buildfile: C:\Users\madhur\workspace\TCLAutomation\build.xml build-subprojects: init: build-project: [echo] Hello ...
0
votes
1answer
24 views

Get Current Value of Select Field

I have a website I am trying to test which has several drop downs. One select element is below: <select class="input-xxlarge" name="dosage"> <option value="20 MG, Enteric Coated ...
1
vote
2answers
57 views

In webdriver, how to verify dropdown field is displayed or not using Java

I need to verify whether the dropdown field is displayed in the screen or not using Java in webdriver. This dropdown field will display in this a screen after selecting the checkbox in another screen ...
0
votes
1answer
38 views

Using Selenium Webdrivers method “browser.helperApps.neverAsk.saveToDisk” how can i download a file automatically on click of a link

Using Selenium Web-driver in Java, am trying to download a file on click of a link in an Application. i.e. On click of a Link the download should begin without asking an option whether to save the ...
1
vote
0answers
20 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 ...
1
vote
2answers
80 views

TestNG Run all class methods multiple times preliminary doing @BeforeClass with supplied data

I'm writing a test suite for a webapp using TestNG and Selenium WebDriver. What i need is to run all methods of the test class multiple times for different authenticated users (data is pulled out at ...
0
votes
0answers
214 views

Selenium WebDriver Java - org.openqa.selenium.UnhandledAlertException: Modal dialog for Basic Authentication Window in IE

I am using Java, Selenium-WebDriver (2.25) , Maven, JUnit to Develop tests for one of the website. The tests are working fine for [Firefox and Chrome]. The same tests are not working for IE. ...
3
votes
3answers
168 views

WebDriver + TestNG - How to handle test results

I'm quite new to WebDriver and TestNG framework. I've started with a project that does a regression test of an e-commerce website. I'm done with the login and registration and so on. But there is ...
0
votes
1answer
73 views

How can I run Selenium Webdriver test case using ChromeDriver?

I have done this File file = new File("path\\to\\chrome driver"); System.setProperty("webdriver.chrome.driver", file.getAbsolutePath()); WebDriver driver = new ChromeDriver(); Totally I have 5 ...
2
votes
1answer
116 views

Selenium WebDriver cannot locate Element that Selenium IDE can locate

This is a issue I did not expect to run into. I am writing a selenium Webdriver test using JUnit 4 in eclipse on Ubuntu 11. I had been using Selenium IDE combined with firebug and firepath to make ...
0
votes
3answers
55 views

iterate through classes with same name in selenium

in the website I'm testing there is a table with 5 nested classes with the same names. I need to validate that under the table there is exactly 5 classes but they are all the same name. How can I ...
0
votes
0answers
63 views

selenium and firefox timeout behavior

I am facing this strange timeout behavior. I tried to load some page using: WebDriver drv = new FirefoxDriver(); drv.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); ...
6
votes
3answers
242 views

Failed to connect to binary FirefoxBinary with Selenium in Maven

I am running some Selenium-Tests. When I start them directly from Eclipse everything works fine. But when I Start them through Maven there the following Exception occurs: ...
0
votes
0answers
66 views

PrimeFaces fileUpload testing with Selenium WebDriver

I've successfully tested fileUploadSimple http://www.primefaces.org/showcase/ui/fileUploadSimple.jsf with webElement.sendKeys() method. It doesn't work with Auto upload Is there any way to test ...
0
votes
2answers
77 views

Can we use Web driver to test https:// sites? I am trying to work on gmail.com and it doesn't work

import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox.FirefoxDriver; ...
0
votes
2answers
113 views

How to fetch all links and click those links one by one using selenium webdriver

I using selenuim webdriver, lang: java I am fetching all links from webpage and trying to click each link one by one. I am getting below error: error ...
0
votes
1answer
29 views

Quickly assert the non-presence of an element without waiting in Selenium

The Java Junit exporter in Selenium IDE sets a 30 second implicit wait by default. This means, the assertion to test an element does not exist will result in an unnecessary delay for 30 seconds. I ...
0
votes
0answers
144 views

Screenshot pages with flash content with Selenium Webdriver (Java)

Trying to take screenshots of flash-enabled webpages via Selenium Webdriver. I'm currently testing with sample code and a youtube page. I read from Taking screenshot of flash object using Selenium ...
0
votes
4answers
160 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
0answers
496 views

Selenium Webdriver - Open new tab/window with javascript does not work in IE

I'm using JavascriptExecutor to open a new tab/window in Selenium Webdriver. The code I have currently works perfectly in Chrome but in IE 9 it does nothing. Edit: This runs without throwing any ...
0
votes
0answers
46 views

Making System.setProperty platform independent in a Maven Project for Selenium Tests

I am currently creating selenium automation using webdriver in Maven using Java. Now for initializing the browsers such as Chrome and IE I have to set the system property such as ...
0
votes
1answer
46 views

Get result from junit test

I'm using selenium webdriver 2.0 java api to run some tests in my company. I'm doing it at free will and have no heavy knowledge about automation so part my ignorance. I would like to know how can I ...
0
votes
1answer
82 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
1answer
82 views

Selenium webdriver: can I check if a resource (e.g. XML file) has been loaded?

I have Fusion Maps and Fusion Charts in my application, which load XML files to get data to visualise. What I would like to do is, using JUnit tests (webdriver), to check if a certain XML file has ...
0
votes
1answer
60 views

How to upgrade/update selenium version of a pre-existing java project?

Ok, I ended up solving this problem before I could post it :) but figured since I started this might be of help to someone so I will post it. I have a selenium webdriver project eclipse IDE Ubuntu 11 ...
0
votes
1answer
115 views

im using maven ,.java,sts eclipse and selenium ide, svn and web driver in ubuntu

i am using maven,java,sts eclipse and selenium ide, svn and web driver in ubuntu.i am new to these technologies. i need to know how to test my project(web site) via terminal using maven. when i use ...
0
votes
0answers
46 views

Is there a way in selenium to compare screen shots using (TakesScreenshot)driver).getScreenshotAs method?

I am trying to compare screens using selenium web driver java. Is there any API to compare? Able to capture and save images.
0
votes
2answers
114 views

How to Accept/Dismiss UnhandledAlerts with WebDriver?

How can I click accept/dismiss unhandledalerts with WebDriver ? Is it possible to check where the unhandled alerts coming? How can I use UNEXPECTED_ALERT_BEHAVIOUR capability ? It is not working as ...
0
votes
3answers
156 views

Get Text from element inside a webtable without using XPath(Selenium Web driver + Java)

<table class="shoppingCart" cellspacing="0" cellpadding="0" border="0" width="100%"> <thead> <tfoot> <tr> <tr> <tr> <!-- show if promo discount applied --> ...
0
votes
2answers
56 views

Is there a cleaner way to write this polling loop?

I am writing automated test cases in Selenium/WebDriver in java. I have the following code implemented to poll for existing WebElements, but as I am not an expert in Java I was wondering if there is ...
1
vote
1answer
64 views

Could not get a column data from specific row in webdriver

I need to select a column value only if value of column 1 and 7 matches in a specific row of a table. the number of rows is dynamic and has 8 columns. this is my code : WebElement session_table ...
-1
votes
3answers
250 views

How to verify email notification using selenium webdriver with java [closed]

My application sends confirmation mails to the user on any email id eg: gmail, outlook , etc. Now i have verify that the email is sent to the user and also the body of the mail with necessary data. ...
-3
votes
4answers
73 views

How to verify a item is deleted on web page using selenium webdriver [closed]

I am deleting a row on webpage and i want to verify it is deleted. How to do it using selenium webdriver with java. I got its solution by using "isDisplayed" . Thanks
0
votes
0answers
64 views

Unable to upload file using webdriver onto Box.com

I am failing to automate upload onto Box.com Tried Multiple options listed below. None of them seem to help - ...
1
vote
1answer
229 views

How to verify tooltipText in Selenium WebDriver using Java

I have the following snippet of HTML code: <div style="float:right; padding-right: 50px; margin-top: -10px;" id="divTooltips"> <img width="25px" height="25px" ...
0
votes
2answers
59 views

dynamically retrieving JUnit class

I would like to instantiate a new class object form external location collected from user input. The program asks the user where the file is, say /tmp/MyTestClass.java. I would then like it to grab ...
0
votes
2answers
90 views

Selenium WebDriver Element

How do i configure selenium WebDriver.I have automated test cases using Selenium.Now i need to automate upload and download of a file.So i have to automate using WebDriver.I had added ...
0
votes
2answers
484 views

sendKeys() in Selenium WebDriver

I am new to Selenium and I am trying to upload a file using WebDriver. Here I am trying to click browse button using dom element as follows: ...
4
votes
2answers
176 views

Selenium Grid, how to utilize WebDriver with ThreadSafeSeleniumSessionStorage.session()

I am working on a project that involves using the Selenium WebDriver and a specific Firefox Profile heavily to find elements and manage the page. For example, ...
0
votes
2answers
81 views

Experiencing high cpu consumption running Selenium-Server-standalone as a windows service

Thank you for viewing my post. I'm running selenium-server-standalone as a windows service utilizing nssm(- the Non-Sucking Service Manager | http://nssm.cc/), utilizing the identical process as ...

1 2 3
15 30 50 per page