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
14 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
1answer
35 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
22 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
16 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
29 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
29 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
53 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
20 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
1answer
40 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
34 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
77 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
19 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
31 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
31 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
32 views

Download file in automation at a specific location [closed]

I am automating a webapp using selenium with java and involves downloading of pdf in a specific path. Recently chromedriver.exe stoped opening hence I replaced it with a newer version. But now I see ...
0
votes
0answers
15 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
0answers
18 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
50 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
29 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
56 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
43 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
42 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 ...
0
votes
2answers
31 views

I want to scroll to a specific location Selenium Java

I have a list of webelements, I have written the below code: List <WebElement> feature_tiles = driver.findElements(By.xpath("//div[contains(@class,'featuretile')]//a")); System....
0
votes
2answers
218 views

Iterate through multiple URLs in Selenium

I have to use multiple URLs in same script in Selenium (Java) and have to visit one at a time, perform some operations on the page take a screenshot at the end, and then move one to the next page and ...
0
votes
0answers
42 views

Selenium IE can't find an element by XPath with “invalid selector” error

I'm getting strange error using Selenium WebDriver with IE (version 11). Here log of Selenium: D 2021-06-02 16:33:46:334 c:\projects\webdriver\cpp\iedriver\elementfinder.cpp(60) Using FindElement atom ...
0
votes
0answers
55 views

Protractor file upload hanging after send keys on IE11. Works on Chrome/Firefox

I have a protractor/cucumber script that successfully uploads a file on chrome/firefox. When I run the same script on IE11, then the website hangs with the file dialog box open and no file sent. The ...
0
votes
0answers
25 views

How to type/send values to fast-monaco-editor

I tried clicking on the field and typing values. Actually the field is getting clicked but its not typing values. I am working on protractor Selenium Java framework. Sharing below the code I used ...
0
votes
1answer
29 views

Preparing script for running on server

I'm new here and want to share my experience with you. Till now I didn't have any experience in running my Selenium Java automation script on a server, but now I have a problem: I cannot find more ...
1
vote
1answer
40 views

How to handle below slider option using Selenium Webdriver in java

I can't imaging how to handle below type of slider option using selenium with java. There is no different xpaths for dropping locations. There should be different xpaths to use below option Actions....
0
votes
1answer
55 views

Not able to Launch Edge with Remote Driver can some one pls help

DesiredCapabilities capabillities = DesiredCapabilities.edge(); capabillities.setBrowserName(BrowserType.EDGE); capabillities.setCapability(CapabilityType.ACCEPT_SSL_CERTS, ...
0
votes
0answers
29 views

Is it possible to automate electron applications with RobotFramework Browser library?

I am currently using selenium and python to launch and access elements from an electron application. I've used RobotFramework Browser (rfbrowser) library to automate angular webpages previously and I ...
0
votes
2answers
71 views

Finding sibling of found element using selenium

I've got a field with a date in it that's identified by a code that's shown in the div previous to it. <div class="fcode"> <div class="fcode_n">(123)</div> ...
-1
votes
2answers
45 views

New to automated testing (C#, Selenium/Tosca, .NET, Visual Studio)

After working 4 years as manual tester, I now want and have to learn "how to do test automation" after joining a new company. My new team is currently developing a new web app in Visual ...
0
votes
1answer
28 views

Calculate the time for progress bar is finished and throw warning if it takes too long?

I am automating a file upload on a web page. The point of my automation is to check if the file upload is taking longer than expected. This is the hmtl for the progress upload bar banner: <div ...
1
vote
0answers
33 views

How do I handle Chrome Autofill using Selenium Python?

I encountered an issue using the chrome autofill option. There is any way to handle the options list? (please see the image) What I've done: Load my Chrome Profile Launch Chrome with my loaded ...
0
votes
0answers
45 views

Selenium Error Can not connect to the Service Chrome Driver on CentOS 7 server

I have a CentOS 7 OS install on my server. I am trying to deploy my selenium bot but I got this error. selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service /root/.wdm/...
1
vote
2answers
74 views

Should a newbie in Test Automation learn the core underlying framework?

I am a complete beginner in Test Automation. I am trying to learn Selenium Webdriver with Java, TestNG, Cucumber(BDD) framework, Build tools like Maven. Now, the problem is that there is an existing ...
0
votes
1answer
39 views

2 times drop-down menu selection in a row with RSelenium

I am trying to scrape this website. I got a problem with text fields because text fields and drop-down menus combined. The site does not allow to enter the names of cities directly. For example, I ...
0
votes
2answers
92 views

Selenium driver for web app testing on chrome in incognito windows

So I am trying to use a selenium web driver extension on chrome to record a web application test on a chrome browser that is in an incognito mode. How do you run a test on a web application in an ...
-1
votes
1answer
30 views

Can we execute our test manually on one device and replay the same tests on multiple devices?

I want to test a shopping website, a portal where users can view/filter products (clothes, shoes, etc) the actual buying happens somewhere else, it's kind of an aggregator. [The website is UI heavy - ...
0
votes
1answer
235 views

To click on an element which contains class and title in selenium python

I want to click on an element which contains class and title in selenium python. A webpage contains certain folders with unique name. I want to click on a folder by specifying its name or title. Below ...
1
vote
2answers
94 views

I was asked this question in interview on test automation [closed]

If there are two test cases and the first one failed, in that case I don't want to stop the execution. What needs to be added? Without using TestNG annotations, try/catch, using selenium only.
0
votes
2answers
48 views

The relative xpath for the 2nd button of two identical buttons - selenium

i need to identify the relative xpath for the 2nd button highlighted in the image Can someone help me //*contains(@class,'fa fa-clock-o') I used this. It identifies the first button again.
1
vote
1answer
41 views

How can i call classes under other different class?

This might be a very strange question, but I am not even sure how to title this question. I am quite new to C# and Selenium. I have done some coding on it and I'm quite comfortable creating a (very ...
0
votes
1answer
30 views

how to get the values of “term_from” and “term_to” using selenium

How can i get the value of term_from and term_to from this html table.
1
vote
2answers
70 views

Send_keys in selenium doesn't activate the submit button but manual entering does

I'm struggling with a phone number field that I fill using send_keys function in selenium. Actually, the submit button is supposed to be enabled after filling out the phone number, but it doesn't ...
1
vote
2answers
155 views

SELENIUM - How to count IWebElement in IList<IWebElement> and get the position in the list

I have a problem and I don't know how to solve that... I have 5 exactly the same elements on the page (same div, same class, no id, same inner text). So I can build the XPath - where Selenium returns ...
3
votes
1answer
57 views

How do I create a BaseClass that adds logging messages?

I am using serenity BDD for my automation testing and Page Object Model for my framework. I have created a BasePage class which will be inherited by all the other Pages. I want to minimize the logging ...

1
2 3 4 5
96