Category "selenium-webdriver"

How to get attribute of element from Selenium?

I'm working with Selenium in Python. I would like to get the .val() of a <select> element and check that it is what I expect. This is my code: def test_

Protractor - Shard By Suite

It looks like Protractor currently allows you to shard by file. Is there way to split it up by suite, if there are files within each suite that are order depend

What is use of '%s' in xpath

I have tried to know the reason in online but i didnt get it. I want to know the reason why '%s' used in xpath instead of giving text message I hope some one

Selenium tests error: WebDriverError: unknown error: net::ERR_CONNECTION

I'm trying to run selenium tests but I get this error: Error: WebDriverError: unknown error: net::ERR_CONNECTION_REFUSED (Session info: chrome=98.0.4758.102)

Cucumber cannot find StepDefinitions while running the code but manually using the option "Find Step" can find step definition

In the project Structure defined like below, src/main/java -- Config (RunCukesTest.java) -- StepDefinitions src/test/resources -- features/login When I run fro

How to read all the rows of the excel sheet and run in Selenium test script using C#?

I need help reading all the rows from excel sheet as a test data in my selenium test case. I can read only one row of an excel sheet with the following code.

How to get the response content in selenium?

When I open the URL with driver.get(url), how can I get the response content of the page? Please refer to the image for more information.

How to get the response content in selenium?

When I open the URL with driver.get(url), how can I get the response content of the page? Please refer to the image for more information.

Get cookies from selenium session

I want to get session variable and cookies after login. i have used selenium webdriver and successfully login. but how to get session and cookies after login in

Python. Selenium. How to wait for new window opens?

I have a button with twitter, and after click new window opens, but before opening there is a timout in few seconds, so is there a way to wait for it? I mait in

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