WebDriver: Difference between revisions

From AutoIt Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{WIP}}
{{WIP}}
== Introduction ==
== Introduction ==
=== WebDriver API ===
The W3C WebDriver API is a platform and language-neutral interface and wire protocol allowing programs or scripts to control the behavior of a web browser.
WebDriver enables developers to create automated tests that simulate user interaction. This is different from JavaScript unit tests because WebDriver has access to functionality and information that JavaScript running in the browser doesn't, and it can more accurately simulate user events or OS-level events. WebDriver can also manage testing across multiple windows, tabs and webpages in a single test session.
=== WebDriver UDF ===
The WebDriver UDF allows to interact with any browser that supports the W3C WebDriver specifications. Supporting multiple browsers via the same code base is now possible with just a few configuration settings.
The WebDriver UDF allows to interact with any browser that supports the W3C WebDriver specifications. Supporting multiple browsers via the same code base is now possible with just a few configuration settings.


== Requirements ==
== Requirements ==
The following UDFs need to be installed - '''independant''' of the Browser you try to automate:
The following UDFs need to be installed - '''independant''' of the Browser you try to automate:
* JSON UDF https://www.autoitscript.com/forum/topic/148114-a-non-strict-json-udf-jsmn
* [https://www.autoitscript.com/forum/topic/148114-a-non-strict-json-udf-jsmn JSON UDF]
* WinHTTP UDF https://www.autoitscript.com/forum/topic/84133-winhttp-functions/
* [https://www.autoitscript.com/forum/topic/84133-winhttp-functions/ WinHTTP UDF]
One of the following Drivers needs to be installed - '''depending''' on the Browser you try to automate:
* WebDriver UDF or from [https://github.com/Danp2/WebDriver/releases/latest github]
One of the following Drivers needs to be installed - '''depending''' on the Browser type and version you try to automate:
{| class="wikitable"
{| class="wikitable"
|-
|-
! Browser !! Download Link !! Version / Date !! Comments
! Browser !! Download Link !! Latest Version / Date !! Comments
|-
|-
| Chrome || [https://sites.google.com/a/chromium.org/chromedriver/downloads Google] || 80.0.3987.16 - 2029/12/19 || Follow this [https://sites.google.com/a/chromium.org/chromedriver/downloads/version-selection link] to select the correct version depending on the Chrome version you run!
| Chrome || [https://sites.google.com/a/chromium.org/chromedriver/downloads Google] || 80.0.3987.16 - 2029/12/19 || Follow this [https://sites.google.com/a/chromium.org/chromedriver/downloads/version-selection link] to select the correct version depending on the Chrome version you run!
|-
|-
| Edge || [https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/ Microsoft] || ||  
| Edge || [https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/ Microsoft] || 81.0.370.0 ||  
|-
|-
| FireFox || [https://github.com/mozilla/geckodriver/releases github] || 0.26 / 2019/10/12 || The recommended Firefox version is ≥ 60
| FireFox || [https://github.com/mozilla/geckodriver/releases github] || 0.26 / 2019/10/12 || The recommended Firefox version is ≥ 60
Line 20: Line 28:
| Internet Explorer || [https://www.microsoft.com/en-us/download/details.aspx?id=44069 Microsoft] ||  ||  
| Internet Explorer || [https://www.microsoft.com/en-us/download/details.aspx?id=44069 Microsoft] ||  ||  
|}
|}
== Limitations ==
Not all WebDriver functions have been implemented by each browser. To check the status, click on the below link for each respective browser:
* [https://chromium.googlesource.com/chromium/src/+/master/docs/chromedriver_status.md Chrome]
* [https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver/status Firefox]


== References ==
== References ==
Further information sources:
Further information sources:
* W3C: https://www.w3.org/TR/webdriver/
* W3C: https://www.w3.org/TR/webdriver/

Revision as of 16:59, 26 December 2019

This page is still a work in progress.

Introduction

WebDriver API

The W3C WebDriver API is a platform and language-neutral interface and wire protocol allowing programs or scripts to control the behavior of a web browser.

WebDriver enables developers to create automated tests that simulate user interaction. This is different from JavaScript unit tests because WebDriver has access to functionality and information that JavaScript running in the browser doesn't, and it can more accurately simulate user events or OS-level events. WebDriver can also manage testing across multiple windows, tabs and webpages in a single test session.

WebDriver UDF

The WebDriver UDF allows to interact with any browser that supports the W3C WebDriver specifications. Supporting multiple browsers via the same code base is now possible with just a few configuration settings.

Requirements

The following UDFs need to be installed - independant of the Browser you try to automate:

One of the following Drivers needs to be installed - depending on the Browser type and version you try to automate:

Browser Download Link Latest Version / Date Comments
Chrome Google 80.0.3987.16 - 2029/12/19 Follow this link to select the correct version depending on the Chrome version you run!
Edge Microsoft 81.0.370.0
FireFox github 0.26 / 2019/10/12 The recommended Firefox version is ≥ 60
Internet Explorer Microsoft

Limitations

Not all WebDriver functions have been implemented by each browser. To check the status, click on the below link for each respective browser:

References

Further information sources: