Selenium is an open source framework for testing web applications.

learn more… | top users | synonyms

0
votes
1answer
28 views

Python selenium - how can I loop a function to make 100 Copy accounts using different emails

How can I loop a different string into the email field, or a variable without actually having to make a list that consist of 100 different emails. For example is there a way i can send money@qa.test ...
0
votes
2answers
44 views

how to iterate over a collection of items in selenium webdriver

I have a collection of media item on a web page and all media items have the same class. The elements do not have IDs. I do not want use XPath selectors. When I use class name, it will pick only ...
2
votes
2answers
50 views

How do I copy substring to array of strings

WebElement ELR = driver.findElement(By.id("trades-list")); List<WebElement> list = driver.findElements( By.xpath("//*[contains(@id,'trade-summary-92')]") ); String[] tradeId = null; for(int ...
0
votes
1answer
29 views

Selenium webdriver with python - cannot find dynamic content

I'm new to Selenium and have searched for a solution for this, but cannot find one. I am trying to drill down into a nav containing a collapsable directory tree. The folder nodes' content starts as ...
0
votes
0answers
27 views

How to run specflow selenium tests in parallel

I am working on getting my tests parallelized and running in Selenium grid. I wrote some basic specflow tests in C# using NUnit as the test provider. I see the tests in solution explorer, but when I ...
0
votes
0answers
15 views

The unstable elements crawled with selenium using python

When I used my script to crawl "fortune.com/fortune500", I crawled the ranks and companies' names in top500 filter-list part. I even forced the wait time after click the option-value on the list ...
0
votes
1answer
25 views

Max no.of records can we test in selenium by using data driven framework

I have one scenario say example In shoppong cart web application , in the ceckout page while selecting the address,I have two drop downs which are states and city. we needd to select the state and ...
0
votes
1answer
29 views

How to get data-href instead of href with selenium in python?

I have currently a python code that should grab a link from google. However, google uses a somewhat different method to linking. how could I grab the data-href instead of just href. this is the ...
0
votes
0answers
25 views

Web driver gets blocked after getting a second level popup (popup inside another popup)

I'm facing an issue when application I'm testing is opening a second level popup (I mean, a popup that rises another popup). I'm using Selenium for Java, version 2.42.2, with IE Driver. My code ...
2
votes
3answers
53 views

The best time to run acceptance-tests with Cucumber/selenium?

I want to know, which is the best way to run automated and acceptance tests? Because now I have two environments, which are develop and qa, but I don't know if the better way to run these tests is ...
1
vote
1answer
14 views

Problem with switching windows in Selenium WD

I hope this day finds you well. I'm working on an automation suite and I've run into an annoying problem when it comes to switching windows. I have a script which clicks a button which opens in a ...
1
vote
0answers
17 views

Do not show browser and OS in Selenium console output

I am running Selenium tests (with Protractor) on several browser at the same time to speed up the testing. Jenkins starts the tests and receives the output in a console. To make things more readable ...
0
votes
1answer
28 views

Locating button element in modal and/or new window

I am new in using selenium web driver. Can you help me which Element should I use? Here is the code. <a class="btn btn-sm blue" data-toggle="dropdown"> <i class="fa fa-gear"></i> ...
1
vote
1answer
42 views

Selenium Webdriver: Firefox: 'Cannot press more then one button or an already pressed button'

I'm really struggling to automate some drag and drop functionality in a web app. All I need to do is click a link on a top menu bar, hold down on it and select the first menu option. It works fine ...
1
vote
2answers
40 views

Selenium webdriver: detecting element color

In registration form address field if it is empty application shows message in red color. How I can capture this?
0
votes
2answers
25 views

How to select category from Ebay dropdown list?

Hi I'm learning automation testing using Eclipse, Selenium Webdriver, and Java. I'm practicing. I'm trying to select the label 'Consumer Electronics' from the Ebay dropdown menu and search only in ...
-3
votes
1answer
37 views

Selenium - what is the CSS for the following Xpath [closed]

I have this xpath generated from firebug but I need to use a CSS selector in my code. Just take the xpath as the code. So my code has 7 div tags where 7 div tag has 2 div tag and then <a class="btn ...
0
votes
1answer
29 views

Access WebElement in selenium testng

having code like this, with WebElement inside of class @Test public void testTable() { WebElement simpleTable = driver.findElement(By.id("items")); simpleTable.click(); } how ...
0
votes
0answers
30 views

Please help me to automate the application through selenium webdriver [duplicate]

Please help me to automate the below scenario through selenium webdriver In Application values are stored in the web table. STID STNAME AGE 1 Sachin 24 2 Kumar 25 and similarly in ...
0
votes
0answers
32 views

How to locate dynamically generated element in the form? [on hold]

I have a form called "Add stock". After submitting it an id is generated for that particular stock. I want to locate a specific stock on page (stock list). For every action this id is appended i.e (a ...
0
votes
1answer
54 views

How to validate maximum character check in webdriver/java

I want to validate the maximum character limit of the text field in webdriver/java
0
votes
1answer
29 views

Finding Element on a webapplication built using frames

Im new to Java and selenium webdriver. I am currently writing a a script to be able to verify a contact has been added to a contact list from a form. The workflow is: The menu of our application is ...
0
votes
1answer
27 views

Getting and logging the selenium version used in a groovy project

I'm using Selenium in my Groovy application as a Maven dependency. Now I'm looking for a way to log the used Selenium Version to the console. I tried this: BuildInfo info = new BuildInfo(); def ...
0
votes
1answer
32 views

is_displayed with python and web driver

So when my test pass it will show the "yeah" word in the end, however when it fails , it will only show and exception NoSuchelement and the word "Failed" will not show up anywhere. its like else ...
0
votes
3answers
41 views

Finding grandparent of an element using xpath in selenium

I want to click the parent of an element if the text within the child matches a certain string. I am using contains to find the text and :xpath,"../../" to find the parent. Here is ruby code: ...
1
vote
1answer
69 views

Is it a bad practice to use implicit wait in Selenium Webdriver? Should one use only explicit wait?

I was reading up on implicit and explicit waits and found the following two statements: Implicit wait is not considered a good practice because different browsers have different loading times and ...
0
votes
2answers
50 views

How to do performance testing of dynamic website?

I want to check a weather data is rendered in a page or not dynamically when page is loaded in html.Also wanted to know weather data that has appended dynamically is valid or not.Wanted to know how ...
1
vote
2answers
51 views

Does Selenium depend on internet speed

I have a small question regarding selenium automation. I am using selenium automation for one website(live). Does its performance depend on internet speed?
3
votes
1answer
76 views

Free/Sample Selenium test suites (code) for Open Source projects

I am a student and for learning purpose I am looking for following: Open source projects who have a ready-made selenium test-suite, free for others to use can be any sort of web application, in any ...
0
votes
6answers
80 views

Which can be better to work with Selenium WebDriver - Java or Python? [closed]

I have start learning Selenium WebDriver, but i am confused between Java and Python. Which language should i choose? I do have basic ideas of Core Java but haven't wrote a single piece of code with ...
0
votes
0answers
32 views

Button is not able to click in selenium webdriverjs [on hold]

There is a list of items. In that only some of the items will have the button . On clicking of a button it will open a new tab and performs some operation. Now my problem is when I looping the list of ...
0
votes
1answer
26 views

page elements are not visible after the page completes its loading

I am working on webdriverjs + Nodejs for selenium automation for one of the project.I am facing an Issue with login page ,when the home page loads successfully after clicking on login link,login page ...
1
vote
1answer
45 views

How to send Keyboard Shortcuts to browser using Selenium and Nodejs

I am trying to create a test script in Node.JS using selenium webdriver and in case I need to send keyboard shortcuts to the driver. I tried finding the //body element and sending them but only ...
0
votes
1answer
57 views

Help with else if statement Webdriver Selenium

I have this code below which seems to not go to the else if statement. It runs the first part but never seems to go to part 2, if element 1 is already selected. Thanks if ...
0
votes
1answer
43 views

Help finding child class with cssSelector syntax

How can I find this element by css this is what I have so far. driver.findElement(By.cssSelector(".simplecolorpicker > span[title*=#ff8081]")).click(); Here is the image of the html:
0
votes
1answer
27 views

How to change the Text of a IWebElement of Selenium in C#

The Title pretty much explains everything. I'm searching for a way to change let's say <h1 id="title">Title<h1> to <h1 id="title">Nothing<h1> I'm kind of desperate since ...
0
votes
0answers
72 views

TestNG with Selenium Data and Keyword Driven Framework

I am new to TestNG. I'm using Hybrid Framework For Automation Testing, it's Hybrid Architecture based, in which Keyword(Java Methood name) and data is provided in Excel sheet, and based on that ...
2
votes
1answer
63 views

Error: cannot find symbol in XSLT + TestNG Report

When I followed this link LINK to generate XSLT Report Using testng and to send email reports getting error message (Ex: package org.openqa.seleni um does not exist, etc...0). Please suggest me. ...
0
votes
0answers
7 views

Is any body aware of any example to generate html report in mocha framework

If any one knows any example for generating the html report in mocha framework Please share it .I have done googing and tried a lot but I am not successsed. So please if any one having share it
3
votes
4answers
86 views

What to do when waiting for an element to appear isn't enough?

I am writing selenium tests, and following the convention of using Webdriver Waits to have the webdriver poll for an object before it tries to interact with it. I am frequently finding my tests are ...
-1
votes
3answers
74 views

Selenium code for login popup window page

Will anyone please provide how to write selenium testing code for login popup window for example like in paytm site. When click on login button, it opens a popup window. In that we have to write code ...
0
votes
1answer
143 views

How to generate a report for test case in selenium webdriver using javascript

I am working on selenium webdriverjs , Now I want to know about reporting tools upto now I am not using any reporting tools . Now I am decided to use reporting tool , Please suggest me best reporting ...
0
votes
1answer
137 views

PhantomJS 2.0 + PHPUnit + Selenium: anyone got it working?

I'd like to replace Firefox with PhantomJS for our PHPUnit-run Selenium tests. However, I haven't got a clue how to start. When we're using Firefox, something like this is in our code: ...
-2
votes
2answers
31 views

selenium webdriver getting error as with implicitlyWait was undefined

package mypackage; import java.util.List; import java.util.concurrent.TimeUnit; import org.openqa.selenium.*; import org.openqa.selenium.firefox.FirefoxDriver; import ...
0
votes
3answers
59 views

After scrolling the page, xpath of a element is not present

I have requirement that needs to check a div on home page that contains sub images. I am trying like this My Sample Code : module.exports.openurl('www.google.com', "Online Shopping | Buy Phones, ...
5
votes
3answers
171 views

Test Automation Engineer, no record-playback?

I want to become a test automation engineer in the future. The thing that is concerning me is this: I have always thought that test automation is using record-playback to test different application. ...
-2
votes
1answer
123 views

Selenium Webdriver Unable to locate element error - {“method”:“id”,“selector”:“log”}

I am trying to execute the code but i am getting following error: "Exception in thread "main" org.openqa.selenium.NoSuchElementException: Unable to locate element: ...
-1
votes
1answer
62 views

Selenium Cannot locate element

I am working on automation, while automating a form with number of drop-down's. The problem with me is, when run the code in maximize mode of window it gives me an Error: ...
0
votes
0answers
139 views

Selendroid: Unable to launch selendroid.shows following error

I have tried to start selenium using following code to relevant path on cmd prompt: java -jar selendroid-standalone-0.14.0-with-dependencies.jar -app selendroid-test-app-0.14.0.apk but i am ...
2
votes
1answer
125 views

Web browser (in)compatibility with Selenium WebDriver

Very often, when my local or remote instance of Firefox is automatically updated, it stops working with the most recent version of Selenium WebDriver. They simply become incompatible until next ...