Selenium: configure install path

Get help with using AutoHotkey and its commands and hotkeys
new_learner
Posts: 5
Joined: 06 Apr 2020, 08:20

Selenium: configure install path

06 Apr 2020, 08:31

Hello,

My selenium is installed in C:\Users\User\AppData\Local\SeleniumBVasic. How do I configure the Selenium install path to this folder? When I run a sample script, I'm getting an error The source was not found.

The sample code

Code: Select all

driver:= ComObjCreate("Selenium.WebDriver")
driver.Start("ie","http://duckduckgo.com/") 
driver.Get("/")
User avatar
BNOLI
Posts: 527
Joined: 23 Mar 2020, 03:55

Re: Selenium: configure install path

06 Apr 2020, 08:43

Am I right that whatever AHK forum security measure is crippling URLs even in the forums Code Boxes?? :crazy: :x :sick: :thumbdown:
Remember to use [code]CODE[/code]-tags for your multi-line scripts. Stay safe, stay inside, and remember washing your hands for 20 sec !
gregster
Posts: 4214
Joined: 30 Sep 2013, 06:48

Re: Selenium: configure install path

06 Apr 2020, 08:45

BNOLI wrote:
06 Apr 2020, 08:43
Am I right that whatever AHK forum security measure is crippling URLs even in the forums Code Boxes??
Exactly. For new users.
(But I fixed the link above.)
User avatar
boiler
Posts: 4561
Joined: 21 Dec 2014, 02:44

Re: Selenium: configure install path

06 Apr 2020, 08:59

BNOLI wrote: :crazy: :x :sick: :thumbdown:
Since you are a new member of the forum, perhaps you weren’t a regular visitor when it was the target of ongoing crippling attacks that the security measures help to prevent. If you were, you might have quite a different reaction to them.
User avatar
BNOLI
Posts: 527
Joined: 23 Mar 2020, 03:55

Re: Selenium: configure install path

06 Apr 2020, 09:02

C:\Users\User\AppData\Local\SeleniumBVasic is that really the correct link you are referencing too? I'd guess SeleniumBasic would make more sense (and might probably work?)
Remember to use [code]CODE[/code]-tags for your multi-line scripts. Stay safe, stay inside, and remember washing your hands for 20 sec !
new_learner
Posts: 5
Joined: 06 Apr 2020, 08:20

Re: Selenium: configure install path

06 Apr 2020, 09:12

BNOLI wrote:
06 Apr 2020, 09:02
C:\Users\User\AppData\Local\SeleniumBVasic is that really the correct link you are referencing too? I'd guess SeleniumBasic would make more sense (and might probably work?)
Yes. \SeleniumBasic\. Though I haven't found a code to specify a folder as the install path. I was following a tutorial but it didn't need to specify any path to Selenium and the script worked. The tutorial in question
https://the-automator.com/cross-browser-web-scraping-with-autohotkey-and-selenium/
User avatar
BNOLI
Posts: 527
Joined: 23 Mar 2020, 03:55

Re: Selenium: configure install path

06 Apr 2020, 09:20

Don't wanna hijack the OPs thread, but ... (to whom it may concern) :angel:
Spoiler
Remember to use [code]CODE[/code]-tags for your multi-line scripts. Stay safe, stay inside, and remember washing your hands for 20 sec !
new_learner
Posts: 5
Joined: 06 Apr 2020, 08:20

Re: Selenium: configure install path

07 Apr 2020, 07:39

I changed the code from
driver:= ComObjCreate("Selenium.WebDriver")
to

driver:= ComObjCreate("Selenium.IEDriver")

and it worked. Though my compiled exe got quarantined by antivirus :eh:

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], danowelton, Google [Bot], JoeWinograd, malcev, roundedge, ThumpieBunnyEve, wyatterp and 101 guests