Category "selenium-webdriver"

python selenium: unable to locate element, svg-icon button inside shadow-root

I'm new in selenium and trying to click icon button. I've used find_element_by_xpath, class_name, or by_id but it always returned an error message: Message: no

{WebElement}.getAttribute("value") returns 0

I am interacting with an element within a webpage: <li class="MuiButtonBase-root MuiListItem-root MuiMenuItem-root jss524 MuiMenuItem-gutters jss525 MuiListI

WhatsApp Web Automation with Python Selenium (unable to locate element)

I am using python and selenium to send a message to a target. I can successfully open whatsapp web but after that I cannot open the inbox of the contact to who

Find Element by Coordinates in Selenium (WebDriver)

I'm aware how to retrieve the coordinates of a web element in Selenium: WebElement element = driver.findElement(By.xpath(XPath)); Point location = element.getL

Is there a way to hide the browser while running selenium in Python?

I am working on a project with selenium to scrape the data, but I don't want the browser to open and pop up. I just wanted to hide the browser and also not to d

How to establish connection with MySQL database which is hosted on Azure Kubernetes cluster

I am working on creating an automated test script in which I am trying to establish connection with database. We are using mySQL database which is hosted on Azu

Taking screenshots for Allure reports from custom TestNG listener - TestListenerAdapter

I'm implementing custom test listener called TestListenerAdapter in my project and I wrote the code to capture screenshot in onTestFailure method of listener cl

Selenium - Get a list of all the elements between two h1 elements

I have a webpage with the following HTML snippet within it <h1> ... </h1> <p> ... </p> <p> ... </p> <h1> ... </h1&

Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. with FF version 26.0 and selenium standalone jar 2.39

I am trying to connect to selenium 2.30 with FF version 26.0 installed in my AWS unix machine but I am getting below error when I start both my client which acc

selenium.common.exceptions.WebDriverException: Message: Can not connect to the Service ./drivers/chromedriver.exe

Trying to set up my first project using Selenium and Python and am getting an error with my chromedriver. I have already found similar questions/solutions on he

Selenium Webdriver and XStudio

Does anybody know how to setup XStudio to run Selenium Webdriver Tests? I cannot find any documentation or information about that. There is only one mention on

How to send ESC key to close pop up window using Python and Selenium?

As mentioned, is there a way to send global ESC key to close popup(CSS MODAL Window)? I tried following but did not work: driver.find_element_by_tag_name('body

Xpath for button having text as 'New'

In our application almost in every screen we have a button with text 'New', Here is the html source for one of the button: <button id="defaultOverviewTable:

Test if element is present using Selenium WebDriver?

Is there a way how to test if an element is present? Any findElement method would end in an exception, but that is not what I want, because it can be that an el

Selenium 4.x execute "Page.addScriptToEvaluateOnNewDocument" properly

I'm having a strange issue where I really cannot find a solution. My production website needs some testing and of course bot checking is enabled (not naming it)

Selenium getting error

This is my selenium test script. import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.ie.Internet

How can I select all the options in a drop down- Selenium Webdriver?

Currently working on Selenium WebDriver and using Java. If I have drop down name called Product.. In that drop down I have so many values (for ex:60). when exe

What is the best way to avoid NoSuchElementException in Selenium?

I have written few test cases in Selenium WebDriver using Java and execute them on grid (hub and multiple nodes). I have noticed that a few test cases fail due

How to use verifyText for comparing two strings?

As we know, assert continues the execution but verify stops the execution the moment the script fails. e.g suppose two string abc, abd xyz i want to verify the

how do I make Selenium webdriver to read a csv file to perform an action

how do I make Selenium webdriver to read a csv file to perform an action. I have my script to load it in the browser and perform an action how do I make it to r