Category "selenium-webdriver"

How to set default download directory in selenium Chrome Capabilities?

Please find the below code with the chrome capabilities. In fact the browser is not downloading the file to the specified path. private static DesiredCapabili

The constructor WebDriverWait(chromeDriver, int) is undefined [closed]

WebDriverWait is not recognized even though it is imported in the eclipse IDE. Does anyone know the possible reason and fix for this?

How to run testng xml using gradle?

I am trying to run testng.xml using gradle task but looks like its not picking it. Can someone please help me in identifying what I am missing here? Do I need t

How to download a file using the remote selenium webdriver?

I am using a remote selenium webdriver to perform some tests. At some point, however, I need to download a file and check its contents. I am using the remote

selenium with geckodriver does not respect download dir and download filename when executing window.print();

I have a set up where I print the page as pdf using selenium+gecko. But, whatever I do, it does not seem to respect the download.dir option I set nor the downlo

How do I set browser width and height in Selenium WebDriver?

I'm using Selenium WebDriver for Python. I want instantiate the browser with a specific width and height. So far the closest I can get is: driver = webdriver.F

Handling dynamically generated ids in selenium webdriver

I am trying to automate testing of a webpage that contains list of items. User input item is selected and is deleted. Here, I need to select VD2 and delete that

Using Selenium in Python to click through all elements with the same class name

I am trying to click on all of the "like" buttons on a webpage. I know how to click on one of them, but I'd like to be able to click them all. They have the s

How to test email verification flow with dynamic email generation and get email data in automation?

I am facing a problem with registration and login flow where it is required to generate an email and get token for verification. I need a service which allows u

How to maximize Headless Chrome window in Robot Framework?

I'm not able to start Headless chrome with a maximized window. I tried two solutions but none of them worked for me. First solution : Open Browser ${LOGIN_

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