Selenium is an open source framework for testing web applications.

learn more… | top users | synonyms

0
votes
2answers
93 views

Executing large number of test cases

I have 120 test cases in my project. All those test cases are running on a live site. Here I configured all these 120 test cases in a single suite (TestNG.xml) file. It's taking 4 to 5 hours to ...
0
votes
2answers
52 views

using @parameter annotation in testng test case throwing exception

@BeforeClass @Parameters("folderName") public void setUp(String folderName) { createLogger(this.getClass().getSimpleName(),folderName); configureDriver(); } @AfterClass public void tearDown() ...
0
votes
1answer
40 views

Rubymine / Cucumber: Tests run fine, but are shown as “Failed to start” in Event Log

I have several Cucumber tests that are running fine (I closely watch them), all pass, and everything works good. But Event Log in Rubymine keeps showing all the tests that pass in this way: Failed to ...
3
votes
1answer
40 views

Protecting credentials in Selenium project

Is there a method and/or best practice for protecting credentials in a Selenium project using Java? The two main ones for my application will be user credentials for logging into the site, and DB ...
1
vote
1answer
89 views

How to run a specific test case from a suite in jenkins

I have 120 test cases and I execute all these test cases through a pom.xml (maven) file in jenkins. Now if I want to execute just one of these 120 test cases, how can I do that? Is there any way to ...
1
vote
1answer
66 views

Firefinder doesn't find element but Firebug or Selenium IDE do

I have a problem with finding web elements in my web application. When I use Selenium IDE everything is ok, the element can be found. In Firebug or Chrome developer tools is ok as well (element is ...
0
votes
1answer
68 views

Select multiple options and selection values will come from Excel

What I am trying to do is select multiple options from this example site while holding CTRL http://www.htmlcodetutorial.com/forms/_SELECT_MULTIPLE.html The multiple selection values would come from ...
4
votes
4answers
69 views

Is there a name for automated tools that work from screenshots like Sikuli or Monkeyrunner with tools like Selenium?

I have a list of GUI testing tools, and I want to separate the tools that are 'based on screenshots' like Sikuli or Monkeyrunner that others that interact directly with the elements of SUT, like ...
1
vote
2answers
80 views

How to set up selenium tests so that if one fails, the others still run?

To give some context I am building a testing system with Selenium, nUnit and Visual Studio in c# that will allow me to test a number of websites one after another. The issue I have is that all of the ...
1
vote
1answer
29 views

Handling the popup ad's in e-commerce website

Currently I am working on a e-commerce website. When I visit the site for first time they are displaying a popup, like discounts or signup etc... while writing my scripts I wrote code for waiting for ...
1
vote
2answers
40 views

How to automate a download popup in browsers other than firefox in linux and Mac?

For automating a download popup in Firefox, we use Firefox Profile and for other browsers I've used AutoIt. Is there any other way to work around it in windows? And coming to the main question, I've ...
3
votes
2answers
66 views

Should one test rely on the output of previous test?

First of all I have read some great answers in the following link: Are your UI automated tests dependent or ordered?. But would like a clearer understanding in terms of dependencies within test data. ...
1
vote
2answers
35 views

-browserTimeout does not seem to change timeout

I am running a selenium server on my local machine and passing in a suite of selenese tests (the browser is being run on a virtual display with Xvfb) DISPLAY=:99 \ java -jar ...
1
vote
1answer
47 views

Automated integration testing spanning multiple services

I am working on a project in which we keep one wiki platform in sync with the content of other. The way we do this is a document edit on 'Wiki A' kicks of a data flow pipeline that transforms data ...
0
votes
1answer
98 views

Exception in thread “main” java.lang.NoClassDefFoundError

I am trying to do this: http://www.softwareishard.com/blog/firebug/automate-page-load-performance-testing-with-firebug-and-selenium/ Below is the screenshot taken from eclipse package ...
0
votes
1answer
43 views

Unable to click on javascript element through selenium driver

I am using given below xpath but my script is not clicking on these element Login_Btn = "(//a[contains(text(),'Login')])[2]"; OR "//div[@id='bd_login']/a" ; ...
0
votes
1answer
36 views

Required parameters but none were supplied error

Can someone help me on how to fix the error and run the script? public class ExcelCapture { public WebDriver driver; String filePath = ...
3
votes
1answer
87 views

Can I execute selenium test cases in a real browser with Jenkins Selenium and Maven

I am working on selenium project with Jenkins + Maven + Selenium + TestNG I am following few questions. Can I execute selenium test cases in Jenkins by launching browsers? Currently it gets ...
1
vote
3answers
265 views

Trouble Installing Selenium IDE in Firefox 44

I am not able to install Selenium IDE in Firefox 44.0.2. I'm installing the Firefox plugin from https://addons.mozilla.org/en-US/firefox/addon/selenium-ide/. It appears to install correctly. I do not ...
-2
votes
4answers
62 views

How to move inside else not to catch? [closed]

i am using selenium with java public void main(String args[]){ try{ if(ele.isDisplayed) { syso("test1"); } else { syso("test2"); } } catch(Exception e){ ...
0
votes
1answer
140 views

What are the limitations of Headless(HtmlUnitDriver) browser testing in selenium?

I was automating the script using headless(HtmlUnitDriver) browser but I wanted to know the limitations of headless(HtmlUnitDriver) browsers for example: Can headless browser deal with IFrames? Can ...
0
votes
1answer
29 views

What is the use of waitForPageLoad() method in Framework when our test scripts don't execute unless the page is loaded by default

public void waitForPageLoad(WebDriver driver){ while(true){ String page_status =(String)((JavascriptExecutor)driver).executeScript("return document.readyState"); ...
1
vote
3answers
52 views

Personal framework project website [duplicate]

I am a selenium C# developer, and have just recently conducted an interview with a company. During this process I was asked a lot of questions about "hypothetical" framework questions, and how I would ...
3
votes
4answers
88 views

Can selenium driver detect which platform it is running in

I need to verify that a certain condition happens on different platforms, e.g. a link of an app for iphone only happens on ios devices, and similarly, a link of an app for android only happens on ...
0
votes
0answers
66 views

How can I shorten the following Xpath

I am restricted to use ID. So that's why I am using Xpath without ID. This is what i am using as xpath and want to shorten it please help me. I have to find value of the following span- <span ...
0
votes
1answer
50 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
34 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
29 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
86 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
83 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
17 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
33 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
85 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
3answers
59 views

Handling A Popup

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: ...
0
votes
1answer
49 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
54 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
71 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
7k views

How to fill CAPTCHA using automation?

How can I automate, 'Enter CAPTCHA' using Selenium Web Driver ?
1
vote
2answers
83 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
127 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
215 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 ...
0
votes
1answer
44 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
62 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
1answer
104 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
25 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
0answers
18 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
50 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
95 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
110 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 ...