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
9 answers

Webdriver to open a mail in Gmail

I have started using Webdriver to automate our testing which is 100% manual. In one of the use cases I need to click on a link sent to the user's inbox. I am facing problems with Gmail in this case. After logging in I am not able to figure out how…
ChrisOdney
  • 6,066
  • 10
  • 38
  • 48
3
votes
3 answers

How to retain the login state in selenium

I use selenium and bs4 to parse web page. And the web page use scan qrcode and verification code to login. I use WebDriverWait to wait the user to login with wait = ui.WebDriverWait(driver, 60) # timeout after 60 seconds, just leave time for…
LF00
  • 27,015
  • 29
  • 156
  • 295
3
votes
2 answers

Change proxy after starting chromedriver in java selenium

Is it possible to use proxy after starting chromedriver on the same browser? EX: I start chrome driver Load website Put in info Use proxy Click submit I think i found some ways to do it in python and JS but im not sure how to convert it to java
Cowsgo
  • 31
  • 1
  • 3
3
votes
0 answers

how can i change encoding in selenium?

i'm trying make autotest by selenium and laravel everysing it is ok, but error comes out when get korean text i'm think it's incoding problem but i don't know how can fix that error look like this, i must get text data like '한국어'. but now is i…
Choi yun seok
  • 309
  • 2
  • 15
3
votes
1 answer

How to accept alerts on Android using Appium and React Native?

I have a React Native application that is being tested using jest + Appium Jest launch the tests to run on real devices, for both Android and IOS. I'm using Appium and wd library for the webdriver API. I need to accept an alert on the screen for…
dfranca
  • 5,156
  • 2
  • 32
  • 60
3
votes
2 answers

Python Selenium Webdriver get text inside "data-original-title"

I have a question about selenium webdriver. Everything is working fine but there is one element I don't get to work. That's the html tag when i inspect the element:
3
votes
3 answers

Why do some elements exist but not interactable/displayed?

I'm pretty new to testing, trying to gain a better understanding of what exactly is going on. I'm finding some of our test codes are failing when the css selector element has a waitUntilCanInteract or waitUntilDisplayed attached to it even though…
Sachin
  • 257
  • 1
  • 3
  • 15
3
votes
4 answers

Chromedriver 76 breaks my test suite "javascript error: circular reference"

I now get "javascript error: circular reference(Session info: chrome=76.0.3809.100)" whenever I try and click on any element on my company's webapp. This is code that was working fine on previous chromedriver versions I have tried the solutions…
3
votes
1 answer

Selenium WebDriverException: Session [null] not available and is not among the last 1000 terminated sessions

I am getting the below WebDriver exception when trying to navigate to a URL (just simply to Google) using Selenium Grid running locally. org.openqa.selenium.WebDriverException: Session [null] not available and is not among the last 1000…
John S
  • 31
  • 1
  • 2
3
votes
2 answers

Error occurred during initialization of boot layer : Unable to derive module descriptor error with Selenium and java

When I tried to set up selenium in eclipse, after adding jar files, while running the program , I am getting the below error: Error occurred during initialization of boot layer java.lang.module.FindException: Unable to derive module descriptor for…
SAVI S
  • 31
  • 1
  • 2
3
votes
2 answers

Python Selenium - Check if a WebElement is equal to another WebElement

How to compare two selenium WebElements to see if they are the same ? First I retrieve a list of input_fields and the first_input element: self.input_fields = driver.find_elements(By.CLASS_NAME, class_name) self.first_input =…
Marco D.G.
  • 2,317
  • 17
  • 31
3
votes
1 answer

What is the difference between rvest::html_text and RSelenium::getPageSource?

I'm scraping a number of webpages, where I noticed the different results that rvest (read_html, then html_text) provides, and the one that RSelenium (getPageSource()) provides. More specifically, when dropdown menus are involved, using html_text…
Hong
  • 574
  • 3
  • 10
3
votes
1 answer

Selenium Web Driver: Extracted Chrome Browser logs are incomplete

I'm writing browser tests for a Vaadin application with help of Selenium. The Chrome browser log console in development utilities shows logs of different log levels (TRACE, SEVERE, WARNING). Following code sets up my test driver: @RunOnHub public…
PAX
  • 1,056
  • 15
  • 33
3
votes
0 answers

ActionChains do not call keyUp events on reset_actions() in Chrome webdriver implementation

I am using send_keys command without using key_up, and I am inclined to think that upon calling ActionChains.reset_actions() the keys that I was send_keying should be released, but alas, they are not. I tried using key_up, but it is only for…
3
votes
1 answer

How can I start the selenium Microsoft Edge?

I'm learning about Selenium webdriver test using Java to test my application. I'm already implemented my tests to Google Chrome and Firefox, but the msedgedriver.exe is not opening the edge browser. I'd like some help! public WebDriver getDriver()…
1 2 3
99
100