Jump to content

WebDriver - add function (wish)


Recommended Posts

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

Link to comment
Share on other sites

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

Stay innovative!

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)

Link to comment
Share on other sites

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

Stay innovative!

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)

Link to comment
Share on other sites

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

Stay innovative!

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)

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
 

Stay innovative!

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)

Link to comment
Share on other sites

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

Best regards
Sven

Stay innovative!

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)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...