Jump to content

Recommended Posts

Posted

I know that we can get the version of the Webdriver UDF by getting the value of "$__WDVERSION" but I believe it would be more convenient to have it as a function (just likeย _WD_IsLatestRelease orย _WD_GetWebDriverVersion), may this be added to the next release?

Example:

Func _WD_GetUDFVersion()
ย  ย  Return $__WDVERSION
EndFunc ย  ;==>_WD_GetUDFVersion

ย 

Thanks

Posted (edited)

Hi @Erik_NJ,

why do you need this? Is there a use case for or is it really only for the sake of convenience? I agree, it would be more consistent regarding the other version information functions, but I am looking for a real use case - because you already did it on your own, right (the function)?

Best regards
Sven

Edited by SOLVE-SMART

==> AutoIt related: ๐Ÿ”— GitHub, ๐Ÿ”— Discord Server, ๐Ÿ”—ย Cheat Sheet,ย ๐Ÿ”—ย autoit-webdriver-boilerplate

Spoiler

๐ŸŒย Au3Forums

๐ŸŽฒ AutoIt (en) Cheat Sheet

๐Ÿ“Š AutoIt limits/defaults

๐Ÿ’Ž Code Katas: [...] (comming soon)

๐ŸŽญ Collection of GitHub users with AutoIt projects

๐Ÿžย False-Positives

๐Ÿ”ฎย Me on GitHub

๐Ÿ’ฌย Opinion about new forum sub category

๐Ÿ“‘ย UDF wiki list

โœ‚ย VSCode-AutoItSnippets

๐Ÿ“‘ย WebDriver FAQs

๐Ÿ‘จโ€๐Ÿซย WebDriver Tutorial (coming soon)

Posted

I checked wd_core.au3 (line 1122) => the function _WD_Option('version') already returns the version number of UDF library.
So your request @Erik_NJย is already built in ๐Ÿ˜€ .

Best regards
Sven

==> AutoIt related: ๐Ÿ”— GitHub, ๐Ÿ”— Discord Server, ๐Ÿ”—ย Cheat Sheet,ย ๐Ÿ”—ย autoit-webdriver-boilerplate

Spoiler

๐ŸŒย Au3Forums

๐ŸŽฒ AutoIt (en) Cheat Sheet

๐Ÿ“Š AutoIt limits/defaults

๐Ÿ’Ž Code Katas: [...] (comming soon)

๐ŸŽญ Collection of GitHub users with AutoIt projects

๐Ÿžย False-Positives

๐Ÿ”ฎย Me on GitHub

๐Ÿ’ฌย Opinion about new forum sub category

๐Ÿ“‘ย UDF wiki list

โœ‚ย VSCode-AutoItSnippets

๐Ÿ“‘ย WebDriver FAQs

๐Ÿ‘จโ€๐Ÿซย WebDriver Tutorial (coming soon)

Posted

Okay, thanks for the answer @Erik_NJ.
I guess it's now a decision of the project maintainers (and/or only of the author) to consider your suggestion or not.

I personally would say, it's already there. I am with you in terms of, it would be more descriptive.
Additionally I am not a big fan of functions with several "switch case" statements, so I would separate this into a single function.
But in terms of the effort-benefit ratio it's hard to spend the time for (adjust wd_*.au3, adjust READMD.md file, possibly adjust wd_demo*.au3 and so on).

What do you mean @Danp2? Should I open an GitHub issue for it and we discuss this there or is it not worthy to open the issue?

Best regards
Sven

==> AutoIt related: ๐Ÿ”— GitHub, ๐Ÿ”— Discord Server, ๐Ÿ”—ย Cheat Sheet,ย ๐Ÿ”—ย autoit-webdriver-boilerplate

Spoiler

๐ŸŒย Au3Forums

๐ŸŽฒ AutoIt (en) Cheat Sheet

๐Ÿ“Š AutoIt limits/defaults

๐Ÿ’Ž Code Katas: [...] (comming soon)

๐ŸŽญ Collection of GitHub users with AutoIt projects

๐Ÿžย False-Positives

๐Ÿ”ฎย Me on GitHub

๐Ÿ’ฌย Opinion about new forum sub category

๐Ÿ“‘ย UDF wiki list

โœ‚ย VSCode-AutoItSnippets

๐Ÿ“‘ย WebDriver FAQs

๐Ÿ‘จโ€๐Ÿซย WebDriver Tutorial (coming soon)

Posted (edited)
2 hours ago, Danp2 said:

Interesting discussion. At this time, I don't see the need to add this function to the UDF because

  • the functionality already exists, albeit in a different format
  • there's nothing preventing you from creating your own wrapper function

Interesting indeed, now, my reason for this request is like I mentioned is for convenience and also aesthetics, as I also mentioned on my first post we haveย _WD_IsLatestRelease and _WD_GetWebDriverVersion, it does makes sense to me to haveย _WD_GetUDFVersion, going for the "already exist in a different format" or creating a wrapper to me that's not a good solution, especially if some newbies are trying to learn this UDF, I know, but my OCD is bothering me ๐Ÿ˜œ

Edited by Erik_NJ
Posted

Fair enough @Erik_NJย ๐Ÿ‘Œ .
I will open an issue on GitHub for it. Maybe also the required pull request too, in case it's fine for @Danp2ย and @mLipokย ... we will see there.
If you're familiar with GitHub, you could do it on your own ๐Ÿค” , how about that?

Best regards
Sven
ย 

==> AutoIt related: ๐Ÿ”— GitHub, ๐Ÿ”— Discord Server, ๐Ÿ”—ย Cheat Sheet,ย ๐Ÿ”—ย autoit-webdriver-boilerplate

Spoiler

๐ŸŒย Au3Forums

๐ŸŽฒ AutoIt (en) Cheat Sheet

๐Ÿ“Š AutoIt limits/defaults

๐Ÿ’Ž Code Katas: [...] (comming soon)

๐ŸŽญ Collection of GitHub users with AutoIt projects

๐Ÿžย False-Positives

๐Ÿ”ฎย Me on GitHub

๐Ÿ’ฌย Opinion about new forum sub category

๐Ÿ“‘ย UDF wiki list

โœ‚ย VSCode-AutoItSnippets

๐Ÿ“‘ย WebDriver FAQs

๐Ÿ‘จโ€๐Ÿซย WebDriver Tutorial (coming soon)

Posted

FYI: GitHub issue https://github.com/Danp2/au3WebDriver/issues/510.

Best regards
Sven

==> AutoIt related: ๐Ÿ”— GitHub, ๐Ÿ”— Discord Server, ๐Ÿ”—ย Cheat Sheet,ย ๐Ÿ”—ย autoit-webdriver-boilerplate

Spoiler

๐ŸŒย Au3Forums

๐ŸŽฒ AutoIt (en) Cheat Sheet

๐Ÿ“Š AutoIt limits/defaults

๐Ÿ’Ž Code Katas: [...] (comming soon)

๐ŸŽญ Collection of GitHub users with AutoIt projects

๐Ÿžย False-Positives

๐Ÿ”ฎย Me on GitHub

๐Ÿ’ฌย Opinion about new forum sub category

๐Ÿ“‘ย UDF wiki list

โœ‚ย VSCode-AutoItSnippets

๐Ÿ“‘ย WebDriver FAQs

๐Ÿ‘จโ€๐Ÿซย WebDriver Tutorial (coming soon)

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...