Jump to content

WebDriver is drivering me crazy


Go to solution Solved by SOLVE-SMART,

Recommended Posts

Posted

Hello!!! I am exhausted, I am not a programmer but I used to write some code with autoit to simpler my repetitive job, once I can count on IE function, they were simple and overall they worked well, but now... IE is not longer supported and I have to use webdriver in order to automate browser actions, I cannot even download it... furthermore English is not my first language and I find a lot of troubles searching for solutions.

I followed the first steps, downloaded these:

but cannot find the webdriver program, I am using this version of Chrome:

Chrome รจ aggiornato (Italian version)
Versione 121.0.6167.185 (Build ufficiale) (a 64 bit)
 
clicking on the link to download the right webdriver I found another page, this https://sites.google.com/chromium.org/driver/downloads which, following the instructions takes me here https://googlechromelabs.github.io/chrome-for-testing/ have I to copy and past it this line? 
"chrome win64 https://storage.googleapis.com/chrome-for-testing-public/121.0.6167.184/win64/chrome-win64.zip 200" 

 

is not it a browser? 

I am confused, any help is really appreciated 

Posted (edited)

Hi @MarcoMonte ๐Ÿ‘‹ ,

let's try something: Usually I recommend further reading of the different documentations like the WebDriver wiki page or all the links on the au3WebDriver repository, but this time I am curious wheater the following could help you for a quick start or not.

Actually I created this for some german forum members, but I guess you could also benefit from it:
Please check out my repository au3webdriver-boilerplate which should help you starting your webdriver actions.
In case you're familiar with GitHub, just clone the repo and go ahead (by reading the README.md file).
Otherwise download the release (zip), and start there (by reading the README.md file).

Please let me know if this is helpful in any way or even if not, what can I improve ๐Ÿค .

Best regards
Sven

Edited by SOLVE-SMART

==> AutoIt related: ๐Ÿ”— GitHub, ๐Ÿ”— Discord Server, ๐Ÿ”— Cheat Sheet

  Reveal hidden contents
Posted

Seems Google moved the download location. Please see this post.

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

Yes @water , you're right ๐Ÿ‘Œ .

@Danp2 already provided a pull request which was tested by @mLipok and should be releases soon I guess.
https://github.com/Danp2/au3WebDriver/pull/508

I already merged the changes into my repo, because I didn't know when the release will be provided.

Best regards
Sven

==> AutoIt related: ๐Ÿ”— GitHub, ๐Ÿ”— Discord Server, ๐Ÿ”— Cheat Sheet

  Reveal hidden contents
Posted

Hello, 

I changed these 2 lines:

 $mConfig.Driver          = 'chrome' ; chrome|firefox|msedge

 $mConfig.FirefoxBinary = '"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"'

I though to leave the variable name the same...

 

unfortunately when I run the mani I get an alert from Avast, I attached it

I am sure this is just a false alarm or it depends from the lines I changed?

Screenshot 2024-02-20 100503.png

  • Solution
Posted

Hi @MarcoMonte,

in your first post you wrote you want to use chrome. So the file path adjustment of

$mConfig.FirefoxBinary

isn't necessary. It's only for firefox (at the moment). Your alert from Avast is a false-positive, for sure.
Please try to remove (or just comment out) the "#pragma ..." statements and try again.

image.png.9b7dbd7fc401c4ba96ec5478f8775486.png

https://github.com/Sven-Seyfert/au3webdriver-boilerplate/blob/main/src/main.au3

In case this would not change anything, please also comment out the "#AutoIt3 ..." directives (line 5 to 12) and try again.
I strongly believe your virus detection is wrong and you should whitelist the main.au3 (or better the whole project folder).

โš  Please let me know about any positiv or negativ change, thanks.

Best regards
Sven

==> AutoIt related: ๐Ÿ”— GitHub, ๐Ÿ”— Discord Server, ๐Ÿ”— Cheat Sheet

  Reveal hidden contents
Posted

Any update here @MarcoMonte or can this thread be closed in case all is fine for you?

Best regards
Sven

==> AutoIt related: ๐Ÿ”— GitHub, ๐Ÿ”— Discord Server, ๐Ÿ”— Cheat Sheet

  Reveal hidden contents
  • 1 month later...
Posted
  On 2/28/2024 at 6:08 AM, SOLVE-SMART said:

Any update here @MarcoMonte or can this thread be closed in case all is fine for you?

Best regards
Sven

Expand  

Hello Sven,

I was a little busy, sorry if I have not contacted you before, I did not try a thing unfortunately, I will try in these days if time will allow it, thx very much

Posted

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 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
  On 4/19/2024 at 11:48 AM, MarcoMonte said:

I will try in these days if time will allow it, thx very much

Expand  

try also:

https://github.com/mlipok/Au3WebDriver-testing

 

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 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • 2 weeks later...
Posted
  On 5/3/2024 at 12:04 PM, MarcoMonte said:

I would like to thank you for your support

Expand  

You're welcome @MarcoMonte ๐Ÿ˜€ .

  On 5/3/2024 at 12:04 PM, MarcoMonte said:

It worked and I started (slowly) to get the basic, pls, keep this thread alive because I will need help for sure.

Expand  

No worries, simply open a new Thread with "WebDriver" in the title. No need to have one long Thread for different questions/problems (at least in my opinion). So please close this one if okay and open new one when the time will come. I observe Threads with WebDriver related question, so I will see it and most likely will react on such Threads if I can. So like other people here too ๐Ÿ˜€ .

Best regards
Sven

==> AutoIt related: ๐Ÿ”— GitHub, ๐Ÿ”— Discord Server, ๐Ÿ”— Cheat Sheet

  Reveal hidden contents
Posted

Further more it would be better to mark this post as "solution" instead of my question about "updates on this here" ๐Ÿ˜„ .
I believe this lead to more context and so one.

Best regards
Sven

==> AutoIt related: ๐Ÿ”— GitHub, ๐Ÿ”— Discord Server, ๐Ÿ”— Cheat Sheet

  Reveal hidden contents
Posted
  On 5/3/2024 at 12:20 PM, SOLVE-SMART said:

Further more it would be better to mark this post as "solution" instead of my question about "updates on this here" ๐Ÿ˜„ .
I believe this lead to more context and so one.

Best regards
Sven

Expand  

Hello Sven,

I did it, I am looking forward for your ๐Ÿ‘จโ€๐Ÿซ WebDriver Tutorial (coming soon) , 

just start with a first very simple lesson for dummies... pls.

See you soon

Marco

  • 4 months later...
  • Developers
Posted
  On 10/2/2024 at 2:35 PM, Acts432 said:

Here's the link to WebDriver for MS Edge

Expand  

Why post a link?  Just use Google Search and you will get the latest version easily!

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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