Questions tagged [selenium-webdriver]

Used for questions about using Selenium WebDriver, a browser automation framework frequently used to automate testing in a browser.

559 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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 ...
Ajmal's user avatar
  • 591
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://...
Ela's user avatar
  • 111
1 vote
0 answers
679 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 ...
Kenil Fadia's user avatar
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 ...
Ronron's user avatar
  • 151
1 vote
0 answers
330 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 ...
Dan Fanelli's user avatar
1 vote
0 answers
183 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 ...
Helping Hands's user avatar
1 vote
0 answers
36 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 (...
Rafael C.'s user avatar
  • 231
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 ...
redouaned's user avatar
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 ...
Jury's user avatar
  • 153
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-...
Eugene S's user avatar
  • 429
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")...
Malcolm Dorfeuille's user avatar
1 vote
0 answers
330 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.
Akshit Lomash's user avatar
1 vote
0 answers
547 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 ...
user13034's user avatar
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 ...
Leo Gallucci's user avatar
1 vote
3 answers
123 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: ...
kevin's user avatar
  • 180
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 ?
user2376425's user avatar
1 vote
0 answers
533 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. ...
Mark Mayo's user avatar
  • 1,223
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 ...
DrewTheTester's user avatar
1 vote
2 answers
127 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,...
user49933's user avatar
1 vote
1 answer
180 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 ...
Arslan Hassan's user avatar
1 vote
1 answer
91 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 ...
rodut's user avatar
  • 197
1 vote
2 answers
177 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 ...
Muhammad Atif Muneeb Alrai's user avatar
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 ...
QA Testing's user avatar
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 ...
Grasshopper's user avatar
0 votes
0 answers
45 views

How to get all existing li-hidden-elements under ul tag using Selenium while loading JS?

I'm struggling with the following code using Selenium 3.141.59 and Java 11: @Override public void run() { WebDriverManager.chromedriver().setup(); ChromeOptions options = new ChromeOptions(); ...
invzbl3's user avatar
  • 119
0 votes
0 answers
10 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 ...
Michael J Frazier's user avatar
0 votes
0 answers
44 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\...
Resha's user avatar
  • 1
0 votes
0 answers
5 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 ...
Joannem Ruiz's user avatar
0 votes
0 answers
130 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> ...
invzbl3's user avatar
  • 119
0 votes
0 answers
27 views

how to sendkeys to an authentication popupon firefox 38.5.2

Hello all, i'm trying to automate a webpage scenario with a pop up on firefox 38.5.2 using java. however i haver this error => Action error encountered result: false message: org.openqa.selenium....
Landry Messina's user avatar
0 votes
1 answer
28 views

Could not able to click the link from the container

enter image description here hi all thanks for reading my question. I tried to automate some of my work. I tried to get the path of Add button using xpath finder I found three links below. I tried to ...
vivek rajagopalan's user avatar
0 votes
2 answers
39 views

How to handle this Particular date picker scenario where i want to traverse back in selenium

In this code i want to navigate to the year 2022 and select July and print that result in the console but the issue is that in the else if condition when checking when this particular condition is ...
Krishna Sriram's user avatar
0 votes
0 answers
69 views

How to connect to a Anti-Detect browser (Incogniton) using selenium java

I want to connect to a browser session of this specific anti-detect browser called Incogniton. It does support Selenium browser automation, but it only supports Python. I don't know anything about ...
likenzy's user avatar
0 votes
1 answer
17 views

Every Vuser should pick different file name

Using JMeter Selenium for web based application so every Vuser should pick different file. Ex:-" User1 ---->Payroll1,User2------>Payroll2,User3------>Payroll3,User4------>Payroll4........
Bhaskara Reddy Dwarampudi's user avatar
0 votes
0 answers
30 views

How to select drop-down value from CSV file using Apache POI - Selenium Java

I am currently working on a web form (Selenium Automation) where I need to display values from a CSV file in a drop-down input text field. I've managed to read the CSV data using Apache POI and ...
Anony's user avatar
  • 1
0 votes
2 answers
854 views

Selenium version 114.0.5735.16 not working

driver = webdriver.Chrome(service=Service(ChromeDriverManager(version='114.0.5735.16').install()), options=options) I have been using this code with selenium version 114.0.5735.16 up until recently ...
CanB's user avatar
  • 1
0 votes
0 answers
126 views

Element Not Interactable Exception Selenium

from selenium import webdriver from selenium.webdriver.support.ui import Select import time from selenium.webdriver.common.by import By from selenium.webdriver.support.wait import ...
Pammvi Group's user avatar
0 votes
0 answers
163 views

How to get list of li elements using Selenium correctly?

I'm using Selenium in the following manner as below: ChromeOptions options = new ChromeOptions(); /*options.addArguments("--headless"); options.addArguments("--...
invzbl3's user avatar
  • 119
0 votes
1 answer
362 views

Unable to locate element: {"method":"xpath","selector":"//*[@id="root"]/div[1]/div/main/div/section/div/section/div/div/ul/li[1]/a"}

The chrome browser version is Version 115.0.5790.171 and downloaded chrome driver version is 114 [![enter image description here][1]][1] as driver version 115 is not available. I'm using the x-path ...
Bhaskara Reddy Dwarampudi's user avatar
0 votes
0 answers
17 views

Ant build not picking up the script in the target specified in build.xml

I have a few Selenium scripts in Eclipse that run just fine independently. But when I run them from build.xml, Ant says BUILD SUCCESSFUL but it doesn't run the script. The logs look like this. I run ...
Ravi Teja's user avatar
0 votes
1 answer
80 views

selenium java modifications to the dom, how to reload the page to display modifications

0 I have a driver in java selenium : driver.get(url); I have made some changes to a WebElement with this method : JavascriptExecutor jse = (JavascriptExecutor) driver; jse.executeScript("...
user3021955's user avatar
0 votes
0 answers
24 views

Testing mail verification in organization domain

Requirement: Users should sign up for an application using mail id and an email will be triggered to that mail account. Mail will have the verification link , once the user verifies he can onboard ...
PRAGHALYA GOPAL's user avatar
0 votes
1 answer
66 views

How to store a value which is not inside a tag in the SeleniumIDE?

My Problem I'm trying to automate a login/logout test to my website using Selenium IDE and I'm facing a problem while trying to verify a value displayed in the page. In my test I first verify the ...
Marc Agnetti's user avatar
0 votes
1 answer
15 views

Visual representation of an element I am clicking in VS Code

I think remember reading this somewhere but cannot remember if it is true or not. Is there a VS Code extension that will let you visually see on the web page (or in VS Code) where exactly the mouse....
user5821872's user avatar
0 votes
1 answer
58 views

The selector is not recognized by selenium java

I have the following HTML code for a button: <div class="link" data-background-color="#fb00ff" style="background-color: rgb(251, 0, 255);"> <div data-replace-...
AAa's user avatar
  • 1
0 votes
1 answer
31 views

JMeter Integration With Azure Pipeline and after execution of test getting as directory not found

As Part of Jmeter Integration With Azure Pipeline and after execution of test getting as below errors: 1.Error generating the report: org.apache.jmeter.report.dashboard.GenerationException: Error ...
Bhaskara Reddy Dwarampudi's user avatar

1
3 4
5
6 7
12