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
0 answers
12 views

Facing challenges to run java selenium tests with gitlab runner

I am trying to run cucumber maven tests on gitlab ci using selenium grid, from the output I have observed that containers for grid setup are up and running. But I am not able to run my cucumber tests ...
  • 287
0 votes
2 answers
22 views

Selenium Webdriver got error cannot find msedge binary using google colaboratory and python

I have tried to do testing with URL of the webpage using Selenium. But, I tried with Google Colaboratory for compiler and Python for programming language. I use this code for starting from selenium ...
  • 1
0 votes
2 answers
33 views

Angular readiness problem in app-alerts component(Selenium)

I'm doing automated tests(Selenium Java) in a web application that is based on Angular 14.2.12. I check if Angular is loaded using the following code(I paste the whole thing together with jQuery and ...
  • 1
0 votes
1 answer
32 views

I am stuck with null pointer exception in driver

package org.example.driver; import cucumber.api.Scenario; import io.github.bonigarcia.wdm.WebDriverManager; import org.apache.commons.io.FileUtils; import org.openqa.selenium.*; import org.openqa....
  • 1
0 votes
3 answers
802 views

After updating Google Chrome and Selenium, tests are not running with ChromeDriver

After updating Google Chrome and Selenium, tests are not running with ChromeDriver. System: OS: Ubuntu 20.04.5 LTS Selenium: selenium-server-4.8.1.jar Chrome: Version 111.0.5563.64 (Official Build) (...
-1 votes
0 answers
18 views

CSS Selector Assist

I have been struggling with this one. Can someone please tell me what the most appropriate CSS Selector would be for the line indicated with red arrow in the screenshot? I am automating using ...
  • 1
0 votes
1 answer
22 views

org.openqa.selenium.interactions.MoveTargetOutOfBoundsException: move target out of bounds

I am passing input to rich text field. For that I have written the code below: public void inputToDescriptionField() throws InterruptedException , AWTException { wait.until(...
-1 votes
1 answer
59 views

Can we get the text from the image using Selenium?

This is the path of the image from where I have to get the text shown on an image and into the text for security purposes, @FindBy(xpath = "//img[@src=\"/register/tb135/tb_getimage.php?uid=...
0 votes
1 answer
37 views

how to automate a date picker that not in a table tag

I want to automate that starting date and end date but in DOM I can't find a Table tag for date picker so I don't know how to locate the field. The tag is <input class="inputvd" type=&...
-1 votes
3 answers
156 views

How to open downloaded PDF file in Chrome and verify its content in Selenium?

When I click on the "Download PDF" link, the file is downloaded in Chrome. I need to open and verify the transaction data is correct in the file. I use Selenium and Java.
  • 1
-1 votes
1 answer
37 views

How to validate invalid date error message in Selenium Java project?

I have a "Date" field on my page I want to automate. Now, when I enter invalid value or invalid format, then its displays an error like: "This is invalid value for "Date" ...
-1 votes
1 answer
9 views

Populate a field with value from another field based on xpaths using javascript

I'm trying to read a value from a dynamic text field (value is updated on each visit) based on the xpath and pass it in the field below. The page validation is the match between those two fields based ...
  • 1
0 votes
1 answer
125 views

Robot Framework how to set a variable in an xpath?

Trying to set a variable in an xpath that I can then replace the text in for a dropdown menu. Not sure if there is a better way to do this I have tried "Replace Variables" also from the ...
0 votes
1 answer
19 views

How to select city based on city name in mat-option-text?

I need to find a specific city from a drop down list. I have tried using the xpath but the id number for the city keeps changing. The element from the website is below: <mat-option role="...
  • 1
-1 votes
2 answers
19 views

Want to edit a form filled in an application and need to verify the fields filled are correct in Selenium

I have filled in an input field in an application under test. Now I want to validate that the fields entered are correctly saved by editing the form. I want to achieve this using Selenium. Can someone ...
  • 1
0 votes
1 answer
25 views

All available processors of selenium node machines are not getting used in Selenium Grid

I am implementing parallel testing system using Selenium Grid architecture. I added couple of nodes where each of them have 4 available processors with a hub machine, which has 2 available processors. ...
  • 1
1 vote
1 answer
31 views

Why I can not do drag and drop in class Action perform Selenium 4?

I am using chrome driver version 2.35 in 2023, Why old chromedriver version? That's because my project using Chrome Extension Framework (CEF) project. Using maven project IDE --> Intellij 2022.1....
0 votes
2 answers
256 views

Message element not interactable/click intercepted

[![first page][1]][1] from selenium import webdriver import time from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver....
-1 votes
2 answers
98 views

How to find the find an element by Selenium?

This is the HTML: <div class="fl"> <div class="colMenu"> <h3 class="submenu" style="background-position: 0px -68px;">Cadastro</h3> <...
1 vote
1 answer
286 views

Facing Invalid Session ID issue in selenium Web driver Using TestNG frame work

package automation; import java.time.Duration; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome....
  • 13
0 votes
2 answers
72 views

Selenium Locators are not working for this site?

public class LoginPage { WebDriver driver; @FindBy(xpath = "//input[contains(@class,'oxd-input') and @name='username']") private WebElement userName; @FindBy(xpath = "...
0 votes
1 answer
29 views

How to include automation framework jar file dependency in my maven pom.xml?

I want to include one .jar file which has classes of my core automation framework. I created a "lib" folder in my selenium project and then gave its path in the pom.xml dependency. This Jar ...
0 votes
2 answers
35 views

Is it a good approach to use a core automation framework(jar file) as opposed to creating all classes of framework yourself?

Some teams in an organization use existing core automation frameworks(made in Java). In my case, I converted it to a jar file artifact and then used it in their Selenium project as a local library/...
0 votes
0 answers
16 views

parallel testing on scenario lever using c# selenium specflow

I have looked over the internet and everywhere I find examples of parallel testing at the feature level. Can someone tell me how to execute parallel testing at the scenario level? Or running scenarios ...
0 votes
4 answers
130 views

Playwright vs Selenium

I have used Selenium for several years to automate UI tests, one of our new devOps guys used to be a QA and he introduced me to Playwright recently. On the surface it seems like Playwright solves a ...
1 vote
2 answers
129 views

How to click on the list when it said the list has no attribute "click"?

from selenium import webdriver import time from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from ...
0 votes
3 answers
32 views

java.lang.NullPointerException - at com.qa.factory.factory.DriverFactory.init_driver(DriverFactory.java:26)

public class DriverFactory { public WebDriver driver; public static ThreadLocal<WebDriver> tlDriver = new ThreadLocal<>(); /** * This method is used to initialize the threadlocal driver ...
0 votes
2 answers
35 views

Best way to test multiple scenarios that test same permissions or use similar users

The problem I have it's that I don't know what is the best way to test multiple scenarios that test different permissions on files by one or two users. Those tests are automated by Selenium. And my ...
  • 3
-1 votes
2 answers
56 views

Is it mandatory to return a PageObject instance in every Page Object save/submit method?

In the Page Object model, we separate page UI elements and Test methods. However, there is a concept of Page chaining, in which we return an object on the next Page Object in the previous page object ...
0 votes
1 answer
50 views

Will Selenium Webdriver become less popular in coming years? [closed]

Lot of Automation engineers have shifted to new Web automation tools like Cypress, WebDriverIO, Pupeeter, Playwritght, Katalon Studio, AI tools like Testium, Functionize etc and i am still working on ...
0 votes
1 answer
31 views

What aspects of javascript are relevant for Selenium Automation (with Java bindings)?

I use Java and Selenium for my automation framework. However, sometimes, as per need, I have to use JavaScriptExectutor in my script. But I have never studied JS and no nothing about it. If someone ...
0 votes
1 answer
31 views

How to find an unnamed button belonging to a certain h2 entry XPath

(I am a bit of a StackOverflow newbie, so please forgive any beginner mistakes and let me know what to improve in the future) I am trying to select the highlighted button in the appended picture. ...
0 votes
4 answers
89 views

Selenium email automation

I'm trying to automate tests using Selenium and a Yahoo email address. The problem is when I run my test in Azure DevOps I face the CAPTCHA privacy terms. Any ideas on how to fix this problem?
-1 votes
1 answer
31 views

Javawith selenium

[RemoteTestNG] detected TestNG version 6.14.3 [TestNGContentHandler] [WARN] It is strongly recommended to add "<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >" at ...
-1 votes
1 answer
36 views

Verify that 4 products are shown with € symbol

I want to verify from this website: https://demo.nopcommerce.com/. There are 4 products shown with the Euro symbol by using for loop. Code: List <WebElement> productcurrency = driver....
0 votes
1 answer
29 views

Can some one please suggest me a good email inbox to use in selenium automation test execution

We have some test cases to validate email body content after triggering some emails from our test system. Previously we used UI automation with Gmail and Yahoo, but as we are running our test in ...
  • 2,099
1 vote
1 answer
50 views

How to Switch frame in Selenium java

I'm trying to switch frame to email body, but it's not working. I'm not able to switch frames. Expectation: I need to open yopmail and get a text from second email. Email - Secondemail1234@yopmail.com ...
  • 11
1 vote
3 answers
58 views

Unable to fetch text values present within strong tag using xpath

While trying to print values present within the strong tag using XPath, I'm getting the following exception: org.openqa.selenium.NoSuchElementException: Unable to locate element: strong This is my ...
0 votes
1 answer
19 views

How do you handle CCPA Privacy Manager alert while running test cases in Selenium Webdriver/TestNG

When I run test cases in Selenium Webdriver or TestNG my test always fail. The reason being, I'm not able to handle an alert-like pop-up exclusive to California residents. Those of you in California ...
1 vote
2 answers
46 views

Which exception happens in Selenium when the wait isn't long enough?

When we give a wait of 15 seconds and the application response time is 20 seconds, selenium throws an errorr Which is the exception that selenium throws?
1 vote
1 answer
242 views

downloading file using python

I want to examine a button that leads to downloading a file. the HTML contains: <a class="calibre-push-button " href="/calibre/get/EPUB/123/calibre" role="button" ...
  • 111
1 vote
0 answers
35 views

How to handle the google adds Window which display over the page

Add Pop Up coming when run the test suite and other operations where failed I tried to click directly on close button with x-path but it not work
1 vote
2 answers
79 views

Selenium cannot click on input button

I am testing the website BookDepository for a course project. I decided to make a utility test case for the Login process, which I could use for other test cases instead of signing in every time. ...
-1 votes
2 answers
36 views

Unable to assert span content properly with Selenium and pytest

I want to check if a span element contains a certain text. It normally contains more text than I search for. That is what I do at the moment: assert self.driver.find_element_by_xpath("//td[@id='...
1 vote
4 answers
108 views

Selenium Test cases for UI look

I have a test case, where I need to verify: a user selects any of the options. the text is not going out of the layout and displays complete readability to the user. As a result, the UI look and ...
0 votes
1 answer
46 views

ExtentReports doesn't save the screenshot with the report

Hello I am trying to capture screenshot of failed test cases using selenium webdriver with Maven and TestNG with following code, it does generate the screenshot in my project but doesn't get included ...
  • 21
0 votes
3 answers
232 views

perform button click if specific element is present

I have a product list and some products have discount available. I want to click buy if discount price text is available. Below is a product with discount <article class="commerce-product--...
1 vote
2 answers
89 views

Test users password- static or dynamic

During our e2e testing, 100+ test users are created on our application. Workflow goes like this: 1. Generating a random password with faker library 2. Storing it in a variable 3. Using the variable to ...
-1 votes
2 answers
66 views

Explicit wait is unpredictable

Whenever I am using explicit wait, at times data is not getting saved in the variable: validation_message = WebDriverWait(context.driver, 30).until( EC.element_to_be_clickable((By.XPATH, '//...
0 votes
1 answer
410 views

Test has been compiled by a more recent version of the Java Runtime (org/testng/annotations/TestNG)

I found my issue below when using this dependencies: </dependency> <dependency> <groupId>io.appium</groupId> <artifactId>java-...

1
2 3 4 5
62