Questions tagged [selenium-webdriver]
Used for questions about using Selenium WebDriver, a browser automation framework frequently used to automate testing in a browser.
5,018
questions
0
votes
0
answers
41
views
Can't click on element in selenium
I am trying to click on this element in selenium for login but it wont work for me. This is my code for it
driver.FindElement(By.XPath("//div[@id='otherTile']")).Click();
But it wont work. ...
0
votes
1
answer
26
views
As part of JMeter WEB DRIVER(Selenium Scripts) Integration With Azure Pipeline but Application is not running at Azure Pipeline
Pushed the JMeter Selenium Scripts into Azure GIT Repository, created the pipeline and run the pipeline.
Agents added are: JMeter, Command Line, Publish pipeline artifact and publish and download ...
0
votes
1
answer
24
views
As Part of JMeter WEB DRIVER(Selenium Scripts) Integration With Azure Pipeline and how can I add Plugin Manager in Azure Pipeline
As Part of JMeter WEB DRIVER(Selenium Scripts) Integration With Azure Pipeline and how can I add Plugin Manager in Azure Pipeline.
Someone suggested the link is https://jmeter-plugins.org/wiki/...
0
votes
1
answer
23
views
As Part of JMeter WEB DRIVER(Selenium Scripts) Integration With Azure Pipeline and how can I add Headless Browser in Azure Pipeline
As Part of JMeter WEB DRIVER(Selenium Scripts) Integration With Azure Pipeline and how can I add Headless Browser in Azure Pipeline.
Someone suggested the link is https://www.blazemeter.com/blog/...
0
votes
1
answer
45
views
As Part of JMeter WEB DRIVER(Selenium Scripts) IntegrationWith Azure Pipeline and how can I add jp@gc- chrome config sampler in Azure Pipeline
As Part of JMeter WEB DRIVER(Selenium Scripts) Integration With Azure Pipeline.I have pushed the scripts into Azure GIT Repository and how can I add jp@gc- chrome config sampler in Azure Pipeline? ...
-1
votes
1
answer
84
views
How to push my JMeter WEB DRIVER(Selenium Scripts) project to Azure Github Repository and run it via Azure Pipeline
Company requirements is to integrate JMETER WEB DRIVER(SELENIUM SCRIPTS) with AZURE PIPELINE so could anyone please help me the easy way process please?
In the VM the installed software's are below:
1....
0
votes
1
answer
881
views
Chrome driver and chrome browser version is matching but selenium tests are failing
I am trying to resolve a compatibility issue between Chromedriver and Chrome browser, but none of the solutions I have tried have worked so far(mentioned below). I have latest chrome driver and chrome ...
0
votes
0
answers
23
views
Course suggestion for BDD Framework using POM and Python (Selenium Automation)
I tried to find an automation course that includes bdd framework with pom and Pyhton but I am not able to find any course regarding can you help me to find a link of such course
0
votes
0
answers
19
views
Why I can't select desired item using webscrapping Python
I would like to ask what I am doing wrong that I always select wrong item in dropdown list while webscrapping website. I am using Selenium, Pyhton. I need select item which contains (EUR). At this ...
0
votes
0
answers
126
views
Webdriver manager causes UnicodeEncodeError: 'charmap' codec can't encode character '\u258e' in position 458: character maps to <undefined>
I am new to Python, Selenium and automated testing. Working through a course, I encounter this error when Webdriver manager is required to update any browsers used (Chrome, Firefox or Edge):
...
0
votes
1
answer
23
views
Testing load of a highchart using python and selenium
I am writing a program that must screen some charts, the issue is that I do not know how much time a graph expends to load, it could be seconds or minutes.
How can I make an appropriate wait, that ...
0
votes
0
answers
64
views
Can't select proper item in dropdown list using Selenium Python
I would like to ask how I could select item in dropdown list within a suffix (EUR). I tried several ways but it selects wrong item, all time same item even if I change xpath. How to resolve it? I have ...
0
votes
0
answers
38
views
Ashot compatibility with Windows zoom
When i try to use Ashot to take screenshots of errors on my pc i have a probleme where the images of the website arent taking completly.
What we have when we execute the code :
What we want :
When i ...
-1
votes
1
answer
23
views
I have a method where i have taken the rowcount of 10 records on page load and 15 records after changing the page no to 15 question how to validate
I have a method where i have taken the rowcount of 10 records on page load and 15 records after changing the page no to 15 question here is how to validate by creating a Assert method seperatly in ...
0
votes
1
answer
99
views
Calender is clicking on the next button getting element click intercept exception it just clicks once on the next button in the calender
Steps:
I am trying to click on the Calendar and select the Date from the Calendar and also select year and month but it just clicks once in the next button after opening the calendar and leads to ...
0
votes
1
answer
64
views
Unable to locate an element when "show user agent shadow DOM" is enabled
As for the image, I need to capture an element which is under show user agent shadow DOM.
I tried using //*[@id="placeholder"], but as for the image, its Zero matches.
By looking at some ...
1
vote
2
answers
51
views
WebDriver linkText with CSS manipulations
I have an HTML with the following element:
<a href="index.html" style="text-transform: uppercase;">index</a>
I'm using selenium-java 4.8.2, Chrome 112 and JUnit 5.9.2, ...
0
votes
0
answers
34
views
Have a Screen whereI once click on the text box the up and down arrow will become visible to click but it is not clicking and is not throwing a error
I added this piece of code: Any inputs to get this working would be helpful
WebElement inputElement = driver.findElement(By.cssSelector("input[type='number']
[formcontrolname='sample']"));
...
0
votes
1
answer
989
views
Getting java.lang.IllegalArgumentException: Keys to send should be a not null CharSequence as the stored value returns null Any leads would be helpful
Scenario:
There are 3 fields in the Screen where i enter a number in the 1st field text box
and i need to enter the same number in the 3rd and 4th text box as well
///So in this case i have created ...
0
votes
1
answer
224
views
Java selenium - null pointer exception on webDriver inheritance
I am getting null pointer exception. Would you be able to help and what should be fixed ?
java.lang.NullPointerException
at pages.LandingPage.acceptConsent(LandingPage.java:14)
at
stepDefs....
0
votes
2
answers
223
views
Not able to run tests on remote host using Jmeter Distributed Testing
I am trying to configure a distributed load testing setup for a browser based testing. Below are the settings used:
Settings Done on Client machine:
Made one change in meter-server file in jmeter/bin ...
0
votes
1
answer
391
views
Waiting for one element or another in Selenide
How do you wait for one or another element in Selenide? In Selenium3 I've manage to do this by using this code:
public void waitForOneorOtherElement(SelenideElement element1, SelenideElement ...
3
votes
1
answer
1k
views
Selenium latest version is not able to launch FireFox browser in Ubuntu 20.04
I'm trying to automate web tests with Selenium and Java in Ubuntu OS.
Earlier versions of Selenium used to work very well with older version of Firefox in Ubuntu.
Since I upgraded to
Selenium 4+ (...
0
votes
2
answers
441
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 ...
0
votes
2
answers
2k
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 ...
0
votes
2
answers
185
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 ...
0
votes
1
answer
251
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....
0
votes
5
answers
6k
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) (...
0
votes
1
answer
3k
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
2k
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
2
answers
196
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
3k
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
votes
1
answer
274
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
100
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 ...
0
votes
1
answer
1k
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
484
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
votes
2
answers
278
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 ...
0
votes
1
answer
153
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
vote
1
answer
44
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
2k
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
360
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
5k
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....
0
votes
4
answers
380
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
57
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
79
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
30
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
690
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
534
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 ...
-1
votes
3
answers
243
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 ...
0
votes
2
answers
49
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 ...