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

find the list of hidden elements using selenium with java

I am trying to fetch all elements using findelements method. However, it is getting only visible elements rather than all hidden elements. Could anyone please suggest how to get the list of all hidden ...
user avatar
0 votes
1 answer
24 views

getText() method is returning all small letters in selenium instead of actual case

When I tried to get text of particular element which is returning all small letters. Hence my assertion has failed. kindly help me to get actual innertext and please let me know is there any other ...
user avatar
0 votes
1 answer
30 views

Loop through list of elements and perform a button click

I'm trying to loop through a list of products and identify a product with discount/promotion. if product with discount is available I want to go inside that product clicking buy now and exist for loop....
user avatar
0 votes
2 answers
27 views

Stale Element Exception when looping through list of elements

I trying to loop through a list of products, identify products with discount and click on the first product with discount and and navigate to product page. While looping through for loop I get stale ...
user avatar
0 votes
1 answer
19 views

How to assign an IP to a seleniumGrid

I need seleniumGrid to be accessible via localhost (127.0.0.1) and instead of that, it is being offered in address:port 192.168.1.39:4444 What command option can I use to make it use localhost? The ...
user avatar
-1 votes
0 answers
9 views

How to repeat this script eleven in selenium python

def runn(): allanswpos = driver.find_elements(By.XPATH,"//span[@class='answerText']") for i in range(0,11): for x in range(0,4): if (allanswpos[x].get_attribute('...
user avatar
  • 1
0 votes
0 answers
33 views

How to find and click a span class element using the text of a sibling span class

<div class="answersContainer"> <div class="answer fadeIn" style="visibility: visible;"> <span class="answerBox"> <a name="...
user avatar
  • 1
0 votes
0 answers
5 views

Automation of Dynamics CRM - how to change role in Selenium?

trying to find a way to change roles/teams for the account executing a Dynamics CRM test suite. This is so that business functionality can be covered correctly eg we have Scheduler roles that do ...
user avatar
0 votes
0 answers
24 views

Why does my WebDriver object become null in next scenario?

The single feature file contains 2 Scenarios. Scenario: Go to Given Open Firefox When Go to "https://somewebsite.com/" Scenario: Find profile icon Given Find user profile icon ...
user avatar
0 votes
0 answers
19 views

Can not sendKey to hidden element

I am practicing to interact with element (nopcommerce domain). But meet some problems when trying to sendKey to a invisible element. This is an input field of product tags which become invisible by ...
user avatar
  • 1
0 votes
1 answer
20 views

How to handle download pop-up in Firefox, while downloading XML using Selenium Webdriver?

I am trying to download an XML file from Firefox and Webdriver, but I can't handle the download pop-up. This issue comes only for downloading the XML files. When clicking the button, I need the file ...
user avatar
-1 votes
1 answer
23 views

Automation of End to end Test with Selenium (for web App) and Appium (For Mobile App Testing)

We have this kind of end to end tests to automate : Log in in Web application. Follow few steps there. Do something in Web app so that logged user in Mobile App gets notification. In Mobile App ...
user avatar
  • 99
-1 votes
1 answer
16 views

How to share an allure report over email

I have developed an automation framework using Selenium and pytest. Allure is the reporting tool used in the framework. Can anyone please help me to know how an allure report can be shared? Are there ...
user avatar
  • 1
0 votes
0 answers
16 views

Mobiscroll : Selected value scrolled along when clicked up or down instead of remaning static

With reference to the following screenshot, I am trying to automate clicking of the down button by using the following code : driver.findElement(By.xpath("//div[@class = 'search-start-time']//*[@...
user avatar
0 votes
0 answers
20 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
1 vote
1 answer
31 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
21 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
17 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
17 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
58 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
40 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
41 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
30 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
389 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
29 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
23 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
45 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
27 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
40 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
16 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
27 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
34 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
27 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
47 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
0 votes
1 answer
227 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
31 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
65 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
4 answers
640 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
33 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
35 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
28 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
119 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
121 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
16 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
149 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
38 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
89 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
9 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
40 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

1
2 3 4 5
98