How can I take a screenshot with Selenium WebDriver?

Is it possible to take a screenshot using Selenium WebDriver? (Note: Not Selenium Remote Control)

How to open a new tab using Selenium WebDriver in Java?

How can I open a new tab in the existing Firefox browser using Selenium WebDriver (a.k.a. Selenium 2) in Java?

Selenium Error - The HTTP request to the remote WebDriver timed out after 60 seconds

I've been using Selenium for a number of months, which we're using to automate some of our internal testing processes. The scripts have been passing fine. I've recently upgraded to C# 2.40.0...

Behat, PhantomJS - wait for page load after clicking link?

I'm using Behat 3 and PhantomJS 2. Currently I have a scenario defined as such: @javascript Scenario: I visit the blog through the Blog & Events menu. Given I am an anonymous user And I am on...

Selenium: Scroll till end of the page

Selenium: I am new to WebDriverJS. I have tried this approach in Java. Long repaeted = 0l, scrollHeight = 0l, returnHeight = 0l; while(true){ if (repaeted == 0) { returnHeight = (Long)...

How can Selenium close Chrome browser and open new One

My scenario is to close the chrome browser and open a new one. public String openNewBrowserWindow() { this.log("Opening new Browser window..."); String stringHandles; Set<String>...

Python - Select "Save link as" and save a file using Selenium

Newbie: There are different files on a webpage, which can be downloaded as follows: Right click on a file link Select "Save link as" Click "Save" button on the new window. I tried the following...

C# extent reports when running a test the html report file is not being generated

I am trying out ExtentReports in Visual Studio C#. When i run a test case the html report file is not being generated. I am not sure what is wrong in my code. I think the path to my reports...

Python Selenium Webdriver Handling Multiple Windows At The Same Time

I am working on a project and in this project there are two webpages I need to examine.I have to open these two webpages at the same time in different windows and examine them at the same...

How to use Selenium Webdriver on Heroku?

I am developing a Node.js app, and I use Selenium Webdriver on it for scraping purposes. However, when I deploy on Heroku, Selenium doesn't work. How can I make Selenium work on Heroku?

equals() doesn't work as expected with Selenium

I am trying to compare current URL with a string URL, but the following code returns false. driver.get("https://www.facebook.com"); ...

How To Run Selenium With Chrome In Docker

I installed google-chrome in a Docker, but when I run my Python 2 script of Selenium, it failed like this: [email protected]:/topology-editor/test$ python test.py Traceback (most recent call...

How to use Chrome Profile in Selenium Webdriver Python 3

So whenever I try to use my Chrome settings (the settings I use in the default browser) by adding options = webdriver.ChromeOptions() options.add_argument("user-data-dir=C:\Users\... (my webdriver...

Selenium: WebDriverException:Chrome failed to start: crashed as google-chrome is no longer running so ChromeDriver is assuming that Chrome has crashed

Recently I switched computers and since then I can't launch chrome with selenium. I've also tried Firefox but the browser instance just doesn't launch. from selenium import webdriver d =...

PHP Selenium Blocked by CORS Policy

I am trying to access a website with selenium and i am getting below error And i used the following code i have tried header('Access-Control-Allow-Origin: *'); but did't work for me require_once...

minimize window driver selenium excel vba

I have searched a lot for a way to minimize the window of the driver in selenium for excel vba. I have found ways for Java and python and tried to adopt them but all my tries failed I just found a...

How to search and play a video on YouTube using Selenium in Python?

I want to search and play a video using Selenium in Python. Here is the code: import time from selenium import webdriver from selenium.webdriver.common.by import By from...

How to run Selenium-Webdriver on Heroku with node.js (Firefox or Chrome)

I want to use Selenium on Heroku with Firefox or another browser that is able to display videos. Unfortunately, PhantomJS doesn't work because the browser can't play video. I already tried it...

How to upload a file in popup using Selenium remote webdriver on linux machine

I have to automate an application and am working on Windows machine. On clicking some button, window popup opens where I can choose a file or enter the path. Upload functionality is working fine...

Deprecation issues when using Selenium with PyCharm CE

I am trying to run Selenium through PyCharm CE on MacOS, and am attempting to run it with Google Chrome. However, whenever I run the following: from selenium import webdriver browser =...

Is there a way to use selenium in combination with the Opera GX Browser?

I'm trying to get the current page url on my Opera GX browser, but I can't find if there is a way to do it. I thought selenium might work, but when I run my code, it gives me this in the command...

Downloading files with python using selenium on headless firefox (Ubuntu)

I'm trying to figure out a way for this script to download a file through headless firefox. I'm not seeing it appear in my download directory and I'm not getting any errors, can someone help me...

Selenium in python - Browser closing immediately after open testprogamm

As soon as I run my program, google opens (so far so good) but this window closes immediately after the program has run. I already installed the chromdriver (also matches the version of the search...

Need help scraping a web-page

I started a mini project where I want to retrieve coin name, price, coin market-cap, circulating supply and volume for the first 100 coins on the first page. Until now, (after asking several...

Find sibling/parent of a span tag with Python Selenium

This is my first question so if I missed some information or did anything wrong I already apologize for that. I am using a ChromeDriver to scrape through the Internet. The used language is Python...

Minimal working press and hold example in Selenium

https://stackoverflow.com/questions/68636955/how-to-long-press-press-and-hold-mouse-left-key-using-only-selenium-in-python I am trying the answer by zirene-nguyễn in the above page. But it does...

Click button in using VBA Chrome selenium

Good night I want to click the upload image button using chrome selenium I've tried to code, but it doesn't work Public Sub CallChrome1() Dim ch As Selenium.ChromeDriver Dim wsh As Object ...

AttributeError: 'dict' object has no attribute 'click' error with find_element_by_css_selector() and click() using Selenium and ChromeDriver

I want to use the click command on my test page. But I'm getting the below error. I've written it in python from selenium import webdriver from selenium.webdriver.common.action_chains import...

TypeError: __init__() got an unexpected keyword argument 'service' error using Python Selenium ChromeDriver with company pac file

I've been struggling with this problem for sometime, but now I'm coming back around to it. I'm attempting to use selenium to scrape data from a URL behind a company proxy using a pac file. I'm...

Open Chrome with Rails Feature Spec using Docker

I can't figure out how to make the feature specs work when running non-headless feature specs for Rails in Docker. I can get the Chrome to open, but I'm getting ERR_EMPTY_RESPONSE (basically,...