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
5 views

Log4j2 logs are capturing java debug code into of the log4j2 code I enter

Log4j2 logs are capturing java debug code into of the log4j2 code I enter like log.info or log.error. Can someone please help me in fixing this? Thanks. log4j2.xml <?xml version="1.0" ...
user avatar
0 votes
1 answer
14 views

Scrollbar value returns false even though it is present

I have a pop up which enables a scroll bar depending on the element count it contains. Right now there are more than two elements and scroll bar is present. Below is my html view of the pop up. <...
user avatar
0 votes
1 answer
17 views

Is there any way to trigger before Method only for specific test methods

I need to prepare some data before running some test methods in my test class. But these data will be used only in 5 test methods only. The entire test class has 25 test cases. So is there any way to ...
user avatar
  • 2,093
0 votes
0 answers
13 views

How to pass excel sheet value to DataProvider and achieve parallel Testing?

My excel sheet has 2 columns Username& Password with different 5 records, I want to read and pass data from this excel. I want to provide these to DataProvider then it provides Username and ...
user avatar
0 votes
1 answer
10 views

macOS Monterey12.0+Python+Selenium+Chrome: WebDriverException: Message: 'chromedriver' executable needs to be in PATH & “chromedriver” can’t be opened

I am facing following multiple issues with Python + Selenium + Chrome : WebDriverException: Message: 'chromedriver' executable needs to be in PATH. “chromedriver” can’t be opened because Apple ...
user avatar
0 votes
1 answer
26 views

How to read and pass multiple data from excel in selenium

My excel sheet has 2 columns Username& Password with different 5 records, I want to read and pass data from this excel and want to open 5 chrome browsers with these 5 users. How can this achieve?
user avatar
0 votes
1 answer
28 views

Selenium : webdriver.Chorme() function problems

I have difficulties in finding a solution, can you help me? This is the code text: from selenium import webdriver web = webdriver.Chrome("C:\ Users\giova\Desktop\chromedriver.exe") web.get(&...
user avatar
0 votes
1 answer
25 views

How to get specific data in a div with Selenium?

Let's say this website has frequently changed data (stores). I am also only interested in certain stores from my list. How do I get all the data of the first store from the top and from my list? I was ...
user avatar
1 vote
1 answer
25 views

Selenium Webdriver : Trying to get text, but specific class present

Kindly find attached the html code of the section in question I use the following code and managed to get the text for Status successMessage = driver.findElement(By.xpath("//span[@class='status-...
user avatar
0 votes
1 answer
76 views

Cannot invoke "org.openqa.selenium.SearchContext.findElement(org.openqa.selenium.By)" because "this.searchContext" is null error

I am trying to verify a functionality as a guest user and logged in user. In order to do that I log out form the system and verify the guest user actions then login again and verify logged in user ...
user avatar
0 votes
1 answer
28 views

Element is not clicked even after explicit wait

I am trying to verify default selected value of a dropdown. <div class="p-3 p-md-4 mt-4 mt-md-4 card"><div class="row"><div class="d-flex align-items-center col-...
user avatar
1 vote
1 answer
20 views

Verifying scrollbar is present script fails

I'm trying to check whether a scrollbar is present when there are more than 2 elements in a pop up. Here is the HTML code for the div which enables the scroll bar if when there are more than 2 ...
user avatar
0 votes
1 answer
42 views

Get Time taken to change between two elements

I'm trying to get the scroll time of a carousel. I tried to take time when 1st element is selected and time when 2nd element is selected, then deduct 2nd time from 1st time and get the duration. Below ...
user avatar
-1 votes
2 answers
23 views

How to create new user defined method for picking date from .csv file as param and automate script through Selenium with Java?

I need to create a method to read a date from a CSV file as a parameter. I also need to automate selecting that date from the calendar tool whose HTML is below. I'm using Selenium with Java. <div ...
user avatar
0 votes
0 answers
13 views

Working on Notebook but not working on cmd

I am using Selenium to help me collect data from a web page. This page has two dropdowns, which change a list of links to PDFs which I then download. My code runs fine in a notebook but does not work ...
user avatar
0 votes
2 answers
23 views

Button click was not performed even though element was found

I'm trying to click below button. <button class="MuiButtonBase-root MuiButton-root jss47 jss58 MuiButton-contained jss48 jss59 MuiButton-containedPrimary MuiButton-disableElevation" ...
user avatar
-1 votes
1 answer
13 views

Looking for Javascript coding challenge Websites. Can you guys help?

I really need to improve my JS coding (currently learning ES6) as it would be great for my automation Testing. I would like to take a daily coding challenge (min 30 days) but I'm having difficulty ...
user avatar
  • 419
-1 votes
1 answer
23 views

Fixed storage paths for Selenium screenshots or logs possible?

Details: Currently I use Python 3.10 and Selenium. I used here in the area of functional testing here in particular UI Testing accordingly also Selenium screenshots. But since I work on different ...
user avatar
  • 1,173
1 vote
2 answers
28 views

Getting value from data-value (webdriver selenium / java)

I have the following HTML code <div class="mbsc-sc-whl-c" style="height:40px;margin-top:-21px;"> <div class="mbsc-sc-whl-sc" style="top: 0px; transform: ...
user avatar
0 votes
1 answer
23 views

Different boolean results for same scenario - selenium java

I'm trying to verify whether profile image is present after uploading an image. Image uploads successfully. I have try to verify image with two different ways. profileImage= driver.findElement(By....
user avatar
0 votes
1 answer
29 views

Return always false as using isSelected() in Selenium Webdriver java

I'm trying to use isSelected() method on Amazon website. I'm trying to tick the check-box of item filter and then read the status of check-box by isSelected() but it always returns false message. ...
user avatar
-1 votes
0 answers
21 views

Automate a angular cell-editor drop down using selenium

I am trying to automate the drop down in the attached image. I used JavaScript and JavaScript executor to change the value. I was able to change the value but the value is not set once I click ...
user avatar
0 votes
1 answer
74 views

How to handle disable button?

In my script below code when Thread.sleep() is not used, then it throws an exception "element click intercepted: Element <button _ngcontent-yyo-c131="" class="btn btn-sm btn-...
user avatar
0 votes
1 answer
27 views

How to make table structure file using org.apache.commons.io.FileUtils.writeStringToFile(file)?

I used Webdriver sampler and write selenium -Javascript. Now I used org.apache.commons.io.FileUtils.writeStringToFile(new java.io.File('somefile.log'), 'some-data', 'UTF-8', true) function to write a ...
user avatar
0 votes
2 answers
59 views

can we test GUI and a network protocol (SNMP) using selenium?

I have to test a website using Selenium. This website is a graphical user interface for controlling a device and to shows data from that device. This device is using SNMP which is used to give an ...
user avatar
  • 13
0 votes
3 answers
247 views

Is there a way to record a video of my Selenium automation with Python?

I'd like to have video recordings of the Selenium automation at work. And then delete the recording when the tests pass. This way whenever the tests fail we can quickly replay the video to see what ...
user avatar
  • 390
0 votes
1 answer
32 views

How to make the WebDriverWait.Until() method to NOT whitelist the NoSuchElementException

I am using the WebDriverWait.Until() method in my script to wait for an element to disappear from the UI. For this, there is the ExpectedConditions class and I could have used its ...
user avatar
0 votes
2 answers
34 views

GUI for end-to-end tests

I'm helping an organization that has a website with some moderate-level complexity, past the point of just a bunch of static web pages but not to the point where they have a developer on staff. To ...
user avatar
  • 111
0 votes
1 answer
26 views

Can we write a part of a test with Selenium IDE and the other part with WebDriver and combine the two into one test?

I am new to selenium and am wondering if we can combine both Selenium IDE and WebDriver and write one test. What I mean to ask is, can we use Selenium IDE for the easy tasks that we want to test and ...
user avatar
  • 13
0 votes
1 answer
53 views

Button element found but click() action not performed

I am trying to verify close button using selenium java page object model. Close button is located in a pop up window. Below is the html code for the button. <div class="...
user avatar
0 votes
1 answer
77 views

JMeter + Webdriver : Java code is not taking screenshot and it is giving ERROR c.g.j.p.w.s.WebDriverSampler: Sourced file: inline evaluation of:

I am new to JMeter + WebDriver + Java. JavaScript code is working as expected for screenshot. Due to recent upgrade of Java, we are moving from JavaScript to Java. Below is the code. Can you please ...
user avatar
  • 1
0 votes
0 answers
12 views

In Mac Os Selenium With ROBOT framework is not capturing screenshot of web page.Taking only Mac home page.I am Using 4.1.3 Selenium Maven ,testNG

Robot robot = new Robot(); Rectangle screenRect = new Rectangle(Toolkit.getDefaultToolkit().getScreenSize()); BufferedImage screenShot = robot.createScreenCapture(new Rectangle(Toolkit....
user avatar
0 votes
1 answer
91 views

Compilation stuck at find element by xpath without giving any error

I'm trying to automate a project using selenium page object model. Below is the html code <div class="type-1 overflow-hidden card"><div class="col-xl-8 offset-xl-2">&...
user avatar
-2 votes
1 answer
36 views

Which can be better in automation framework designing for an organisation, Python or Java? [closed]

I want to start automation testing with selenium webdriver(need to design the framework for the same), so which would be better to start with Java or Python ?
user avatar
0 votes
0 answers
65 views

Appium 8.0.0 - Can't locate elements with accessibilityId - StackOverflowError

Using Appium 8.0.0 + selenium java 4.1.3 + java 11.0.4 running tests on remote appium node connected to selenium grid 4 ( in standalone mode ) using appium automationName UiAutomator2 following code ...
user avatar
0 votes
0 answers
4 views

How to run Testproject.io cloud script on command prompt offline

How can I run testproject.io cloud script which I have downloaded on my local PC as YAML file on the Command prompt? What are the basic settings for fetching YAML file in the command prompt?
user avatar
0 votes
0 answers
31 views

Selenium controlled Chrome and Edge can't both access webcams

I am using Selenium 4 in java to control Chrome and Edge and other browsers in order to test a video call app. I have a test where I'm starting up 2 different browsers at once in order to get them to ...
user avatar
0 votes
0 answers
17 views

Making Webpage headless is causing issue with finding WebElement through Xpath

I had to make chrome browser headless after which when I try to see the html code by executing below lines ChromeOptions options = new ChromeOptions(); options.addArguments("--headless"); ...
user avatar
0 votes
0 answers
14 views

Unable to click anchor tag in grid again after navigating to another page

In the gridview I click the anchor tag in column KU_Total Qty following which I navigate to Grid in another page. WebElement totalQty = ldriver.findElement(By.xpath("//td[@aria-describedby='...
user avatar
0 votes
0 answers
30 views

Selenium Webdriver with DevExpress-DevExtreme MultiSelect dropdown crashing blazer app

So I'm currently writing automation tests on a blazer app which uses DevExpress-DevExtreme MultiSelects (testing in a chrome browser). See here for a similar working example (Data Grid not TreeView): ...
user avatar
0 votes
1 answer
235 views

XPath contains(text(), 'string') does not work, but partialLinkText('sameString') works

I'm trying to learn Selenium on Java, can't for the life of me figure out why xpath contain can't find the right element. Here's the whole case: @Test public void test1_FluentWait() { driver.get(&...
user avatar
  • 3
-2 votes
1 answer
15 views

log steps of the tests in Ide Intelij

Is it possible to log steps of the tests that are being executed in the Intelij console??? could someone let me know? some command or plugin that I must install to visualize the steps while I run my ...
user avatar
-1 votes
3 answers
94 views

Not able to select value from drop down menu

https://demo.guru99.com/test/newtours/register.php I was trying to automate the drop down country menu on this page but am unable to select any value from the drop down. Eclipse is throwing the ...
user avatar
  • 1
0 votes
1 answer
101 views

Problem finding element with text when the text contains &nbsb;

I have the following element in the DOM: <div id="sourceListDiv"> <select id="sourceList" onkeydown="uil.handleKeyDown(this)" size="15" ondblclick=&...
user avatar
0 votes
0 answers
185 views

How to display the number of pages in Pagination WebTable using Selenium Webdriver

I wan to display the number of pages in count in Pagination WebTable using FOR Loop, please find the code of FOR Loop condition. But not able to display the total number count of pages. When clicking ...
user avatar
0 votes
0 answers
15 views

Access drop down with class in RobotFramework

I am using RobotFramework. How can I access the drop down with a class? Because I don't have the list name.
user avatar
0 votes
0 answers
71 views

send_keys() command don't work on python selenium

import time from tkinter.tix import ButtonBox from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.common.keys import Keys from ...
user avatar
0 votes
0 answers
40 views

Selenium, print function

I don't know why print is not displayed in the console. It does not show the error either, it says that everything went well. find_element doesn't work either, but time_sleep and quit works. import ...
user avatar
0 votes
0 answers
20 views

How to select date from PickerWheel on browser UI similar to iOS style using Selenium Java

I am trying to select start and end dates from PickerWheel on the browser. But click and select methods are not working. Because to select date we need to move like in iOS devices date picker wheel. I ...
user avatar
  • 1
0 votes
0 answers
126 views

how to load chrome profile with Selenium

So I am trying to write a test in which the first step is logging in, but it is denying me access as it detected automation tools because the javascript has not been enabled and there is no profile. ...
user avatar

1
2 3 4 5
98