Jump to content

Recommended Posts

Posted

Hi,

I had learnt how to do the auto-login with only IE.

But I wanna do try it on other browser product like Google Chrome and Firefox.

Thus, I did some research on those and I found out that Google Chrome actually need to install 2 files whereas the Firefox need install 1 file.

Unfortunately, both of them are not working as in the files are not found in the extension store.

Please kindly advise.

Source: Firefox Chrome

Posted

Firefox need to install MozRepl, which cannot be find in their store.

Chrome need to install AutoIT for Google Chrome.crx into the Chrome Extension and Enable it, but the enable button is locked. That's mean Step1 is failed I can't proceed onwards.

Posted
23 hours ago, Danp2 said:

Right... the Firefox UDF is marked as EOL. Haven't used the Chrome UDF, but it's my understanding that it isn't working (as you've found). There are other options listed, like IUIAutomation or the WebDriver UDF.

Yeah. I have look through that WebDriver UDF can achieve that, but I don't find any relevant topic/guide to lead me. :(

IUIAutomation I totally confused. LOL

Posted
On 22/12/2018 at 11:46 PM, Danp2 said:

Did you look at the examples in wd_demo.au3?

I don't find that @@

Any also, after I download the UDF file. What should I do with the file edi?

Posted

@Danp2 I need the installation guide here.

Here is what I had done

  1. Download and unzip your source code into a folder (let's named it as ChromeTest)
  2. Download and unzip JSON & WinHTTP UDFs
  3. Copy Json.au3, BinaryCall.au3, WinHttp.au3 & WinHttpConstants.au3 into ChromeTest
  4. Download and unzip Chrome WebDriver, and execute the chromedriver.exe

But then I encounter a issue during the execution of chromedriver.exe

image.png.afcac2a3057e4831be3be63e9a783c6c.png

Please kindly advise what else I am missing or anything?

Because I was trying to run your wd_demo.au3 and hit this error

image.thumb.png.6a893242a3d292bd5baec1165a68cc1f.png

Posted

@gahhon

1. You don't want to manually launch the webdriver (chromedriver, geckodriver, etc). This will be done for you when you execute _WD_Startup.

2. Look at the output from Scite and you'll see that it is trying to launch geckodriver, not chromedriver. Look at line 18, and change it from

Local Const $_TestType = $eFireFox

to

Local Const $_TestType = $$eChrome

This mechanism will allow you to quickly switch back and forth between supported browsers.

 

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
×
×
  • Create New...