Questions tagged [selenium-webdriver]
Used for questions about using Selenium WebDriver, a browser automation framework frequently used to automate testing in a browser.
573
questions with no upvoted or accepted answers
1
vote
0
answers
599
views
Downloading PDF files using PDF Box
I have a page with 3 links, all PDF files. They all refer to the same directory but to different files in that directory, all of which are pdf files (ending in .pdf). Manually clicking on any of ...
1
vote
0
answers
58
views
How to get the name of all the test methods and functions in a test?
I am developing a framework where I need to do the reporting of my tests. I have to do this from scratch with out using junit or testng. I need to create a custom annotation @Testing and write a test ...
1
vote
0
answers
445
views
File drag and drop works in Firefox but not in Internet Explorer
I am trying drag and drop from outside frame to inside frame. Draggable element is located outside iframe, but container which is located in iframe. I have already posted my problem here.
https://...
1
vote
0
answers
680
views
How to perform drag and drop on an Image Map Area element?
I am trying to automate an HTML webpage which requires me to drag an image map area element by 50 pixels to the right and then release the click.
I tried various techniques, like using an Actions ...
1
vote
0
answers
1k
views
Tools for Data Driven and Keyword driven tests in selenium with python?
I am new to selenium and python, I was watching some videos on data driven and keyword driven tests, the instructor was using TestNG with selenium and
I was wondering are there any tools similar to ...
1
vote
0
answers
331
views
Selenium EventFiringWebDriver in page object model and refactored
I'm struggling with this one, how to implement EventFiringWebDriver (e_driver) without having a lot of repetitive code.
As I'm understanding it, in order to capture finding elements and acting on ...
1
vote
0
answers
185
views
Does it require to install all necessary software for slave in jenkins
I have built automation script and everything working perfectly. Now client want to run same script from his location.
I am thinking to set his computer as slave in jenkins , but does it require to ...
1
vote
0
answers
37
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
0
answers
76
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
0
answers
5k
views
How to use selenium.captureNetworkTraffic in Python?
I'm interested in debugging my browser session and I found that it is possible to save HTTP requests with their answers to a file using captureNetworkTraffic in json format.
But I can't find any doc ...
1
vote
0
answers
631
views
Why a PhantomJS grid node is defined differently compared to other browsers
I am trying to set up one of my Selenium Grid nodes using PhantomJS. (The rest of the nodes are all working fine with Firefox browsers)
Now generally, when we configure a node, we launch a selenium-...
1
vote
0
answers
1k
views
PDF Automation using URL opened in Selenium, not a new URL
Currently, I'm 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 pdf")...
1
vote
0
answers
331
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.
1
vote
0
answers
572
views
Is there a way to find Element by xpath-Javascript?
Starting automation at my job and currently the way I've been doing it by xpath and button description. There are only classes, no id's, and right now dev is re-doing the UI. Therefore, CSS selectors ...
1
vote
0
answers
537
views
Page Object Design: Is there a Javascript equivalent to Ruby gem "site_prism"
I'd like to know if there is a framework in Javascript (NodeJS) for Protractor which supports a clean way to define the Page Object Elements on a Page Object as site_prism does. I've already checked ...
1
vote
3
answers
126
views
Why would StringUtils return the incorrect # of matches of a substring?
I'm using StringUtils from the Apache commons library to check the # of matches of a sub-string within the source code of an HTML page.
I have converted the page source using the WebDriver command:
...
1
vote
0
answers
89
views
xss scripts through console of web-developers-tools
So, well I am learning selenium webdriver, junit4. I need to know, is it a proper way to add "XSS scripts" through the console of web developers tools?
Can anyone help me with an example ?
1
vote
0
answers
542
views
Occasional no response from Selenium Grid server - any theories?
While locally we're having no problems, on a virtual server we're running Jenkins which kicks off Selenium Grid to execute some of our tests.
Exception has been thrown by the target of an invocation. ...
1
vote
3
answers
4k
views
Selenium is not finding button even though it has a Class Name and XPath
I am attempting to click a save button but Selenium (with Python) is having issues. I keep getting the error, "Message: no such element: Unable to locate element"
Here is the HTML
<input ...
1
vote
2
answers
164
views
how to add "\n" to the method
I have the below method:
PUBLIC methodname(WebDriver driver,formEntryMap<String,String>,String Colkey)
{
String Xpath = This will have the xpath of the input text box
inputfieldEntry(driver,...
1
vote
1
answer
191
views
How we run selenium script in mobile devices?
I want to run a selenium script on mobile devices.
For this purpose, I am using the Browserstack website.
Now, the problem is, I have written a script and it runs properly in web browser.
But, when I ...
1
vote
1
answer
92
views
Problem with dropdown (Selenium + Python)
URL = https://www.sephora.com/search?keyword=shaving
At the bottom of the page, I'm trying to change from "View 60" to "View All". The problem is that test case passed successfully, but the browser ...
1
vote
2
answers
181
views
How to Automate the fields that are text and drop downs. You are not sure that how may fields will be and of which type (text/drop down.)
The situation is that admin sets the Specified fields for the front end user and it is upon admin to decide how many fields he'll set for the user. One thing is that he can only create 2 types of ...
1
vote
3
answers
1k
views
Need to get the current geolocation value through selenium webdriver
In one of my requirements the current geolocation of the customer will be displayed in a text box by default while loading site. I need to get the geolocation value displayed in the text box, and the ...
1
vote
1
answer
1k
views
WebDriver - Using loadablecomponent design for URLs with query parameters
For example, if the URL is - http://blah.com?origin=home&id=54&level=2. This could be a dynamically generated link on a webpage with 'id' and 'level' values from the DB.
Now if I want to use ...
0
votes
0
answers
29
views
Only one test running when selenium tests run in parallel using local thread
We are automating an application which support desktop and mobile browser, so we choose selenium, appium, java client, testNG. to reduce execution we implemented parallel test execution using TestNG ...
0
votes
0
answers
20
views
What are the possible modifications I need to do to simulate real user traffic for a given web URL?
I was running my selenium script on a hosted cloud server to simulate and increase the real user count.
Unfortunately at the beginning of the day it shows a lot of user count at my web admin dashboard....
0
votes
0
answers
15
views
What does this err means?Cannot inject @Test annotated Method [verifyLoginWithCorrectCredential] with [class java.lang.String, class java.lang.String]
Im new with selenium automation. I was just trying to automate a basic login page and I got this error.
I ve created 3 pages which is as follows:
BaseClass:
import org.testng.annotations.BeforeMethod;...
0
votes
0
answers
10
views
Cucumber selenium testng getting error in testrunner
package Runner;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import io....
0
votes
0
answers
15
views
Regarding Google Playstore Automation
I have this project where I have to automate the Play Store using Java and Appium.
Problem:
The problem I am facing is, that it seems like the buttons in the Play Store are changing their id's ...
0
votes
1
answer
24
views
Clicking button with Selenium produces no response
I am trying to automate the clicking of the "Sort by: Top picks for long stays" button at the top of the following page on Booking.com. My code is as follows:
sorting_button = WebDriverWait(...
0
votes
1
answer
37
views
Can't get text out of Webelement using Selenium
I'm using Python 3.11.5, and I want to extract text from a Webelement with selenium.
I use Chromedriver as a driver, and I want to find an element By.CLASS_NAME
Here is my code
What happens ?
When I ...
0
votes
3
answers
28
views
Selenium and Python - How to click submit button
This is the source code of the webpage ( https://eu.luxpowertek.com/WManage/web/login ) I am trying to login in and click the submit button.
<div id="loginFormContainer" style="...
0
votes
2
answers
27
views
How to make a Java library jar file which multiple projects use and how to push latest code changes?
I have few java packages as part of Selenium, Java, Cucumber, Maven automation framework which all projects use. If I create .jar file of it and place it in a separate project/folder in TFS Git ...
0
votes
0
answers
12
views
How to get HTML code in <iframe> with "srcdoc" attribute by selenium Java?
I need to access the page elements that are in the iframe with the src Doc attribute and I'm not getting the full content.
Page code:
Java code with WebDriver:
This is turns out to get:
But I need ...
0
votes
2
answers
99
views
How to use java classes of one Selenium project into Another project in Eclipse?
I have around 10 Selenium/Java projects in Eclipse IDE and there is "utils" package and Automation framework classes that i manually copied to all projects and all those have different ...
0
votes
1
answer
43
views
Get code from email - java
I have an automation flow where there is a need retrieve a code from an email and input it into as a verification code.
As its a demo I could use any temp email and grab it but I am wondering now what ...
0
votes
1
answer
66
views
Web Scrape and Download Images with Python Xpath Problem
I am trying to download all images that appear in Google image search
I am using "Selenium" with Python, Pycharm
When I check Chrome developer tool to get Xpath i got the following:
//[@id=&...
0
votes
0
answers
21
views
Selenium on windows form button click event - Windows form is no longer clickable after launching web browser
I was trying to integrate a selenium test with a windows form app.
Code works fine for a button click event.
But after chrome driver get open I cant click any thing at the windows form application.
Or ...
0
votes
1
answer
109
views
Python & Selenium: Finding and activating a dropdown list, then selecting a list item
I'm writing a Python program (with Selenium) to automatically download data from a website and then log out, but cannot figure out how to get to the logout menu item, which is in a drop-down list. I'...
0
votes
0
answers
84
views
Selenium - Safari Webdriver click not working
I'm taking my first steps in Selenium and I'm having trouble with clicking on elements in Safari:
driver.find_element(By.NAME, value="checkbox1").click()
doesn't do anything by the looks of ...
0
votes
0
answers
54
views
How do I properly dismiss an alert in JavaScript with Selenium Webdriver?
I am using Cucumber.js and Selenium Webdriver on Node.js.
I am testing a page that has an alert pop-up when the page loads - it asks for permission to use the user's location which I have disabled in ...
0
votes
0
answers
21
views
Using Driver Factory, create reusable method
Objective:
In our automation suite, we are using the driver factory implementation and would like to have it in a reusable method.
So, In our tests, we do the following ( want to get away from this ...
0
votes
0
answers
523
views
Exception in thread "main" org.openqa.selenium.remote.NoSuchDriverException in eclipse
Facing the below error while running selenium java project in eclipse
Exception in thread "main" org.openqa.selenium.remote.NoSuchDriverException: chromedriver located at C:\Users\hp\...
0
votes
0
answers
48
views
How to click on the "publish item" button using vba + selenium?
So I am trying to automate inputting some "ads" in my webpage using Excel and VBA +selenium. So far I have managed to fill in all the info I need, but I can't click the button "publish ...
0
votes
0
answers
139
views
How can I extract big image using Selenium & Java correctly?
I'm using the following code and struggling with snippet, provided below:
@Override
public void run() {
// List of all articles included in the collection
List<Article> ...