OldCityCat wrote: ↑03 Jul 2022, 17:58
ahk7,
Thank you for your reply;
No need to install anything or specify the path to webdriver, that is all taken care of automatically (it downloads the correct driver etc)
Sorry maybe I should not have used "Install", I download the chromedrive based on my version of Chrome 103.0.5060.66 added to my %A_ScriptDir%
I have referred to How-to-use, and watched the "Automate Chrome with Rufaydium and AutoHotkey First Tutorial"
https://www.the-automator.com/?s=Rufaydium
This was in the Chrome web address "localhost:8080" after running the script.
I get the same error with the following code;
Code: Select all
#Include Rufaydium.ahk
;Driver := new RunDriver("chromedriver.exe")
;Chrome := new Rufaydium("chromedriver.exe")
;Page := Chrome.NewSession()
;Page.Navigate("https://www.autohotkey.com/")
return
As you can see the only line running is the #Include
Once again thanks for your input.
OldCityCat
1) Please Check Task manager and close are ChromeDriver that are already running,
2) Update Chrome (chrome usually update automatically )
3) Update Autohotkey
Run the following script to find out any issue you are facing......
Code: Select all
#include Rufaydium.ahk
Chrome := new Rufaydium("C:\Rufaydium-Webdriver-main\chromedriver.exe")
if ( Chrome.__class = "Rufaydium")
Msgbox,,Check:, You have sucessfuly included the Rufaydium.ahk`nto Continue.... Press ok
else
{
msgbox,,Check:, Rufaydium.ahk is not properly included please learn how to #include libraries`nScript Exitting....!
return
}
Chrome.Driver.visible := true
if WinExist("C:\Rufaydium-Webdriver-main\chromedriver.exe")
Msgbox,,Check:, you can see Webdriver CMD is visible`nto Continue.... Press ok
else
{
msgbox,,Check:, % "issue: Driver Failed to run for unknown reason"
. "`nDriver Exist: " FileExist("C:\Rufaydium-Webdriver-main\chromedriver.exe")
. "`n`nScript Exitting ....!"
return
}
Page := Chrome.NewSession()
if IsObject(Page)
msgbox,, Check:, Session have been created`nif you do not see new chrome window opened there might be some issue`n`n Press ok to navigate
else
msgbox,, Check:, Failed to created Chrome Session`nScriptExitting
Page.Url := "https://www.autohotkey.com/boards/"
msgbox, page finished loading....!`npress ok to exit chrome and driver
Chrome.QuitAllSessions() ; close all session
Chrome.Driver.Exit() ; then exits driver
msgbox, all session closed and Driver Exitted,`n`nNow Script is Exitting
return
"When there is no gravity, there is absolute vacuum and light travel with no time" -Game changer theory