Skip to content

Commit

Permalink
Release prep (#339)
Browse files Browse the repository at this point in the history
* Add function description
* version bump
* Revise link for latest Edgedriver version
* Update CL
* Update help file
* Update readme
  • Loading branch information
Danp2 authored Jul 13, 2022
1 parent 1c32b24 commit 9f79872
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 50 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

Go to [legend](#legend---types-of-changes) for further information about the types of changes.

## [Unreleased]
## [0.10.0]

### Added

Expand All @@ -30,6 +30,10 @@ Go to [legend](#legend---types-of-changes) for further information about the typ
- Added DemoStyles(), DemoSelectOptions(), UserTesting()
- Improved demo selection

### Fixed

- _WD_UpdateDriver: Revise URL used to determine latest matching version of Edgedriver

### Removed

- _WD_HighlightElement
Expand Down Expand Up @@ -961,7 +965,8 @@ _WD_CapabilitiesDisplay
- Initial release


[Unreleased]: https://github.com/Danp2/au3WebDriver/compare/0.9.1...HEAD
[Unreleased]: https://github.com/Danp2/au3WebDriver/compare/0.10.0...HEAD
[0.10.0]: https://github.com/Danp2/au3WebDriver/compare/0.9.1...0.10.0
[0.9.1]: https://github.com/Danp2/au3WebDriver/compare/0.9.0...0.9.1
[0.9.0]: https://github.com/Danp2/au3WebDriver/compare/0.8.1...0.9.0
[0.8.1]: https://github.com/Danp2/au3WebDriver/compare/0.8.0...0.8.1
Expand Down
91 changes: 46 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,51 +68,52 @@ This au3WebDriver UDF (project) allows to interact with any browser that support
<summary><i>Helper Functions</i></summary>
<p>

| Name | Description |
| :--- | :--- |
| _WD_NewTab | Create new tab in current browser session. |
| _WD_Attach | Attach to existing browser tab. |
| _WD_LinkClickByText | Simulate a mouse click on a link with text matching the provided string. |
| _WD_WaitElement | Wait for an element in the current tab before returning. |
| _WD_GetMouseElement | Retrieves reference to element below mouse pointer. |
| _WD_GetElementFromPoint | Retrieves reference to element at specified point. |
| _WD_LastHTTPResult | Return the result of the last WinHTTP request. |
| _WD_LastHTTPResponse | Return the response of the last WinHTTP request. |
| _WD_GetFrameCount | Returns the number of frames/iframes in the current document context. |
| _WD_IsWindowTop | Returns a boolean of the session being at the top level, or in a frame(s). |
| _WD_FrameEnter | Enter the specified frame. |
| _WD_FrameLeave | Leave the current frame, to its parent. |
| _WD_HighlightElement | Highlights the specified element. |
| _WD_HighlightElements | Highlights the specified elements. |
| _WD_LoadWait | Wait for a browser page load to complete before returning. |
| _WD_Screenshot | Takes a screenshot of the Window or Element. |
| _WD_PrintToPDF | Print the current tab in paginated PDF format. |
| _WD_jQuerify | Inject jQuery library into current session. |
| _WD_ElementOptionSelect | Find and click on an option from a Select element. |
| _WD_ElementSelectAction | Perform action on designated Select element. |
| _WD_ElementStyle | Set/Get element style property. |
| _WD_ConsoleVisible | Control visibility of the webdriver console app. |
| _WD_GetShadowRoot | Retrieves the shadow root of an element. |
| _WD_SelectFiles | Select files for uploading to a website. |
| _WD_IsLatestRelease | Compares local UDF version to latest release on Github. |
| _WD_UpdateDriver | Replace web driver with newer version, if available. |
| _WD_GetBrowserVersion | Get version number of specified browser. |
| _WD_GetBrowserPath | Retrieve path to browser executable from registry. |
| _WD_GetWebDriverVersion | Get version number of specifed webdriver. |
| _WD_DownloadFile | Download file and save to disk. |
| _WD_SetTimeouts | User friendly function to set webdriver session timeouts. |
| _WD_GetElementById | Locate element by id. |
| _WD_GetElementByName | Locate element by name. |
| _WD_SetElementValue | Set value of designated element. |
| _WD_ElementActionEx | Perform advanced action on designated element. |
| _WD_GetTable | Return all elements of a table. |
| _WD_IsFullScreen | Return a boolean indicating if the session is in full screen mode. |
| _WD_GetDevicePixelRatio | Returns an integer indicating the DevicePixelRatio. |
| _WD_CheckContext | Check if browser context is still valid. |
| _WD_JsonActionKey | Formats keyboard "action" strings for use in _WD_Action |
| _WD_JsonActionPointer | Formats pointer "action" strings for use in _WD_Action |
| _WD_JsonActionPause | Formats pause "action" strings for use in _WD_Action |
| _WD_JsonCookie | Formats "cookie" JSON strings for use in _WD_Cookies. |
| Name | Description |
|-------------------------|---------------------------------------------------------------------------------|
| _WD_Attach | Attach to existing browser tab. |
| _WD_CheckContext | Check if browser context is still valid. |
| _WD_ConsoleVisible | Control visibility of the webdriver console app. |
| _WD_DownloadFile | Download file and save to disk. |
| _WD_ElementActionEx | Perform advanced action on designated element. |
| _WD_ElementOptionSelect | Find and click on an option from a Select element. |
| _WD_ElementSelectAction | Perform action on designated Select element. |
| _WD_ElementStyle | Set/Get element style property. |
| _WD_FrameEnter | Enter the specified frame. |
| _WD_FrameLeave | Leave the current frame, to its parent. |
| _WD_GetBrowserPath | Retrieve path to browser executable from registry. |
| _WD_GetBrowserVersion | Get version number of specified browser. |
| _WD_GetDevicePixelRatio | Returns an integer indicating the DevicePixelRatio. |
| _WD_GetElementById | Locate element by id. |
| _WD_GetElementByName | Locate element by name. |
| _WD_GetElementByRegEx | Find element by matching attributes values using Javascript regular expression. |
| _WD_GetElementFromPoint | Retrieves reference to element at specified point. |
| _WD_GetFrameCount | Returns the number of frames/iframes in the current document context. |
| _WD_GetMouseElement | Retrieves reference to element below mouse pointer. |
| _WD_GetShadowRoot | Retrieves the shadow root of an element. |
| _WD_GetTable | Return all elements of a table. |
| _WD_GetWebDriverVersion | Get version number of specifed webdriver. |
| _WD_HighlightElements | Highlights the specified elements. |
| _WD_IsFullScreen | Return a boolean indicating if the session is in full screen mode. |
| _WD_IsLatestRelease | Compares local UDF version to latest release on Github. |
| _WD_IsWindowTop | Returns a boolean of the session being at the top level, or in a frame(s). |
| _WD_JsonActionKey | Formats keyboard "action" strings for use in _WD_Action |
| _WD_JsonActionPause | Formats pause "action" strings for use in _WD_Action |
| _WD_JsonActionPointer | Formats pointer "action" strings for use in _WD_Action |
| _WD_JsonCookie | Formats "cookie" JSON strings for use in _WD_Cookies. |
| _WD_LastHTTPResponse | Return the response of the last WinHTTP request. |
| _WD_LastHTTPResult | Return the result of the last WinHTTP request. |
| _WD_LinkClickByText | Simulate a mouse click on a link with text matching the provided string. |
| _WD_LoadWait | Wait for a browser page load to complete before returning. |
| _WD_NewTab | Create new tab in current browser session. |
| _WD_PrintToPDF | Print the current tab in paginated PDF format. |
| _WD_Screenshot | Takes a screenshot of the Window or Element. |
| _WD_SelectFiles | Select files for uploading to a website. |
| _WD_SetElementValue | Set value of designated element. |
| _WD_SetTimeouts | User friendly function to set webdriver session timeouts. |
| _WD_Storage | Provide access to the broswer's localStorage and sessionStorage objects. |
| _WD_UpdateDriver | Replace web driver with newer version, if available. |
| _WD_WaitElement | Wait for an element in the current tab before returning. |
| _WD_jQuerify | Inject jQuery library into current session. |

<p>
</details>
Expand Down
Binary file modified Webdriver.chm
Binary file not shown.
4 changes: 2 additions & 2 deletions wd_core.au3
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
#EndRegion Many thanks to:

#Region Global Constants
Global Const $__WDVERSION = "0.9.0"
Global Const $__WDVERSION = "0.10.0"

Global Const $_WD_ELEMENT_ID = "element-6066-11e4-a52e-4f735466cecf"
Global Const $_WD_SHADOW_ID = "shadow-6066-11e4-a52e-4f735466cecf"
Expand Down Expand Up @@ -197,7 +197,7 @@ Global $_WD_SupportedBrowsers[][$_WD_BROWSER__COUNTER] = _
[ _
["chrome", "chrome.exe", "chromedriver.exe", False, "goog:chromeOptions", "'https://chromedriver.storage.googleapis.com/LATEST_RELEASE_' & StringLeft($sBrowserVersion, StringInStr($sBrowserVersion, '.') - 1)", "", '"https://chromedriver.storage.googleapis.com/" & $sDriverLatest & "/chromedriver_win32.zip"'], _
["firefox", "firefox.exe", "geckodriver.exe", True, "moz:firefoxOptions", "https://github.com/mozilla/geckodriver/releases/latest", '<a.*href="\/mozilla\/geckodriver\/releases\/tag\/(?:v)(.*?)"', '"https://github.com/mozilla/geckodriver/releases/download/v" & $sDriverLatest & "/geckodriver-v" & $sDriverLatest & (($bFlag64) ? "-win64.zip" : "-win32.zip")'], _
["msedge", "msedge.exe", "msedgedriver.exe", True, "ms:edgeOptions", "'https://msedgedriver.azureedge.net/LATEST_RELEASE_' & StringLeft($sBrowserVersion, StringInStr($sBrowserVersion, '.') - 1)", "", '"https://msedgedriver.azureedge.net/" & $sDriverLatest & "/edgedriver_" & (($bFlag64) ? "win64.zip" : "win32.zip")'], _
["msedge", "msedge.exe", "msedgedriver.exe", True, "ms:edgeOptions", "'https://msedgedriver.azureedge.net/LATEST_RELEASE_' & StringLeft($sBrowserVersion, StringInStr($sBrowserVersion, '.') - 1) & '_WINDOWS'", "", '"https://msedgedriver.azureedge.net/" & $sDriverLatest & "/edgedriver_" & (($bFlag64) ? "win64.zip" : "win32.zip")'], _
["opera", "opera.exe", "operadriver.exe", True, "goog:chromeOptions", "https://github.com/operasoftware/operachromiumdriver/releases/latest", '<a.*href="\/operasoftware\/operachromiumdriver\/releases\/tag\/(?:v\.)(.*?)"', '"https://github.com/operasoftware/operachromiumdriver/releases/download/v." & $sDriverLatest & "/operadriver_" & (($bFlag64) ? "win64.zip" : "win32.zip")'] _
]
#EndRegion Global Variables
Expand Down
2 changes: 1 addition & 1 deletion wd_helper.au3
Original file line number Diff line number Diff line change
Expand Up @@ -2384,7 +2384,7 @@ EndFunc ;==>_WD_GetElementByRegEx

; #FUNCTION# ====================================================================================================================
; Name ..........: _WD_Storage
; Description ...:
; Description ...: Provide access to the broswer's localStorage and sessionStorage objects
; Syntax ........: _WD_Storage($sSession, $sKey[, $vValue = Default[, $nType = Default]])
; Parameters ....: $sSession - Session ID from _WD_CreateSession
; $vKey - Key to manipulate.
Expand Down

0 comments on commit 9f79872

Please sign in to comment.