Questions tagged [webdriver]

WebDriver is an API for controlling web browsers, imitating a real user. It's mostly used for automated tests. WebDriver has multiple language bindings and drivers (allowing to control various browsers). If your question is specific to one of them, make sure to also include the appropriate tag.

WebDriver is an API that allows programs or scripts to introspect into, and control the behavior of, a web browser. It is primarily intended for allowing tests that automate a browser.

The WebDriver API is implemented, natively or via add-ons, for many browsers. The Selenium tools suite provides several WebDriver implementations, e.g. for Firefox or Internet Explorer. Other WebDriver implementations are developed by the browser projects directly, e.g. ChromeDriver for Chrome, or Ghost Driver for PhantomJS.

The WebDriver API specifies a wire protocol which is used for the communication between a WebDriver client and the browser. Clients do not speak the wire protocol directly, they use "language bindings" of the WebDriver API for the respective programming language. The wire protocol is used by the Selenium Grid to pass API commands across network.

There are language bindings of the WebDriver API for Java, C#, Python, Ruby, Perl, PHP, JavaScript, and other languages. Many of the language bindings are provided by the Selenium project. For some languages, there are even multiple language bindings, e.g. WebDriverJs by Selenium and WebdriverJS by webdriver.io.


Reference Links

12238 questions
3
votes
2 answers

ChromeDriver v80 doesn't work even though Chrome version is matched (Chrome v80)

chromedriver.exe file is in the folder it works. the version is 80.0.3987.116. also the chrome's version is 80.0.3987.116. driver = webdriver.Chrome() this doesn't work. with that error message. WebDriverException: Message: unknown error:…
3
votes
0 answers

Ways to solve google's recaptcha under headless chrome webdriver through selenium? Java

Hi I was wondering if there was a way for a user to manually solve google's recaptcha under a headless chrome webdriver mainly through selenium but I am open to any other solution.
3
votes
0 answers

Failed to load extension from: . Manifest file is missing or unreadable error when running Chromium instance with Selenium

I use Selenium for UI tests. I want to run an instance of Chromium but when Chromium is opened I got a pop up with "Failed to load extension from: . Manifest file is missing or unreadable". Clicking ok closes the popup and leaves Chromium open…
Malvinka
  • 1,185
  • 1
  • 15
  • 36
3
votes
0 answers

Angular E2E with Puppeteer but WITHOUT webdriver

I'm running our Angular E2E tests with Puppeteer. This works fine but Protractor is still including webdriver even though it isn't actually needed since Puppeteer handles the connection to and manipulation of Chrome. How can I run Angular E2E tests…
Samuel Neff
  • 73,278
  • 17
  • 138
  • 182
3
votes
2 answers

Ruby : Watir : How to avoid closing browser from Net::ReadTimeout?

I am making an automation program using Watir , that reads links from a file links.txt and then open one by one on chrome browser. When it takes to much time to open then browser and its on loading time it shows me the Net::ReadTimeout. I have tried…
Astrit Shuli
  • 619
  • 4
  • 20
3
votes
3 answers

Chrome page opened with selenium remains blank

I am trying to save a screenshot of a webpage, to do so I am trying to use Selenium. The problem is that once the webpage is opened, it stays blank with "data:" in the URL. Here is my code: from selenium import webdriver options =…
Nefarious62
  • 161
  • 1
  • 5
  • 15
3
votes
1 answer

What is the exact purpose of Selenium Grid?

I am new to Selenium, TestNG and Selenium Grid. I got slightly confused about when exactly I need to use Selenium Grid. Below are my understandings on this. Just let me know if i am right : Selenium Grid is only for running your tests remotely on…
anandhu
  • 686
  • 2
  • 13
  • 40
3
votes
0 answers

What is Instagram bot request limit?

I wrote a Selenium Script to refresh an instagram user's profile every 30 seconds. After sometime Instagram started throwing me "Page Not Found" errors and said "Please wait a few minutes before you try again". I guess this is because of the…
AnonRaider
  • 31
  • 3
3
votes
1 answer

TypeError: required field "posonlyargs" missing from arguments error running a Pytest Script on Python 3.8.1

I created a Simple Selenium Pytest automation script on Python 3.8.1. After running the script I see the below error: Traceback (most recent call last): . . . Error messages . . TypeError: required field "posonlyargs" missing from arguments I…
srini
  • 201
  • 2
  • 11
3
votes
3 answers

How to use the cssSelector :nth-child(n) to locate element in Python Selenium

I'm using Python Selenium to locate element by using nth-child(n). Below is my html code:
William
  • 3,724
  • 9
  • 43
  • 76
3
votes
0 answers

How to inject javascript on Chrome to modify navigator webdriver

In order to make my Chrome Browser undetectable when using Selenium I'm trying to modify the get function on the webdriver to answer always with false. To do so, I've created a Chrome Extension that consist of two files: 1) Manifest.json (It…
3
votes
3 answers

How to selecting option from right click menu with Selenium

I'm using chrome as the driver and after double-clicking/context-clicking, the prompt window opens but the driver won't switch to the prompt window. Here is what I have tried... The page I am opening is google.com, search, then trying to right-click…
3
votes
0 answers

Appium: Starting an android app using an intent?

Does anyone know if it's possible to start an android app with appium using just the intentAction and URL as optionalIntentArguments? This is to test against an expo app in local dev mode running in the Expo client app; I am basically copying what…
user82116
  • 418
  • 5
  • 12
3
votes
1 answer

Configure BrowserMobProxy in C#

Can anyone provide a proper example on how to configure BrowserMobProxy with Selenium Webdriver in C#? Everywhere i search, it mostly provides samples using Java whereas our framework is in C# and on top i want to use BrowserMobPRoxy.This is so I…
Aarthy
  • 71
  • 1
  • 5
3
votes
1 answer

Can WebDriverBackedSelenium be used in C#

Does the Selenium 2 C# library support using Selenium 1 commands? In java you can create a WebDriverBackedSelenium object and use Selenium 1 commands but can this be done in C# ? If yes, whats the syntax ? Thanks, Hasan
Hasan Aziz
  • 81
  • 1
  • 1
  • 4