Selenium is an open source framework for testing web applications.

learn more… | top users | synonyms

0
votes
1answer
19 views

python selenium continue script ignoring timeout error

How can I get this line elem = WebDriverWait(driver,10).until(EC.visibility_of_element_located((By.CSS_SELECTOR,lastTweetCss))) to move on further in the code if it doesn't find anything after ...
0
votes
1answer
12 views

How to run Junit test methods in parallel?

I need to run Junit test methods in a Class parallelly to save time using Threads. I have added the following code in my pom.xml file after referring to a website. please let me know what the next ...
0
votes
0answers
10 views

Integration of website script with native app

I have a situation like i made regression script on website application,its saving the content as what selenium does on web application .Now , i have native app like iOS .android and i created appium ...
0
votes
0answers
9 views

Maven Java versioning issue

I am trying to setup jenkins and run build using maven, but I am getting an error, because maven is executing build with java source 1.5. I have mentioned the source and target in pom.xml as 1.7 still ...
0
votes
1answer
26 views

How to fail on error status codes in integration tests

We have a bunch of jobs which are basically running different Selenium/nose-backed tests in browser. Now we want any of these jobs should be considered fail if any 404 status has been detected while ...
0
votes
2answers
30 views

Handling browser level authentication using Selenium in Internet Explorer

When I open the application,it prompts for a username and password. How can I handle this scenario using Selenium java in INTERNET EXPLORER?
1
vote
1answer
14 views

Designing database reliant tests for parallel execution

Looking for some best practice here: I'm looking to future proof the selenium tests that I'm building. They'll involve shared elements (products/locations/users), and it seems like a bad pattern to ...
0
votes
2answers
38 views

How to verify PDFs with Selenium web driver

In our application, we upload PDF's into an interface. In this interface, the PDF is just a property of an object in a row that is displayed for the end user. The end user can see if a PDF has been ...
1
vote
5answers
41 views

Type mismatch: cannot convert from List<WebElement> to WebElement in eclipse

My code is as below. when i am executing it its giving me error as: Exception in thread "main" java.lang.Error: Unresolved compilation problem: Type mismatch: cannot convert from ...
0
votes
0answers
16 views

Is Selenium automation possible with ALM integration?

I am trying to Create and Run some internal Core java Program using Selenium which i am trying to implement in QC/HP ALM . I able to launch the ALM trial version but i am unable to find the specific ...
1
vote
1answer
27 views

Selenium: clean way to iterate of list of WebElements who become stale during the iteration

This is my code: foreach(IWebElement close in el.FindElements(By.ClassName("search-choice-close"))) { close.Click(); ...
0
votes
0answers
19 views

AjaxElementLocatorFactory = Implicit or Explicit

I'm looking for solution in page factory to wait. I don't want to use something like Implicit wait, but something like Explicit. I read about AjaxElementLocatorFactory, but I'm not sure that it ...
3
votes
1answer
28 views

Failing the script in Jenkins due to screen size different

Currently I am working on running selenium scripts in Jenkins. Here my issue is my browser window size is 1382, 754 resolution.But in jenkins browser resolution was 1044,784.Due to this my script was ...
0
votes
3answers
66 views

Error seen while automating the Gmail page. Pls help!

While running the following code: package prac.sample; import org.openqa.selenium.*; import org.openqa.selenium.firefox.*; import org.openqa.selenium.WebDriver; import ...
0
votes
3answers
74 views

Click on field in new window

In selenium webdriver, I am trying to click on a field in new window, but I keep getting error as "Timed out after 20 seconds waiting for presence of element located by: By.xpath: ...
3
votes
2answers
60 views

Actions to search item and number of methods

I have questions about clean code. I'm writing a test in Java selenium page factory. I'm a beginner. I have two "actions", input text into search field and click button search. Now the question is, ...
0
votes
1answer
59 views

How should look test in webdriver with scenario

I have to test demo.opencart.com. Here is my scenario: Test scenario: 1 Open browser and go to Democart 2 Change currency to GBP (top left dropdown) 3 Search for “iPod” using text search 4 Add ...
3
votes
3answers
39 views

fetching the text from anchor tag

<a href="https://www.xyz.com/Vertical-Striped-short-Slve-pant-with-Chest-Pocket-dsdjj.html">Vertical-Striped-short-Slve-pant-with-Chest-Pocket-dsdjj <br><b>Select ...
1
vote
6answers
111 views

What languages and frameworks should I learn for selenium automation testing? [closed]

I have been a Non-IT student, but now I want to start my career as a software tester. Are there certification I should get? Which programming languages and frameworks should I learn? Is it necessary ...
0
votes
1answer
41 views

Selenium scripts are failing [closed]

We have selenium scripts (say around 20 scripts). When we run all the 20 scripts some how 3 or 4 scripts going to fail but when I run the same script it is going to pass. I don't understand whether I ...
1
vote
5answers
78 views

How to find the xpath locator for logout button?

We are currently working on a selenium project. Can you guys help me to find the xpath locator for the logout button in the application? Below is a screenshot of the code for the element for which ...
0
votes
3answers
55 views

How can i avoid or fix time outs in Selenium Java?

I'am using Selenium with Standalone Server (V2.48.2) with NetBeans and using Firefox (V44.0). I have tried different ways to get this fixed, but its an error that appears to be random in different ...
4
votes
2answers
471 views

How would you answer this interview question?

In a recent interview I was asked the following question on a white board: What is the name of this format “.//[@id=\'nosession\']/form/div[1]/input”? I literally had no idea how to answer this, ...
3
votes
2answers
89 views

Is there any test result reporting tool for TestNG & Selenium WebDriver with Java?

I am using TestNG and Selenium webdriver via Java. Is there any tool that can help generate detailed test results, for example, suppose I have a test case that fails more often than not, is there a ...
1
vote
1answer
39 views

How to automate the action of highlighting text in PDF/ePub using Selenium or any other tool?

I am trying to automate a web app using Selenium Webdriver. The app involves user opening a book which is rendered in either PDF or ePub format, it allows user to highlight the text which they prefer. ...
3
votes
1answer
117 views

Selenium webDriver: Multiple test cases in a single Class?

I'm using Java and Selenium Webdriver, but there is something that I don't understand. Do I need to create separate classes for each test, or I just need to create one class and in that class have all ...
6
votes
3answers
97 views

Structuring Selenium tests to avoid duplication

I'm refactoring our test suite to take advantage of page object pattern. I'm missing how to structure the actual tests. Lets say that I want to test StackOverflow posting and deleting. Once scenario ...
0
votes
1answer
17 views

Looking for approaches to placing orders on an eCommerce website quickly

I typically write automation using Java/Selenium but placing an order using a typical script takes close to a minute per order on our sites. I'm looking at potentially placing hundreds if not ...
4
votes
0answers
106 views

Using Selenium Webdriver For Firefox Testing

I have been doing research into implementing Selenium Webdriver (currently version 2.49) for testing on Firefox. Currently I am capable of testing Chrome with the framework, but would like to extend ...
1
vote
2answers
64 views

Unable to select dropdown in selenium which is assigned with div tag

so plz help me to resolve this issue.i know how to do dropdown using "select" but in my site it is inside div tag . plz help me to reslove this issue. HTML Snippet : <div ...
0
votes
0answers
42 views

How to organize code in automation framework?

I am trying to figure out most readable way to organize my code (with POM) So far I have split out the following: Pages (methods for the specific pages) 'GoTo' pages (I don't need it but ...
1
vote
1answer
39 views

Chrome Webdriver click function timeout when opening two simultaneous windows

I have an issue using Chrome WebDriver on a Node Webkit Application, when I click an element (it will open two windows at the same time) driver shows a timeout exception on Click function. I tried ...
0
votes
1answer
59 views

Why is CodeCeption acceptance test unable to access web page through webdriver?

I'm trying to build a CodeCeption acceptance test environment for Joomla. To make it easier to reproduce the tests on any developer's machine, I want to provide a Docker based environment. I'm ...
1
vote
2answers
63 views

Selenium java tests intermittently fails on firefox

My selenium test suite always has a few tests failing intermittently on each run on the firefox browser. On the next run the same tests will pass and new tests will fail. It is usually times out after ...
1
vote
1answer
26 views

webdriver.support.select - Select doesn't interact with the element

Hello, I have the following select: <div class="col-xs-12 col-md-6"> <label class="ph_label pointer city"> <span class="l citylbl">City</span> <select class="cities ...
1
vote
2answers
85 views

Porting Selenium test from Firefox driver to HTMLUnit driver

I am trying to convert my selenium test from Firefox browser to HTMLUnit driver. But, when I try to run the HTMLUnit test , it gives me error for XPATH. The Firefox browser test runs absolutely fine. ...
0
votes
1answer
41 views

Can you run selenium scripts on a locked computer and come back to check on it in 2 hrs?

Can you run selenium on a locked computer? I noticed some of my tests fail intermittently on a locked computer. I also tried to increase wait time between clicks and find elements to see if it helps. ...
0
votes
1answer
27 views

Accept SSL certificates in Selenium Opera C#

I am trying to launch an Opera web driver, but whenever I go to the homepage of the site under test, I get certificate errors. I have tried using the CapabilityType.AcceptSslCertificates = true: ...
1
vote
1answer
49 views

How can I bring Chrome browser to focus when running a Selenium test using ChromeDriver on Mac?

When executing a Selenium test with ChromeDriver, I would like to bring the test browser into focus to see the actions taking place. The way I am able to do that now is by manually clicking the ...
2
votes
1answer
52 views

How to handle download dialogs on mobile devices with Appium [closed]

I am using Selenium with Appium and my problem is "when i click on a download button it shows path to save the file." This is a mobile OS control, how do I interact with Mobile Controls? Are there ...
0
votes
0answers
16 views

Help Finding image in Sikuli X in Java

I am having an issue trying to find an image on the screen, I tried doing it in two different ways and it doesn't seem to work for me. I am trying to do this with Appium running on IOS simulator which ...
0
votes
1answer
34 views

getting an error in selenium using java with mySQL: java.sql.SQLException: No suitable driver found

package SeleWeb; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import java.sql.*; public class seldata { public static void main(String[] args) ...
0
votes
2answers
62 views

Where can I find sample/real world test cases? [closed]

I am looking for real world test cases to practice on. I have Googled a lot but I cannot find solid, good practice material. E-commerce, hotel-websites is of big interest.
0
votes
0answers
29 views

can object repository be maintained in excel?

I use a framework where we are maintaining Object Repository in property file. Can it be maintained in excel as we do not want to keep on updating the property file.
3
votes
5answers
292 views

How should automation maintenance be handled? (Selenium)

How can we maintain Selenium scripts when the application changes? Specifically, how do we define and manage automation to keep it up to date with changes in the application being tested?
1
vote
1answer
30 views

What are the debug tools that i can use for GUI Automation on Internet Explorer?

Are there any tools similar to firebug/firepath that i can use to test the locators on the internet explorer browser? I was running an xpath which works in firefox but fails in IE.
1
vote
3answers
57 views

Access webelement in Selenium webdriver

Have to inspect element 8. When click the element 8 on webpage.It should redirects to next page <td class="text_overflow-1"> <u> <a targrt="_parent();" ...
0
votes
1answer
117 views

Are there GUI test tool better than Selenium? [closed]

I have read and heard from many peple that Selenium is used by many people. Do you know if there is a better tool than Selenium in relation to open source? Thanks!
0
votes
0answers
21 views

Data driven framework on Selenium Grid 2

In my project we have decided to implement Selenium Grid setup. We are using a data driven from Excel framework, currently all these spreadsheets are present in a workstation (which will turn to a ...
3
votes
1answer
23 views

Tomcat Server when used amongst Selenium Grid setup

We are using a different style of Automation framework in our project (as per client request) wherein we have designed a JSP page and this page contains links and buttons through which each ...