Selenium is an open source framework for testing web applications.

learn more… | top users | synonyms

0
votes
1answer
19 views

change the title of a webpage in JUnit test with Selenium Web Driver

I want to write a Automated JUnit test script with Selenium Web Driver to load a Wikipedia page and then change the title of the page loaded. import java.util.regex.Pattern; import ...
1
vote
2answers
21 views

How to add @parameter annotation for TestNG in Eclipse

I'm trying to do parameterization for TestNG in Eclipse but the annotation @parameter is not being shown. How to add @parameter annotation for TestNG in eclipse?
1
vote
2answers
66 views

switching between tabs in a browser

I am trying to click on a download link which will open in a new tab in pdf format.I want to do some actions on newly open tab. I am able to switch to newly open tab but when I am trying to do any ...
0
votes
1answer
34 views

Handle Firefox native dialog windows with Selenium IDE

I'm new using Selenium IDE (and as a QA). I'm testing my Web application on Firefox and I have an export button that downloads an Excel file. My problem is how to handle the window dialog native of ...
0
votes
0answers
32 views

expecting a popup upon closing the browser

I am expecting a pop-up upon closing the browser. For example, when you are shopping and you have items in cart and in the middle of the checkout process, you wanted to close the tab/browser, so the ...
0
votes
2answers
52 views

how to launch Chrome using remote webdriver

I have set up 2 PCs as selenium hub & node.Now, I am trying to browse a URL in that node, from a console app that runs in the hub. But there is an error when initialising the browser.Both PCs run ...
0
votes
1answer
28 views

Selenium hangs for modals in firefox browser for very long time

After opening the modal window or modal overlay , performing any click operation within the modal takes very long time. It doesn't throw any exception neither does the execution stops. ...
2
votes
4answers
85 views

What set of toolkits and frameworks should I learn to be considered as a good tester

I am very new at testing, so my apologies in advance if my question is very primary. I started my job as a Tester 4 months ago. I am using Java, Selenium and Sikuli to write tests for applications. I ...
0
votes
1answer
28 views

Dataproviders and Asserts

When using DataProviders, on TestNG, my test method has asserts that will fail since the data passed in navigates to a different url. Is there a way to work around this, i.e. a way for the data to ...
0
votes
2answers
47 views

For successful build how many test cycles are required

In one interview they asked me about the agile testing. "How often testing cycle happens in your project after successful build?" I'm new to agile methodology in testing. Please let me know how to ...
0
votes
2answers
39 views

Running application doesn't execute any code but opens a new window

I am trying a build an automated testing framework, using Selenium WebDriver to simply login a website. However, when I run the following code, the only thing that happens is a new internet explorer ...
0
votes
2answers
52 views

Where to store XPath variables

Where should I store XPath variables - in a class or in an external file? What are the (dis)advantages of these approaches?
0
votes
0answers
14 views

Integration of selenium and HPQC

What are the options available for integrating Selenium web driver .net framework with HP QC. I know API is available from QC but I am looking for existing frameworks or tools that I can use for same. ...
0
votes
1answer
33 views

Want to get value from the below code snippet through Web Driver

<script> jQuery(function() {jQuery("#chart").kendoChart({"chartArea":{"background":"#f7f7f7"} "title":{"position":"top"} "legend":{"visible":false} "series":[{"name":"Consumption" ...
0
votes
0answers
18 views

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

Whenever I am trying to use a list element, this error is showing Type mismatch: cannot convert from WebElement to List<WebElement> in appium. Please help! List ...
0
votes
1answer
65 views

What exactly should be in a page object?

I'm having a bit of a hard time designing my page object. What sort of methods should be in there? Should I put wrapper methods for driver functionalities (e.g driver.findElement(...)) or shall I ...
0
votes
1answer
52 views

Verify if popup appears using Selenium

I want to verify if a pop-up appears, so I went to inspect element of the link and I tried to match the ownerID from the element to that of the url that pops-up but the issue that I have is that when ...
5
votes
2answers
71 views

How to avoid flakey E2E selenium tests?

I'm under the impression that most of the E2E selenium tests are flakey. A major reason seems to be timing issues. Another one is that they often test against servers that are not controlled by the ...
1
vote
2answers
27 views

Existence of an element

I have seen a couple of ways to test if an element exists. One way: private boolean existsElement(String id) { try { driver.findElement(By.id(id)); } catch (NoSuchElementException e) ...
0
votes
1answer
41 views

Retrieving xpath from stored webelement variable

I am using page object model. Here is xpath that I have written for Heading of the page and stored it in the heading webelement variable. @FindBy( xpath = "//div[@class='page-title ...
2
votes
2answers
51 views

Using Selenium to test SOLR queries

I have a general question, which pretty much is, How do I test SOLR queries using Selenium? Suppose we have a SOLR query JSON file, which pretty much looks like a huge pile of text containing values ...
0
votes
0answers
33 views

Submit button not working in Selenium webdriver

When I launch ChromeDriver or IEDriver and click the submit button (manually and automatically), it does not send the inputs. It works outside of webdriver though, I can click the submit button and ...
1
vote
2answers
51 views

Selenium and it's ability to do integration testing

Previously I have done some work for a client and a conversation went much like this: Client: "I want to test my product, that is web based. What would you recommend?" Me: "Selenium is a ...
0
votes
2answers
48 views

Selenium - Best practice, mapping an object to HTML form?

I was wondering if anyone uses a design pattern where there is an object (similar to a page object) which has fields for each input in an HTML form. I guess the fields would be nullable and then the ...
-2
votes
3answers
66 views

How do I get elements from drop down menu in Selenium [closed]

Please suggest to get the elements present in drop down menu using Selenium WebDriver. Thank you..
0
votes
0answers
15 views

Where can we see @Test(description=“test description”) in report?

I am unable to see the my test description in report. I use this annotation for it: @Test(description="TestCase Description") Where can I see the above description of my test case in the final ...
6
votes
5answers
939 views

I want to learn Selenium but not sure about the language I need to learn for automation

Java or Javascript? or maybe another language? Please help me choose the programming language I should learn for Selenium automation and its benefit over other. Any pro's and con's?
0
votes
2answers
88 views

Setting TestNG test case result as PASS/FAIL as per my requirement

I have one requirement, I need to read the test data from the excel sheet and after the test case execution I need to write in to excel sheet as PASS/Fail/ Skip. I have used TestNG framework,Below ...
1
vote
1answer
26 views

Installing ddt on Ubuntu with Python 3

I am working on a Ubuntu system which has both Python 2.7 and Python 3.4 installed. I was trying to install the ddt library for creating data driven test cases. However when I try installing using ...
0
votes
3answers
62 views

How to find element with dynamic names in selenium webdriver

My code: <input type="text" placeholder="Label" class="other[] form-control" name="projectsurvey[1438590696705][choosekey][1438590696705][]" value=""> Where name ...
-3
votes
2answers
147 views

Where can I download Selenium-2.47 or Selenium-2.47 JavaDoc Jar file [closed]

Where can I download Selenium-2.47 or Selenium-2.47 JavaDoc Jar file?
2
votes
6answers
189 views

Test management tool for Selenium webdriver?

My company recently began migrating from using QTP to Selenium webdriver. We are looking for a test management tool similar to Quality Center (what is QTP primaly for) that would work well with ...
2
votes
3answers
77 views

Advanced selenium webdriver tutorial/course [duplicate]

Is there an online advanced/intermediate tutorial on Selenium Webdriver. Preferably using Java. I've searched a lot but could not find such a course/tutorial. Almost 99% are very basic, and I would ...
1
vote
3answers
45 views

Testing automation - identify a button using contains

I need to make a test to login on 5 different sites. The issue is that some of them have a login button, and the others display directly the login form, to fill the username and password. The only ...
2
votes
7answers
185 views

Website with complex functionalities?

I'm tired of test automation because I don't feel challenged anymore. 99% of all automation I work with is straight forward, with click and type and no heavy logic. Any tips on websites with very ...
2
votes
2answers
142 views

How to find real world Selenium projects

Where can I find sample or real Selenium projects. All the material I can find on github and on internet are basic, and never intermediate or advanced. How does a real Selenium project look in real ...
0
votes
3answers
35 views

Page Factory @FindBy

I am currently learning page object model (POM) and I am trying to access a specific web element using @FindBy but I am not sure how to correctly write the syntax for my element into @FindBy? What I ...
0
votes
0answers
20 views

Search Dom for multiple elements using explicitwait

Hi I'm using selenium webdriver and when I click to a certain website I want the webdriver to return a list of elements with similar classes, in this case a list of elements that, once clicked/toggled ...
0
votes
1answer
118 views

Selenium Web Driver Drop Down List Testing With Div tag in java

I am new to automated testing with Selenium Web Driver I am not able to work out how to test drop down lists without using the select command. I tried using xpath, select by id, class name, css ...
0
votes
4answers
67 views

How can I automate a test scenario of account expiry or account at different time transition?

I have an application where trial credentials expires after a week and if user tries to login after that, they see only few things enabled.This is one of the example. Similarly, verifying expiry of ...
2
votes
1answer
36 views

Cannot capture the warning message: NoAlertException

When I try to capture "warning message", the NoAlertException is being thrown. For example I enter a user name and wrong password and click on "submit" button; now a message will be displayed saying ...
1
vote
1answer
201 views

send testng report(emailable-report.html) file through mail after executing all test cases

I am trying to send an email after executing the test cases with an attachment of testng generated emailable-report.html file ,But I am resulting in error. please find the stack trace here and do ...
0
votes
0answers
47 views

Things to consider when starting project with Cucumber and Page Object Pattern?

I'm trying to build a new framework based on Cucumber and Page Object Pattern. Could you please advice me what\'s approach based on your experience before doing automation project like: – What's ...
0
votes
1answer
56 views

how to proceed after clicking a link to new page in selnium in python

I am clicking a link which takes me to new page, but I don't know how to proceed after that. When I try to find an element by id in the next page it gives me error: ...
0
votes
2answers
33 views

How to click a checkbox with Selenium Python without an id? [duplicate]

How do I click a checkbox with Selenium Python, if I don't have any id which defines the checkbox?
-2
votes
1answer
50 views

How to specify an existing database for django to use?

I think by default Django will create a new and empty test database to run the test cases. Is it possible to configure Django to use an existing database instead of creating a new one? === EDIT: The ...
0
votes
2answers
51 views

Check if dynamic objects are loaded with Selenium

I'm having a problem with Selenium2 using Firefox version 39.0 and Firefox webdriver while testing a page based on Apache MyFaces Trinidad 1.0.6. When I imitate press on CheckBox, TextBox becomes ...
0
votes
0answers
54 views

Selenium Grid2 - IOException thrown while closing Closeable.

I am executing my Selenium tests against a Grid server, hosted on a different machine. My grid invocation is (bat file): cd c:\ start java -jar c:\selenium-server-standalone-2.46.0.jar -role hub ...
0
votes
2answers
65 views

Selenium IDE - Captured screen shot comparision

I have two images - one is a screenshot of my application; the other is a reference image. How can I compare the two of them to determine if they are the same?
0
votes
2answers
51 views

Verify two elements exist next to each other on a page

I'm trying to verify that an element exists on a page next to another element. I'm using Selenium Webdriver with Python bindings, but can't figure out how to do this...i'm a Selenium/Python noob BTW. ...