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

Selenium (Python) is having issues finding and interacting with a button that has formmethod="get" in it

I am attempting to click a delete button but Selenium does not locate it even though a save button next to it is completely intractable. The only difference is the delete button has this in the html &...
-1
votes
1answer
22 views

Load More button is not clicking more than once

I have a Search Screen where after I enter the search criteria and search, a Load More button will display if there are more than 30 records. The problem here is it clicks the Load More button for the ...
0
votes
0answers
16 views

How to debug Protractor Cucumber test using Visual Studio Code

this is my launch.json { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft....
1
vote
1answer
25 views

Differentiating between two items with the same class name using selenium

As a learning project, I am trying to use selenium webdriver with python 3 to collect my shopping for the week from sainsburys website. At the moment, the script will loop through a bunch of URLs for ...
0
votes
1answer
25 views

Selenium Java best practices for handling different languages and locations, and setting dynamic architecture

Im currently working on a platform that has multi-language options and also the language is defined by IP. So Im trying to build an architecture for testing both scenarios dynamically... The domain is ...
0
votes
1answer
23 views

On selecting the radio button how to get the text of the selected radio button where the text is in the next column

On selecting the radio button how to get the text of the selected radio button where the text is in the next column I randomly select the radio button and then i need to Store the selected Radio ...
0
votes
1answer
24 views

Cucumber - Accessing injected context in After scenario hook

I'm attempting to refactor a test automation framework I have inherited (Java, Selenide, Cucumber) from one that uses static global state for test data, to context injected test data using ...
0
votes
1answer
26 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
votes
0answers
32 views

I have a Dynamic WebTable where i need to select any Two chekbox randomly how to do that

Scenario: I have a WebTable where i go and enter the Search Criteria and based on the Search Criteria the Matching records appears. Then i Need to select 2 checkbox from the table . My Question is - ...
0
votes
2answers
66 views

Apart from Selenium what other automation tools are valuable to learn? [closed]

I have worked on Selenium, Java, testNG, maven, cucumber based automation framework. But I am not advancing in my career as I just can work with Selenium. What other tools should I have in my ...
0
votes
0answers
20 views

How can I copy authorization code from Yopmail

I am automating my script in Selenium webdriver with Cucumber. Now I have to verify an activation code from Yopmail. How can I go to youmail and copy the code and came back to script and paste?
1
vote
2answers
71 views

Is it necessary to Assert web page title in every case?

I am writing a script in Selenium and TestNG to automate Add User profile pages. Now, when I land on every new page, then do I need to write Assert.equals("add user profile", driver.gettitle(...
0
votes
0answers
43 views

how to select the id that is just added and take that id and use it in another screen

My Scenario: I need to create a Demand. After creation the Id of the Demand will be autogenerated I need to fetch that id and use it in another screen Question: While I created the Demand and try to ...
0
votes
0answers
22 views

Selenium- Parallel test case using testng not working correctly. The same working fine in sequential mode

The driver instance initializes as Threadsafe. Till the launching of the browser and pass the URL everything seems to be working. But the credentials passing on anyone's browser, instead of all ...
-1
votes
2answers
19 views

How to automate dynamic ui from json in selenium

I have a UI that is rendered against the provided JSON in DB. If I change in the JSON how would I know the fields in UI How I do this in selenium
1
vote
1answer
32 views

Is Cucumber Scenario equivalent to a Java Class?

@Add User Scenario: Add a new User profile in the System Given user is on the Add User profile page Then Add a new user profile in the system Then verify that user has been added successfully Now, ...
0
votes
1answer
53 views

Selenium: How to bypass Cloudfare authentication with Selenium using Java

I am testing an app and as soon as I load the URL it redirects me to Cloudfare access page and asks me to signIn using Google. When I click on Google SignIn it asks for my email address and password. ...
0
votes
0answers
20 views

I am not able to open Extent report that was generated at a specific timestamp when the Test ends?

I am trying to run a Cucumber Selenium project which is written in Java and use Test NG to run the Suite. Now, in the @AfterSuite Method, im trying to popup the Extent Html and pdf report both ...
0
votes
1answer
46 views

Caused by: java.lang.NoClassDefFoundError: org/openqa/selenium/WebDriver

I've added all JARS configured chromedriver. Why this error is coming "Error: Unable to initialize main class Practice.test1 Caused by: java.lang.NoClassDefFoundError: org/openqa/selenium/...
1
vote
1answer
37 views

Cant access elements in authentication popup that says ```sign in with google```

Trying selenium for a webpage which only have google authentication. When the Join button is clicked, a popup window comes up which only have a button named sign uo with google. As i am new to ...
0
votes
3answers
49 views
0
votes
1answer
36 views

Python Selenium stuck at webdriver.Ie()

Hi I am running Selenium in python with internet explorer using IEDriverServer_Win32_3.150.2 from selenium.dev site with the following code: from selenium import webdriver from selenium.webdriver....
0
votes
0answers
27 views

How do I select the li element from dropdown using java in selenium

Below are the code which I used: driver.findElement(By.xpath("//div[@class=' flag-dropdown']")).click(); WebDriverWait wait = new WebDriverWait(driver, 10); List<WebElement>...
0
votes
0answers
16 views

Make the appium code for swiping dynamic so that it works on all screen sizes

I have a piece of appium code (as below) which does the swipeup action on one android device using co-ordinates(using the coordinates as the element is non-responsive). Is there any way to make it ...
0
votes
0answers
29 views

TestNG parallel execution get failed becouse im using same WebDriver on all tests

There is a situation where I have 150 test cases and I have set up Test NG parallel test execution. Unfortunately, I'm using the same web driver which initialized at the test base class on all the ...
0
votes
1answer
25 views

Unable to run test on gitlab pipeline due to DevToolsActivePort file doesn't exist

I created a sample Selenium Webdriver test using java and maven and pushed it out to my gitlab repository. Then I created a new pipeline to run the automated tests. This is my first time running a ...
0
votes
0answers
21 views

Jenkin fail without explanation running tests process exitcode 143

I have multiple test suites running on jenkins, however there is only one which never completes. It gets interrupted but never shows why The only thing I see in my console of the build is this: 04:13:...
0
votes
1answer
26 views

Whatsapp Web QR code Scanning using Appium Java

I have a company in-built web application that behaves similar to WhatsApp web. I need to link/scan using QR code of WhatsApp mobile application with company inbuilt web application using Appium with ...
1
vote
3answers
66 views

How to open outlook and click on the link that is there in the mail using seleniumn

In my application I need to send a confirmation after which an mail will arrive to my Outlook which I need to open and click on the link which is sent in the mail. Can someone please let me know if ...
0
votes
0answers
39 views

Try catch not catching NoSuchElementException

kinda confused. I have a method I created to help me handle various scenarios public void WaitHandler(IWebElement element) { int i = 0; WebDriverWait wait = new ...
-1
votes
1answer
22 views

cannot click on link Python Selenium

I am trying to add a confirmation link on selenium but selenium is not able to click on that link its on yopmail with name janemartin90452 It doesn't click on the confirmation link Name "Activate ...
0
votes
3answers
44 views

how to get span based on the <p> found

How do i find the element Jessica based on 3000 using xpath. I'm getting ...not a valid xpath error. Jessica Total Wealth ($): 3000 <div> <span><b>Jessica</b></...
3
votes
0answers
34 views

Server gets incredibly slow when running Selenium

I'm attempting to run Selenium (Chrome) test on 2 servers, each running Windows Server 2019 Standard (with GUI). The first server (the one with the worst specs) has the following specs: It runs ...
0
votes
0answers
68 views

How can i assert a line that is present on the chrome console?

Basically i am trying to automate if a player receives data from OBS. Besides manual, the best way i can think of how to automate would be able to read and confirm that the player is receiving data ...
1
vote
0answers
21 views

Mac running out of space after several UI automation runs

I am running UI automation locally using selenium webdriver, chromedriver, and jest, on MacOS. After several runs I run out of local storage. You can watch storage decrease by about 50 gb every run. ...
0
votes
2answers
98 views

How can use WebDriver sampler in JMeter to mimic 100 users login and performing some action?

I am working on creating a load test in JMeter: 100 users login to the product at the same time. Each user performs some UI action like running a user report or updating user profile page. Each user ...
0
votes
1answer
42 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,...
0
votes
2answers
103 views

How can I run a login test for 100 users at the same time using Selenium, TestNG and Cucumber? [closed]

I am a newbie in Automation testing. I have a list of 100 users in a excel spreadsheet: User1: userid1/password1 User2: userid2/password2 ... and so on. I need to create a script and make all 100 ...
0
votes
1answer
47 views

Unable to locate pseudo element using javascript executor in Selenium JAVA

I am currently having issues with locating an pseudo element for a web page. I have checked other articles to use javascript and tried but it still isnt getting it. Below is a screenshot of what the ...
0
votes
1answer
42 views

Does Selenium FindBy annotation accepts value from object repository?

I am wondering whether @FindBy annotation accepts xpath from properties or object repository file? and also please let me know , what is the practical approach ? a. Using Page object model having all ...
0
votes
1answer
40 views

selenium select checkboxes between checkboxes : Python

This is the how my HTML looks like: <tr> <td class = 'text-bar'> id </td> <td> <input type="checkbox" size = "20" value= 'Yes' id =...
0
votes
0answers
16 views

MatcherAssert fails on popup modal

I have a script that goes to a page, clicks a button and then uses a MatcherAssert to check I am getting the right messaging on a gating modal. Here's the script: package com.lbr.testcases.lexology....
0
votes
0answers
31 views

How can I use a for loop in this code in python

I want to run my code 10 times in 10 new tabs. Kindly help me on how can I use a for loop and open in 10 different tabs. code; import time from selenium import webdriver from selenium.webdriver....
0
votes
1answer
29 views

How can I handle browser alert

I do not understand how to click allow button. import time from selenium import webdriver chrome_options = webdriver.ChromeOptions() chrome_options.add_argument("--disable-notifications") ...
-1
votes
1answer
34 views

Not able to click() on newly added account number from a account list on the page

A new account is created using selenium script and a message appears that "Account is created successfully : <***12345>" After this, Account page is displayed where all the accounts ...
2
votes
1answer
55 views

How to start Chrome in automation mode from command line?

I am trying to find how to start Chrome as if it was started by webdriver, but manually from command line. I was looking at this list of options, but couldn't find what I need. https://peter.sh/...
0
votes
2answers
31 views

Seeing NullPointerException on running TestNG Selenium Framework

Written the Test Script in TestNG framework where the Open browser activity is happening in "baseClass" under @BeforeTest annotation and the Test Script is written in Test Packages under as @...
0
votes
3answers
122 views

How to pass text dynamically in xpath under Properties file

I am stuck in a situation where I want to write Xpath dynamically in the properties file. The actual XPath is like in property File div[contains(text(),'<state Name>')]. State Name changes ...
0
votes
3answers
91 views

Cant fill out Username and Password field using Selenium

I'm trying to fill out a Username and Password field on a website. The id changes every time, so I cant find the elements by using the id. So I tried by using XPath and class name, but none of them ...
0
votes
0answers
90 views

How to perform mouse hover in selenium java using page object model approach?

I have automated some test cases mentioned at https://www.techlistic.com/2019/08/automate-buy-product-using-selenium.html For second test case mentioned at given link, I have written code for mouse ...

1
2 3 4 5
96