Selenium is an open source framework for testing web applications.

learn more… | top users | synonyms

1
vote
2answers
14k views

Selenium: driver.findElement(By.xpath(“xpath”).click(); failing

The command driver.findElement(By.xpath("xpath"). click(); is not working in Web driver. Kindly check the below code written in selenium RC and webdriver. Selenium RC : public void ...
1
vote
1answer
413 views

Alternative to Selenium Grid Console?

Does anyone know of any alternative to Selenium Grid's console? *edit We are thinking about building our own console. What I was asking was, are there any alternatives out there for the default ...
1
vote
1answer
3k views

Unable to find element in selenium

I'm using the following code: if i[1] == "id_text": inst = driver.find_element_by_id(i[2]) #inst.click() for option in inst.find_elements_by_tag_name('option'): if option.text == ...
1
vote
1answer
2k views

How to wait for ajax calls using a selenium command

I'm using the selenium ide to create test cases. Will the "AndWait" commands wait for an ajax operation to complete? Is there a specific command that can help with this? I prefer to use the selenium ...
1
vote
1answer
331 views

Is it possible to group java selenium tests in a larger utility class for reuse?

So say you have a made up flight booking application. I'm speaking on a very high level; because i'm more concerned with the design of these java objects. We're creating tests that have these classes ...
1
vote
1answer
687 views

Parsing xpath results in selenium ide

I'm trying to get a list of all the links that follow a certain rule ( their href is Downloads.aspx?<somestring> ) *Note: I'm using Selenium IDE, the Firefox plugin for this. In order to get ...
1
vote
2answers
976 views

Force selenium to use the portable firefox application

I have installed firefox 14 and has firefox portable version 25.0.1 on the machine, where I run tests for a web site. Due to a limitation in the site I'm testing, I cannot run my tests on firefox 14 ...
1
vote
1answer
409 views

How to automate test the website inside some windows desktop app?

I have this question: I found there are web test automation tools such as selenium, but they are designed for testing website in the browsers such as ie/firefox/google chrome... What if the website ...
1
vote
1answer
3k views

How to update test cases in MS Test Manager based on automated test script results

For a web-application, I am automating my test cases using selenium web driver in java. My test cases are being managed using Microsoft Test Manager. Now, I want to update the test cases in the ...
1
vote
1answer
2k views

How to select Security Certificate From security Dialog

The problem I would like to solve is as follow: go to a website which is protected by client certificate authentication using browser once the security challenge dialog box is shown, select on the ...
1
vote
3answers
284 views

Ideas to implement offline smoke test for downloaded excel files

I run automated smoke tests for my web application, but until now, these tests are not covering offline excel spreadsheets that are downloaded by the user. I'm starting a study to find possible ...
1
vote
1answer
456 views

Need to validate compiled document using C# selenium in VS 2010

I am using selenium, C# at this point I am able to compile word document and then need to save as a pdf on desktop and then validate the links in the downloaded document with original parsed document, ...
1
vote
1answer
861 views

How to start with Selenium and TeamCity integration?

I am basically from Testing and I know QTP Automation, but now my client is asking to do some analysis and start with pilot project as auotmate the teamcity tests using Selenium. But I am really not ...
1
vote
1answer
3k views

How to handle child window in selenium webdriver?

In selenium webdriver, i can switch between from parent window to child window but i cant focus child window.it is not working. Anybody having suggestions to find the solution?
1
vote
1answer
170 views

How to locate cursors randomly in a map?

There is a lot of cursors in the map. Every time you refresh the map you will get another different cursors with different IDs, o I can't use the IDs. I want to click at any cursor, a tooltip should ...
1
vote
2answers
2k views

Selenium, monitor network, captureNetworkTraffic command not available

I need to know if an application is requesting one beacon via an image or XHR request. Manually I test it via the network tab in FireBug or monitoring the proxied requests in other browsers... ...
1
vote
1answer
5k views

Click event in Selenium webdriver is not working [closed]

I tried everything: click, send, etc. Below is my code: WebElement element = ((WrapsDriver) selenium) .getWrappedDriver().findElement(By.xpath(LOGOUT_XPATH)); element.sendKeys(Keys.ENTER); try { ...
1
vote
1answer
406 views

Pretty / GUI formatting for the nosetests.xml xUnit report?

Is there a simple tool that will generate pie charts or otherwise "pretty", graphical output based on the .xml file that nose outputs with the --with-xunit switch? I tried googling around for one but ...
1
vote
0answers
13 views

Selenium - WebElement.FindElement() Scope

Was just reading this question http://stackoverflow.com/questions/26882604/selenium-difference-between-webdriver-findelement-and-webelement-findelement trying to understand the scope of the ...
1
vote
1answer
23 views

Automating web app screenshots and inputs [closed]

Good day, I've been working for some time now on a web app and recently my workload has grown tremendously. I have to take presentable (showing correct info and setup) screenshots for our product and ...
1
vote
1answer
42 views

What's the difference between using Python vs. Ruby for Browser Automation testing? [closed]

I want to automate test cases on web browsers and I love the concept of Python's Salad (mix of Lettuce (BDD) and Splinter (browser automation)). But I've heard that Salad might not be the most ...
1
vote
0answers
56 views

Selenium - sendKeys() not inserting value into textbox

I am not able to validate an international number text box in Selenium. I have tried earlier by name, class and other locators but it is not inserting the value into the textbox. Below is the text ...
1
vote
2answers
47 views

How to test the multiple test cases in a single test case using selenium webdriver

I am in confusion to write the test cases for one of my requirement.I have a signup process it will have 8 steps to complete a signup.How to write a test script for all steps by validating the each ...
1
vote
2answers
46 views

Using boolean to select gender on a form

I am creating a test suite using appium/selenium java and it was suggested that I use a boolean to select the gender on a registration form. The page objects on the gender page are male, female, and ...
1
vote
0answers
42 views

Selenium with Microsoft Edge driver never finishes initialising

I'm using the C# bindings for Selenium and trying to get a simple automated test in Microsoft Edge working. class Program { static void Main(string[] args) { EdgeOptions options = new ...
1
vote
0answers
47 views

How to Allow Firefox Offline Storage using Selenium

I am in the process of creating some BDD tests using Java, Cucumber & Selenium. The problem I am having is the website I am attempting to test has been specifically designed to work with firefox ...
1
vote
1answer
66 views

Automation Java - Android - How to get items from a ListView?

I'm trying to get the items from a ListView so I can compare them with of expected results. The thing is that I can't figure out how to get those Elements. I'm also the developer of the App, so I'm ...
1
vote
3answers
52 views

Same button is on 2 pages,but on one of the page its not clickable by selenium

The button is visible on UI and isdisplayed() is telling its displaying, but only the problem is, selenium is not clicking this button. The same button is placed on 2 pages, on first page its ...
1
vote
0answers
19 views

Not able to select proper time slot in calendar using xpath

I am using union to xpath and created one for day and time. Now, I am able to catch this path but when I used to click on that element using xpath, it's not getting proper time slot selected. My ...
1
vote
1answer
55 views

Failed to connect to Safari driver through Selenium Grid

Getting the following exception when trying to run the selenium tests on Mac- Safari using Selenium Grid. I could see the safari browser on Hub console, but when running the tests getting the ...
1
vote
3answers
160 views

Unable to select text from dropdown - Gmail.com Month Dropdown

Im also facing the same error. Unable to select Birthday, Gender & Location in gmail signup page. I'm using Selenium Webdriver. Please find the below code for birthday. new Select ...
1
vote
0answers
14 views

Include python tests in JS projects

Currently I am responsible for test automation and my company develops applications in Node.js. For web applications, I'm using python and selenium-webdriver. Is there any way to integrate the tests ...
1
vote
0answers
52 views

Accessing Data from Tables

I want to check if my entered information is inserted into the list in the table of the html page but working with tables is a little bit more difficult than a normal list. Could someone help me? My ...
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 ...
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 ...
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.
1
vote
2answers
52 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
1answer
272 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 ...
1
vote
3answers
78 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();" ...
1
vote
1answer
784 views

Can't click a button [Python + Selenium]

I'm writing a program to automate some actions on a website using Python and Selenium and I need to click a button with this code: <button class="button login" data-popup="login">Change ...
1
vote
2answers
442 views

Selenium: Select 2nd item by both class and with certain text?

I am creating some test scripts using Selenium WebDriver in C#. The AUT contains a left menu in which the position/ordering of the links depend upon the 'User Preferences' and a lot of ...
1
vote
0answers
82 views

PDF Automation using URL opened in Selenium, not a new URL

Currently im using Selenium Webdriver for c# and PDFBox to automate the PDF text of a report. Now, using PDFBox, we have the ability to parse a pdf given a URL link, with URL = new URL("link of ...
1
vote
1answer
627 views

Jenkins fails to start Chrome

I am working on Jenkins to run my scripts but I am facing the following issue: Running TestSuite Starting ChromeDriver 2.20.353124 (035346203162d32c80f1dce587c8154a1efa0c3b) on port 7652 Only ...
1
vote
1answer
402 views

How to select from drop-down list in selenium c# by specific attribute value?

<ul class="options"> <li data-raw-value="smt-b1bbdd96-f135-48ae-8744-e920942dd7a3" class="selected" data-sys-status="running">3. LIELA LEGAL SISTĒMA ( EN - LV )</li> I want to ...
1
vote
0answers
318 views

Unable to handle Google Authentication pop up window in robot framework test case

I am having a problem on handling google authentication pop up window in robot framework. The process I want to automate is - When a button( Sign in with google) is clicked , google authentication ...
1
vote
2answers
274 views

How to add HTML/text content of a <div> into an array/list?

I am new to selenium and working with xpath. I am using selenium and java to write automated tests for chat messaging web application. I am looking for a way to take a webElement which contains ...
1
vote
1answer
42 views

How can I move all my seleniumIDE locators to javascript variables (like page objects)?

My locators are all hard-coded into the tests. How can I extract these into variables?