Selenium is an open source framework for testing web applications.

learn more… | top users | synonyms

0
votes
1answer
73 views

The state of the checkbox, which was set in Robot Framework is not stored

I'm new to Robot Framework and Selenium. I can not set a checkbox. There are several settings, which is controlled by the checkbox. I see that it was set by Robot, but the result is not stored. The ...
0
votes
0answers
68 views

How to use selenium.captureNetworkTraffic in Python?

I'm interesting in debugging my browser session and I found that it is possible to save http requests with their answers to a file using captureNetworkTraffic in json format. But I can't find any doc ...
0
votes
0answers
35 views

How to Customize the TestNG Report (Selenium Java)

How to customize the TestNG report, the report shows execution time in Milliseconds, but I need to change the millisecond into seconds. Please help me in this. Thanks!!
0
votes
2answers
117 views

How to send keys in an Ajax dropdown?

I already got the Xpath, but when I'm trying send keys there is error : Error Traceback (most recent call last): File "C:\Users\Admin\PycharmProjects\Belajar1\Register.py", line 23, in ...
0
votes
0answers
138 views

How to enter text in a javascript field using python selenium

I have a address input text field on website which is basically auto populated by ajax request. This is not a drop down field through which you can select some value, neither you can input your own ...
0
votes
0answers
27 views

How to set Selenium Webdriver using Internet Explorer Browser to not share sessions during multi threaded testing

Im trying to test against Internet Explorer 11 browser multi threaded using selenium webdriver with IEDriverServer.exe. I can now launch multi threaded IE browsers and interact with it but it seems ...
0
votes
0answers
36 views

Testing Web based video conferencing?

I would like to know about automated testing tools and procedures for testing web based video conferencing. If you know about the tools for testing video calling in pc browsers. Googled a lot but no ...
0
votes
3answers
104 views

Unable to click on html link using Selenium WebDriver

I have an requirement of clicking on a link . I am using click() method to click on link by providing the locators and etc.., after click no action was taken place. When I see the html code anchor tag ...
0
votes
4answers
72 views

Handling Popup using selenium - how to switch back on parent window from child?

So I have to upload a document, and the popup for file explorer loads and my code can find the document I need, but how do I then switch back to my original browser? Here is the code: driver....
0
votes
1answer
61 views

Test Scenario for cookies in selenium webdriver

I want to work with cookies in my project, I don't know what will be the Test Scenario and Test Cases for it. Please help.
0
votes
2answers
81 views

Fluent Wait not working as expected

I observed fluent wait not identifying an element even though page is loaded completely and element is visible on the screen. For an example, I have an application with say page A and page B. On ...
1
vote
1answer
79 views

Automation - Testing the Contents in EMail

In my application I am supposed to test/fetch the data and contents of the E-Mail received after triggering the Schedule. How can I automate this scenario using Selenium web-driver ?
17
votes
10answers
8k views

How to fill CAPTCHA using automation?

How can I automate, 'Enter CAPTCHA' using Selenium Web Driver ?
1
vote
2answers
149 views

CSS locator for body text between span tags in selenium

How do I build a CSS locator for the "Add Photos/Video" text between the span tags. I need to perform a click event on this element.
0
votes
3answers
205 views

How to run multiple test cases without running before and after class again and again

I want to know how run multiple files without running the before class() again and again. E.g.: Consider i am writing test case for GMail login.java : Which contains complete testing of the login ...
0
votes
2answers
445 views

TestNG.java.lang.NullPointerException running second @Test

It runs first test, but then I'm getting null pointer exception when running Edit Profile test. Not sure why. I globally declared public driver. Please help. Thanks package test; import java.util....
0
votes
1answer
51 views

How to handle a native OS (Ubuntu) file upload window in selenium in java [duplicate]

How to handle a native OS (Ubuntu) file upload window in selenium in java. Can Auto-It tool be used for this? If not please let me know the tool name Please anyone help me on this... thanks in advance
0
votes
1answer
83 views

Python+Selenium: Continue script execution by 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
2answers
241 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
27 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 for iOS and Android. I created ...
0
votes
2answers
28 views

Maven Java versioning issue [closed]

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
63 views

How to fail a test based 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 what we want is that, any of these jobs should be considered as failed if any 404 status is ...
0
votes
3answers
128 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
26 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
125 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
780 views

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

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 List<WebElement&...
0
votes
0answers
106 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
54 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(); TestHelper....
0
votes
1answer
90 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 ...
4
votes
1answer
215 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
252 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 org.openqa.selenium.WebElement;...
0
votes
3answers
101 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: .//*[@id='...
3
votes
1answer
78 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, ...
-1
votes
2answers
112 views

How should look test in webdriver with different Test 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
53 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 Size:</b>&...
1
vote
6answers
182 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
50 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
6answers
274 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 I'...
0
votes
3answers
112 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 ...
5
votes
3answers
624 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
258 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
91 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. ...
4
votes
1answer
661 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
165 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
66 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 ...
5
votes
1answer
1k 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
115 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 class="...
-1
votes
1answer
69 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
96 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
272 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 ...