Jump to content

WebDriver UDF (W3C compliant version) - 07/29/2022


Recommended Posts

  • Replies 993
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Latest update just released. See below for change log.

Quote

    v0.5.0.2
    - Added: CHM help file (water)
    - Changed (_WD_Capabilities): Added support for "binary" option (mLipok)
    - Changed (_WD_Startup): Detect webdriver console exiting with error when launched
    - Chore: Updated function headers (water)
    - Chore: Updated wd_demo.au3
        - Added DemoSleep routine (mLipok)
        - Changed GUI background color for better visibility in Windows 11 (mLipok)
        - Disable "Run Demo" button during demo execution

 

Link to post
Share on other sites
  • 2 weeks later...

Latest update just released. See below for change log.

Quote

    v0.5.0.3
    - Changed (_WD_ExecuteScript): Optionally return value node instead of raw JSON (mLipok)
    - Changed (_WD_ElementActionEx): Added support for "check" and "uncheck" commands (TheDcoder)
    - Changed (_WD_GetElementFromPoint): Added support for frames
    - Fixed (_WD_ElementAction): Return raw response for 'shadow' command
    - Fixed (_WD_GetShadowRoot): Use shadow root identifier

 

Link to post
Share on other sites
  • 1 month later...
  • 2 weeks later...

Latest update just released. See below for change log.

Quote

0.5.2 - 2022-02-11

Changed

  • REVISIONS.md renamed to CHANGELOG.md and format updated
  • _WD_HighlightElements: Refactored for speed; now supports single or multiple elements
  • _WD_UpdateDriver: Adjusted URL to match revised Github repo name

Deprecated

  • _WD_HighlightElement: Flagged as Deprecated and will be removed in a future release

 

Link to post
Share on other sites
  • 2 weeks later...

Latest update just released. See below for change log.

Quote

0.6.0 - 2022-02-22

### Added

- _WD_JsonCookie (mLipok)
- _WD_GetDevicePixelRatio (mLipok)
- _WD_Cookies: Added DeleteAll option (mLipok)
- _WD_ElementSelectAction: Added SelectedIndex option (mLipok)

### Changed

- _WD_ElementSelectAction: Options array expanded to include additional columns (index, selected) (mLipok)
- _WD_Option: Logging can use a custom function or be completely disabled (mLipok)
- wd_capabilities.au3 now uses internal function __WD_ConsoleWrite
- wd_demo.au3
    - Updated DemoCookies
    - Enhanced logging options

### Fixed

- _WD_UpdateDriver: Detect error during download and additional error handling

### Project

- Rename project (repository) to au3WebDriver
- README.md restructuring
- Added files to fulfill the community standards
    - bug_report.md and feature_request.md
    - CODE_OF_CONDUCT.md file
    - PULL_REQUEST_TEMPLATE.md file
- CONTRIBUTING.md file now contains references to bug report template and feature request template

 

 

Link to post
Share on other sites

Hey, Au3WebDriver users.
Please check out wd_demo.au3 and review them as it has changed a lot in the last few months.
There are now new DEMOs, new OPTIONS, new COMMENTS.

If you want new demos in this file, or functionality, don't hesitate to ask.

If the request will be approved, I will treat it as a challenge ;)

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 for other useful stuff click the following button:

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST APIErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) *

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskSchedulerIE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related:How to get reference to PDF object embeded in IE * IE on Windows 11

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

I also encourage you to check awesome @trancexx code:  * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuffOnHungApp handlerAvoid "AutoIt Error" message box in unknown errors  * HTML editor

winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2022-03-07

Link to post
Share on other sites
  • 2 weeks later...

Latest update just released. See below for change log.

Quote

0.7.0 - 2022-03-03

Added

  • Support for Opera browser
  • _WD_GetBrowserPath

Changed

  • __WD_ConsoleWrite: Updated to preserve @error and @extended.
  • _WD_Startup: Added display of webdriver bit level (32 / 64).
  • _WD_UpdateDriver: Support alternate browser location.
  • _WD_UpdateDriver: Extract webdriver executable located in a subfolder
  • _WD_CapabilitiesAdd: Must use 'msedge' instead of 'edge' when for browser name. Script breaking change

Fixed

  • _WD_UpdateDriver: Unpacking webdriver executable failed on some workstations; Better error handling
  • _WD_GetWebDriverVersion: Resolve error Subscript used on non-accessible variable

 

Link to post
Share on other sites
  • 1 month later...

Latest update just released. See below for change log.

Quote

## [0.9.0]

### Added

- _WD_LastHTTPResponse
- _WD_CapabilitiesDefine

### Removed

_WD_CapabilitiesDisplay

### Fixed

- _WD_WaitElement: Prevent premature exit when $_WD_OPTION_NoMatch is True
- __WD_GetLatestWebdriverInfo: Log correct function name
- __WD_UpdateExtractor: Correct detection of executable located in subfolder
- _WD_Startup: Check result of _WinAPI_GetBinaryType

### Changed

- _WD_Startup: Detect missing webdriver executable
- __WD_ConsoleWrite: Added conditional logging via new optional $iDebugLevel parameter
- Support additional debugging level ($_WD_DEBUG_Full)
- _WD_CapabilitiesAdd
    - Support browser specific / vendor capabilities
    - Capability names are case sensitive
- wd_demo
    - Detect / abort on failure to approve cookies
    - Update DemoScript() examples + descriptions

### Project

- Remove unused WinHTTP request object

 

Link to post
Share on other sites
  • 1 month later...

Latest update just released. See below for change log.

Quote

## [0.9.1]

### Fixed

- _WD_ElementAction: Correct action names (CompRole >> ComputedRole & CompLabel >> ComputedLabel)
- _WD_GetWebDriverVersion: Update regex for extracting version number
- Help file search functionality

 

Link to post
Share on other sites

@Danp2 why in 0.9.1 there are not all commits merged, form 0.9.0 till now ?

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 for other useful stuff click the following button:

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST APIErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) *

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskSchedulerIE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related:How to get reference to PDF object embeded in IE * IE on Windows 11

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

I also encourage you to check awesome @trancexx code:  * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuffOnHungApp handlerAvoid "AutoIt Error" message box in unknown errors  * HTML editor

winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2022-03-07

Link to post
Share on other sites
  • 1 month later...

Latest update just released. See below for change log.

Quote

## [0.10.0]

### Added

- _WD_GetElementByRegEx (@TheDcoder)
- _WD_ElementStyle     (@mLipok)
- _WD_Storage

### Changed

- __WD_DetectError: Detect Javascript and Invalid Selector errors
- _WD_SetElementValue: Advanced mode now triggers Change event
- _WD_Startup: Improve logging when existing webdriver instance is reused
- _WD_ElementSelectAction: Disabled option detection
- Logging
    - Reduced detail of messages associated with $_WD_DEBUG_Info
    - Webdriver responses are now only shown with $__WD_DEBUG_Full and they are no longer trimmed by default
- wd_demo
    - Added DemoStyles(), DemoSelectOptions(), UserTesting()
    - Improved demo selection

### Fixed

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

### Removed

- _WD_HighlightElement

 

Link to post
Share on other sites
  • 3 weeks later...

Latest update just released. See below for change log.

Quote

## [0.10.1]

### Added

- _WD_CapabilitiesAdd: Support `webSocketUrl` capability

### Changed

- _WD_ElementSelectAction: Hidden option detection

### Fixed

- _WD_CDPExecuteCommand: Missing $ prefix in variable name
- _WD_CapabilitiesAdd: Support keys containing colons
- _WD_ElementSelectAction: Altering selection now triggers Change event

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...