Selenium is an open source framework for testing web applications.

learn more… | top users | synonyms

0
votes
1answer
37 views

Should Automated Test rely on each other or be kept seperate?

Currently, I am in charge of developing a blackbox automated testing framework using C# and Selenium web driver and using this framework to automate our current manual regression suite. The system ...
0
votes
1answer
24 views

Is it possible to access the css class using webdriver

I want to get the background image url which is defined in a css class . Is it possible to do by using selenium webdriver Example : Sample Text with Logo Now I want to achevie the logo url but that ...
0
votes
1answer
54 views

Not able to execute 700 Test Cases on Firefox and Chrome

I created page object model framework using Selenium Web Driver,TestNG and ANT. Problem: Single Test case is executed successfully but while executing them together some test cases are failed. ...
2
votes
4answers
59 views

Selenium with multiple languages gives any additional features

I am new to Automation Testing. By googling about Selenium I gained a some knowledge on Selenium. But I have small doubt i.e., Selenium will support the multiple languages like Javascript with ...
-1
votes
0answers
24 views

How to add arrays for IList<IWebElement> to write excel

Iam using this code (someone suggested me to use this) for writing excel, but it is also slow, pls chk this and suggest me how to improve speed of writing, sumone told me to use 2D arrays, but m not ...
1
vote
3answers
88 views

How to validate xpaths in selenium over scripts

I am new to Selenium. I heard that in real time we will not use xpaths generated by tools..rather we will write our own. So i decided to learn writing xpaths. Can u please suggest how to practice ...
0
votes
1answer
15 views

Cucumber not finding @Findby annotations

Im trying to set up cucumber over my page object. I currently have as my login page object: @FindBy (id = cF.username) public WebElement username; @FindBy (id = cF.password) ...
0
votes
0answers
23 views

Selenium Webdriver : Selection is happening twice

I want to select only Manage the customers and Projects . But did not getting , whats going wrong with below code. It selects both Manage the customers and Projects and Manage Tasks My code: ...
1
vote
1answer
28 views

click on the button/link by scroll to the element

I am searching with a keyword "Mobiles" in search box it given the 450 results now i want verify that whether it is displayed 450 products not . My problem is per page we are displaying the 30 ...
0
votes
1answer
28 views

C# Selenium Webdriver “The path is not of a legal form.”

Running firefox portable (witch i know used to work). Is now producing an error "The path is not of a legal form." when trying to load profile. var binary = new ...
0
votes
2answers
33 views

Unable to run selenium webdriver script in IE11

I have IE 11 browser on Windows 8 Im trying to automate a simple search but i get an exception. (The script works in Firefox) I made regedit changes according to instructions given in ...
0
votes
1answer
35 views

Efficent way of checking if Element is Not Present

I currently use TestNG's assertFalse to make sure a particular element is Not shown when not logged in on a site. eg assertFalse(isElementPresent(PageElements.PDFLinkText),"PDF link present when not ...
0
votes
2answers
30 views

cucumber java.lang.IllegalArgumentException: Not a file or directory:

I'm new to cucumber. I have created a cucumber project but cannot seem to run the project. Every time I do, I get an error: java.lang.IllegalArgumentException: Not a file or directory: Here is how my ...
1
vote
1answer
57 views

Handle the File Upload dialog in Protractor for IE11

I know the default answer to handling explorer.exe is to use AutoIT, but AutoIT utilizes Java Runtime to use the exported .exe to upload the file and close the dialog. My tests are all in Protractor ...
0
votes
1answer
56 views

how can i switch to the new instance of browser in python selenium webdriver [duplicate]

i am using selenium webdriver with python, i am not able to find a way in python by which i can switch the webdriver to a new browser. My web application have multiple links and buttons Clicking on ...
0
votes
1answer
21 views

Blank screenshot with WebDriver

Im not sure why, but ever time my screenshot is executed, the images are saved as blank. heres the code: public void screenshotOnError() throws IOException { WebDriver driver = new ...
0
votes
4answers
90 views

How to determine whether element is clickable or not? [closed]

My Question is How to check whether the element is clickable or not ?.Is there any method to chat that like isElementVisible() or IsElementPresent() and etc ... Please let me know if one is having a ...
0
votes
1answer
20 views

Getting NPE on screencapture with an error

I am currently setting up PageObject with PageFactory Automation tests. I currently have a screenCapture.java and I try to call the method within the screenCapture when there's an error. Here is the ...
0
votes
1answer
27 views

Ant compile failed, packages do not exist

I'm trying to compile my maven test project in intellij and everytime i compile, i get this error: Buildfile: /Users/username/Desktop/workFiles/maven/MavenProject/build.xml setClassPath: init: ...
1
vote
3answers
100 views

Is there any way to continue selenium web driver script after assert fails?

I have some script which is written with selenium webdriver. Actually, I have put some assert statement in between script. When an assert statement fails my script stops execution. Is there any way ...
0
votes
0answers
22 views

unable to get testng report one by one both report is coming simultanously

I have two testng.xml file. I did entry for these two testng.xml file in pom.xml like that <suiteXmlFiles> ...
2
votes
2answers
82 views

How to stop running selenium tests AFTER webdriver.quit()?

I have made a Windows Forms app to host my GUI for running selenium tests. When the user presses the "run test" button, it launches an instance of chromedriver and runs the selected selenium test. ...
1
vote
2answers
85 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 ...
1
vote
2answers
52 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
3answers
74 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
169 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
80 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
66 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
36 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
48 views

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

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
66 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
1answer
81 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
65 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
65 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
52 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
19 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
38 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
62 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
35 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
83 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
23 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
33 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
33 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
88 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
59 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
44 views

How to select category from Ebay dropdown list? [duplicate]

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
47 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
0answers
18 views

Why does Codeception / Selenium give “UnknownServerException”?

I've recently had some trouble getting automatic testing working on a new machine. I'm using Codeception and Selenium, and everything worked fine on my old Windows 8 machine (I'm now on Ubuntu). My ...
0
votes
1answer
42 views

Access WebElement in selenium testng [closed]

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
32 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 ...