Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [selenium-webdriver]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
8 views

css selector with multiple same classes under diverent divs

Example of the Problem: <div> <h2> one <div> <h2> two <div> <h2> three I want to select the second h2 with css. i know there is something like h2:nth-child() ...
random's user avatar
  • 1
0 votes
0 answers
21 views

Data clean up in selenium

I am doing automation testing of web browsers using selenium and the test includes that i create users, add personal details, approve, recommend and the likes. how do I clean up these data that has ...
Oluwabusayomi Temitope's user avatar
0 votes
1 answer
33 views

How to repeat the same test with Selenium Webdriver without opening a new browser instance each time?

I am using Selenium Webdriver on Node.js with Cucumber.js. I want to run the same test on multiple pages. In this case just checking for 404s in my footer. My Cucumber .feature file looks like: ...
MeltingDog's user avatar
0 votes
0 answers
31 views

Looking from Page Object Model and OOP viewpoint (Selenium) how do we deal with waiting for web element?

Lets assume that I have a list of web elements: private List<WebElement> listOf250Movies; To action/process the list I need to implement explicit wait. In accordence to single responsibility ...
Pekotski Bit's user avatar
0 votes
1 answer
27 views

How to iterate over List<WebElement> and click link based on text on any page inside webtable?

On my page, I have 25 Links displayed inside a web table, now i have to traverse all pagination pages, like 1-25, 25-50, 50-75 etc...my specific link text can be in any pagination set, it can be on ...
arvind2359's user avatar
0 votes
0 answers
11 views

How to click on a specific link which is inside <table> element based on multiple pages and if not found click on "next" pagination link in Selenium?

How to click on a link that is under a table element, but that is not visible on first page. There are pagination links "previous" & "next" on the page, and i want to iterate ...
sachin2350's user avatar
0 votes
0 answers
15 views

How to fetch latest commits in only specific project/folder in Git repository using eGit eclipse plugin?

I have a Git repository and have created multiple projects under that repo. Now, I have all those projects under an Eclipse workspace. The issue is that when I fetch latest commits from origin, it ...
kunal22's user avatar
0 votes
0 answers
12 views

Parallel feature files execution in Cucumber with TestNG runner? [duplicate]

How to run multiple feature files parallely in cucumber with TestNG runner? <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>...
kunaltester2304's user avatar
0 votes
0 answers
27 views

How to run multiple Feature files parallelly in Cucumber with TestNG Runner?

I am facing one issue: I need to run 5 feature files that are totally independent of each other, Each feature files logs into a different site. I want 5 different ChromeDriver Browser sessions to open ...
kunaltester2304's user avatar
0 votes
1 answer
20 views

Unable to locate button via Selenium WebDriver

Using Selenium to try and locate + press a button inside of an Atlassian Jira environment. The button class is not unique and the button doesn't have a button ID. I assume the website is built in an ...
Matthew  Gosnell's user avatar
-1 votes
1 answer
26 views

Excel application automation testing strategies

I have been newly assigned on a project which has Excel applications. Has anyone worked on one before? Have you implemented any automation strategies for the same? I have been researching the ...
Vanimol S's user avatar
0 votes
0 answers
32 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 ...
surya kumar's user avatar
0 votes
0 answers
26 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....
ChathuD's user avatar
  • 2,147
0 votes
0 answers
24 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;...
Aami's user avatar
  • 1
0 votes
0 answers
22 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....
Anil's user avatar
  • 1
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 ...
Python Samurai's user avatar
0 votes
1 answer
41 views

Using Selenium, how to run test scripts on a certain page of an application without using a login page

I am working on an application that whenever I call a page from the menu, the URL does not change. I'm new to Selenium and am creating automation test scripts to perform test cases. But, for each test ...
tester's user avatar
  • 69
0 votes
1 answer
30 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(...
joelleoqiyi's user avatar
0 votes
1 answer
47 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 ...
Rodgoupil's user avatar
0 votes
3 answers
85 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="...
Peter_Brown_USA's user avatar
-1 votes
1 answer
28 views

Why are my automation scripts failing on Production Sites?

I'm trying to run some selenium and cypress scripts on production sites such as Amazon India and MakeMyTrip. However, my scripts keep failing continuously. Cypress refuses to even open the page and ...
srini's user avatar
  • 455
0 votes
2 answers
32 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 ...
maheshb2234's user avatar
-1 votes
1 answer
35 views

Unit Test Guidance for Selenium Web Scraping

I'm working through https://www.obeythetestinggoat.com/ and trying to connect the concepts to a program I'm writing. Specifically, I want to write some unit tests, but I'm having trouble thinking of ...
SwabianOrtolan's user avatar
0 votes
0 answers
17 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 ...
Yulyan Paulouski's user avatar
0 votes
2 answers
113 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 ...
qa235's user avatar
  • 1
0 votes
1 answer
47 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 ...
Keith's user avatar
  • 11
-1 votes
1 answer
26 views

Breadcrumb Element not visible when site opened through Automation

I have to check the breadcrumb element (Dashboard) on a webpage. When opened manually, the Dashboard element appears with icons and is operational, but when run through Java Selenium Eclipse Script, ...
Thara B C's user avatar
1 vote
1 answer
255 views

NET::ERR_CERT_AUTHORITY_INVALID while recording from playwright

While I'm trying to record the web based application using Playwright tool and after launching the application getting as NET::ERR_CERT_AUTHORITY_INVALID . After recording and in the playwright tool ...
Bhaskara Reddy Dwarampudi's user avatar
0 votes
1 answer
109 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=&...
Kayle Rus's user avatar
0 votes
0 answers
27 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 ...
ChathuD's user avatar
  • 2,147
0 votes
1 answer
232 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'...
BillR's user avatar
  • 1
0 votes
0 answers
112 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 ...
eilchner's user avatar
0 votes
0 answers
65 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 ...
MeltingDog's user avatar
0 votes
1 answer
110 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
1 answer
80 views

How to unfreeze debug while getting hidden-li elements of DOM into the list using Selenium WebDriver?

I need to get a sheet of li elements on the site. The problem is that by clicking on "View page code" the block collapsed to ul in which the li elements are empty. Suppose the <li> ...
invzbl3's user avatar
  • 119
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 ...
Michael J Frazier's user avatar
0 votes
0 answers
585 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
1 answer
128 views

What is the best way to set up multiple tests on one webpage with Selenium Webdriver and Cucumber JS?

I am new to automated testing, Selenium and Cucumber.JS and am trying to set it up in Node.JS to run several tests on my website. I have gotten single scenarios/test working fine, but I am a bit ...
MeltingDog's user avatar
0 votes
0 answers
63 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
141 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
-1 votes
2 answers
303 views

Extent Report generate json output

I had a requirement from my boss where need to create test summary from test report. Therefore, I need to analysis the extent report json file. How to generate the json output file? Application A ...
nicholas's user avatar
  • 135
-1 votes
1 answer
99 views

How to extract list of arrivals correctly using Selenium?

Good evening, colleagues! I need help to extract list of arrivals: I have the following snippet of the code as below one: ... WebElement newArrivals = driver.findElement(By.xpath( ("//*[...
invzbl3's user avatar
  • 119
-1 votes
1 answer
48 views

Microsoft Account SignIn button cannot be clickable (Java Selenium Excel)

This is my code public void AccessLogin() throws IOException, InterruptedException { WebElement oauth = driver.findElement(oAuth); oauth.click(); driver.get("https://login....
Nethmi Edirisooriya's user avatar
1 vote
1 answer
76 views

how to find project to contribute as automation tester?

I'm manual QA with 3 years of experience. At the same time I've learnt some automation and wrote autotests on java for selenium-based framework on the previous job. I decided to get more knowledge of ...
domagile's user avatar
0 votes
4 answers
131 views

why do we need to verify test page title in selenium

I am a new to use selenium to do web automation test. Why do we need to verify the page title by assertEquals(actualTitle, expectedTitle) to do the test? The actualTitle value I copied from HTML title ...
user3559982's user avatar
0 votes
0 answers
28 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
31 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
103 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
-1 votes
1 answer
55 views

I am learning Page Model Object, i was trying to make this program work but i am getting the "NullPointerException" error everytime. can someone help

FrameWork code: package FrameWorks; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support....
Amit Dwivedi's user avatar
0 votes
0 answers
161 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

1
2 3 4 5
64