Selenium is an open source framework for testing web applications.

learn more… | top users | synonyms

0
votes
0answers
25 views

How to check is image is loaded or not in selenium?

I have a html div like this <div if="url" class="img-alt__graphic ng-scope" ng-style="ieCSSFilters" style="background-image: url(www.xxxxxxx.com;size=270x360);"></div> In this div tag ...
0
votes
0answers
15 views

Selenium WebDriver not properly waiting

I am trying to download a file from a website using a webdriver. But my browser is shutting down before it was able to properly export. I inserted a wait() before I call dispose() but it is not ...
0
votes
2answers
29 views

Stress and Load Testing using Selenium-like tool

I have written some tests in Selenium using NodeJs and I am looking for a way to use those tests for stress testing web apps. Is there any tool that combined with selenium can do the trick? What I am ...
2
votes
1answer
44 views

How to send Basic Authentication headers in Selenium?

I'm using webdriver.Firefox and I'm trying to send the following custom header: self.headers = { 'Authorization': 'Basic %s' % b64encode(bytes(self.args.user + ':' + self.args.password, ...
2
votes
2answers
56 views

getTitle() returning current URL instead of page title

I have a scenario like clicking on the images of home page and validating page title. I am facing an issue say I am using the getTitle() function to get a page title to validate but it's returning the ...
2
votes
1answer
41 views

How FluentWait is different from WebDriverWait?

How is the FluentWait is different from WebDriverWait? I am using WebDriverWait having the polling interval set to : 500 miliseconds. Still, WebDriverWait returns after some delay (i.e. 2 - 3 seconds ...
0
votes
0answers
30 views

How to download a attached PDF file in the PDF file using selenium

A PDF file was attached inside the PDF file. Needs to read the content in the attached PDF file. Let me know if you have any solution on this requirement. I am using IE Webdriver, and the code I have ...
1
vote
1answer
30 views

How to click on element only if data exists in excel table?

Hi so currently I'm working with Selenium webdriver in Eclipse.. I'm testing a web app and having data driven from an excel sheet. There is optional information and you can click 'ADD' and then a pop ...
0
votes
1answer
40 views

How to connect node to hub that are in different networks

If I use case when hub and node are on the same network - here is how I do this: launch hub: java -jar selenium-server-standalone-2.45.0.jar -role hub -port 4444 launch node: java -jar ...
0
votes
2answers
51 views

how to crop a image in selenium tool? [on hold]

i am not able to find solution to it. please if anybody know then please reply me i have tried these code but it is not working Point valuex= x.getLocation(); System.out.println(valuex); Point valuey ...
0
votes
1answer
47 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
53 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
55 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
33 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
31 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
16 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
33 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
33 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
28 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
69 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
19 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
20 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
59 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
43 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
31 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
41 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
32 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
31 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
1answer
62 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
33 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
34 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
52 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
76 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
53 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
54 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
88 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
88 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
1answer
27 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
52 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
64 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
47 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
31 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
85 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
69 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
79 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
182 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 ...