gahhon Posted December 21, 2018 Posted December 21, 2018 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
Danp2 Posted December 21, 2018 Posted December 21, 2018 There are multiple options listed in FAQ 31 Latest Webdriver UDF Release Webdriver Wiki FAQs
gahhon Posted December 21, 2018 Author Posted December 21, 2018 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.
Danp2 Posted December 21, 2018 Posted December 21, 2018 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. Latest Webdriver UDF Release Webdriver Wiki FAQs
gahhon Posted December 22, 2018 Author Posted December 22, 2018 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
Danp2 Posted December 22, 2018 Posted December 22, 2018 4 minutes ago, gahhon said: I have look through that WebDriver UDF can achieve that, but I don't find any relevant topic/guide to lead me Did you look at the examples in wd_demo.au3? Latest Webdriver UDF Release Webdriver Wiki FAQs
gahhon Posted December 24, 2018 Author Posted December 24, 2018 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?
Danp2 Posted December 24, 2018 Posted December 24, 2018 Look at my signature. Click the "Latest version" link and then download the zip file containing the complete source code. Extract the files and then take a look at wd_demo.au3 for some examples of using the UDF. Latest Webdriver UDF Release Webdriver Wiki FAQs
gahhon Posted December 25, 2018 Author Posted December 25, 2018 @Danp2 I need the installation guide here. Here is what I had done Download and unzip your source code into a folder (let's named it as ChromeTest) Download and unzip JSON & WinHTTP UDFs Copy Json.au3, BinaryCall.au3, WinHttp.au3 & WinHttpConstants.au3 into ChromeTest Download and unzip Chrome WebDriver, and execute the chromedriver.exe But then I encounter a issue during the execution of chromedriver.exe Please kindly advise what else I am missing or anything? Because I was trying to run your wd_demo.au3 and hit this error
Danp2 Posted December 25, 2018 Posted December 25, 2018 @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. Latest Webdriver UDF Release Webdriver Wiki FAQs
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now