Rufaydium WebDriver 1.7.2 (no selenium/websocket)

Post your working scripts, libraries and tools for AHK v1.1 and older
Milchmann
Posts: 112
Joined: 05 Nov 2016, 08:50

Re: Rufaydium WebDriver 1.5.0 (no selenium/websocket)

Post by Milchmann » 19 May 2022, 07:56

Xeo786 wrote:
19 May 2022, 04:43
Milchmann wrote:
19 May 2022, 02:52

Code: Select all

MsgBox % "CDP Frame no " k  " :  Number of Tags : " frame.QuerySelectorAll("input").length()
Page/frame has no input element
How can I then access the frame, for example to insert data into the input element?
and can you replace that line and show me the result from msgbox

Code: Select all

			msgbox, % "FileMove, " this.Dir "\" this.exe ", " this.Dir "\Backup\" this.name " Version " bver1 ".exe" ", 1"
			FileMove, % this.Dir "\" this.exe, % this.Dir "\Backup\" this.name " Version " bver1 ".exe", 1
FileMove, C:\TEMP\Rufaydium\, C:\TEMP\Rufaydium\Backup\ Version .exe, 1

Code: Select all

ChromeDriver := pfadinidatei "\chromedriver.exe"
Chrome := new Rufaydium(ChromeDriver)
Page := Chrome.NewSession()
Page.Navigate("https://www.autohotkey.com/boards/")
Page.CDP.Document()
MsgBox %   Page.url
msgbox % Page.QuerySelectorAll("body").length()
msgbox % Page.cdp.QuerySelectorAll("body").length()
msgbox % Page.QuerySelectorAll("#keywords").length() ; autohkey search
msgbox % Page.cdp.QuerySelectorAll("#keywords").length()
Since the versions from May 17th, 2022, I also have the problem that some pages cannot be queried. example above. I think it has something to do with Capabilities.ahk. Please take a look. With the last one from this morning I don't get any values. With the version from 05/17/22 these are there.

User avatar
Xeo786
Posts: 759
Joined: 09 Nov 2015, 02:43
Location: Karachi, Pakistan

Re: Rufaydium WebDriver 1.5.0 (no selenium/websocket)

Post by Xeo786 » 19 May 2022, 08:39

Xeo786 wrote:
19 May 2022, 00:05
Just Fixed Frame Access from CDP, check out example
Have updated CDP removed Get Document and implemented CDP.frame() access same as Rufaydium Basic

Code: Select all

msgbox, % Page.CDP.FramesLength() ; will return child frame length
Page.CDP.Frame(0) ; sitched to Frame 1
Page.CDP.ParentFrame() ; sitched back to Main page / frame
"When there is no gravity, there is absolute vacuum and light travel with no time" -Game changer theory

User avatar
Xeo786
Posts: 759
Joined: 09 Nov 2015, 02:43
Location: Karachi, Pakistan

Re: Rufaydium WebDriver 1.5.0 (no selenium/websocket)

Post by Xeo786 » 19 May 2022, 09:12

Milchmann wrote:
19 May 2022, 07:56
Since the versions from May 17th, 2022, I also have the problem that some pages cannot be queried. example above. I think it has something to do with Capabilities.ahk. Please take a look. With the last one from this morning I don't get any values. With the version from 05/17/22 these are there.
Passing invalid location was making Rufaydium to delete All files
Just fixed that bug.....
now it will not delete any file but its downloading driver every time into A_ScriptDir and using it to automate stuff

Code: Select all

Chrome := new Rufaydium()
Page := Chrome.getSessionByUrl("https://www.autohotkey.com/boards/")
if !isobject(page)
{
	Page := Chrome.NewSession()
	Page.Navigate("https://www.autohotkey.com/boards/")
}
MsgBox % Page.url
. "`nbody len from Basic "	Page.QuerySelectorAll("body").length()
. "`nbody len from CDP "		Page.cdp.QuerySelectorAll("body").length()
. "`nkeywords len from Basic "	Page.QuerySelectorAll("#keywords").length() ; autohkey search
. "`nkeywords len from CDP "	Page.cdp.QuerySelectorAll("#keywords").length()
Page.QuerySelector("#keywords").sendkey("ABC/")
Page.cdp.QuerySelector("#keywords").sendkey("CDP")
I need to do more testing before making new release
"When there is no gravity, there is absolute vacuum and light travel with no time" -Game changer theory

Milchmann
Posts: 112
Joined: 05 Nov 2016, 08:50

Re: Rufaydium WebDriver 1.5.0 (no selenium/websocket)

Post by Milchmann » 19 May 2022, 09:16

Xeo786 wrote:
19 May 2022, 08:39
Xeo786 wrote:
19 May 2022, 00:05
Just Fixed Frame Access from CDP, check out example
Have updated CDP removed Get Document and implemented CDP.frame() access same as Rufaydium Basic

Code: Select all

msgbox, % Page.CDP.FramesLength() ; will return child frame length
Page.CDP.Frame(0) ; sitched to Frame 1
Page.CDP.ParentFrame() ; sitched back to Main page / frame
045: CDPframe := Page.CDP.GetDOCwithframe()
046: MsgBox,json.dump(CDPframe)
---- C:\TEMP\Rufaydium\lib\JSON.ahk
247: this._init()
065: if (this.lib)
066: Return
248: if (!IsObject(obj))
249: Throw,Exception("Input must be object") (22.86)
with error

Milchmann
Posts: 112
Joined: 05 Nov 2016, 08:50

Re: Rufaydium WebDriver 1.5.0 (no selenium/websocket)

Post by Milchmann » 19 May 2022, 09:21

Xeo786 wrote:
19 May 2022, 09:12

I need to do more testing before making new release
Thanks ....

User avatar
hotcheesesoup
Posts: 34
Joined: 08 May 2022, 01:41

Re: Rufaydium WebDriver 1.5.0 (no selenium/websocket)

Post by hotcheesesoup » 19 May 2022, 23:23

We can also access previously created session with title or URL,

Code: Select all

Session := Rufaydium.getSession(1) ; this will return with Session by number sequencing from first created to latest created
Session := Rufaydium.getSession(1,2) ; this will return with first session and switch Second tab, Tabs count from left to right
Session := Rufaydium.getSessionByUrl(URL)
Session2 := Rufaydium.getSessionByTitle(Title)
Note: above methods are based on Rufaydium.getSessions() which is not W3C standred and only supports Chrome or chrome Based browser, does not support firefox's geckodriver.exe, I am thinking about saving all session IDs created from geckodriver and saving them into some ini and implemenet getSessionByUrl() & getSessionByTitle().
I'm having trouble getting this to work, but maybe I'm doing it wrong.

I have one script that created the new Rufaydium and Session, and it is actively connected to Chrome and working fine. Is it possible to connect to this same Chrome browser with a separate .ahk file since the driver is still running?

I have the URL, I have the Title, and I only have one instance running, but all I get are WinHttp errors when attempting to use them from another script. It seems similar to ahk7's error mentioned earlier.

Thanks!
-HCS

User avatar
Xeo786
Posts: 759
Joined: 09 Nov 2015, 02:43
Location: Karachi, Pakistan

Re: Rufaydium WebDriver 1.5.0 (no selenium/websocket)

Post by Xeo786 » 20 May 2022, 01:25

Milchmann wrote:
19 May 2022, 09:16

Code: Select all

045: CDPframe := Page.CDP.GetDOCwithframe()
046: MsgBox,json.dump(CDPframe)
---- C:\TEMP\Rufaydium\lib\JSON.ahk
247: this._init()  
065: if (this.lib)  
066: Return
248: if (!IsObject(obj))  
249: Throw,Exception("Input must be object") (22.86)
with error
as I have mentioned I have changed Frame switching method for convenience

Code: Select all

#include, Rufaydium.ahk
Chrome := new Rufaydium()
Page := Chrome.getSessionByUrl("https://wiki.selfhtml.org/extensions/Selfhtml/frickl.php/Beispiel:JS-Event-ondblclick.html#view_result")
if !isobject(page)
{
	Page := Chrome.NewSession()
	Page.Navigate("https://wiki.selfhtml.org/extensions/Selfhtml/frickl.php/Beispiel:JS-Event-ondblclick.html#view_result")
}
MsgBox % "LineNumber " A_LineNumber  " :  Number of Tags on Main Page : " Page.QuerySelectorAll("*").length()
Page.CDP.Frame(0) ; sitched to Frame 1
MsgBox % "LineNumber " A_LineNumber  " :  Number of Tags on Frame 1 : " Page.QuerySelectorAll("*").length()
Page.CDP.ParentFrame() ; sitched back to Main page / frame
MsgBox % "LineNumber " A_LineNumber  " :  Number of Tags on Main Page : " Page.QuerySelectorAll("*").length()
hotcheesesoup wrote:
19 May 2022, 23:23
I have the URL, I have the Title, and I only have one instance running, but all I get are WinHttp errors when attempting to use them from another script. It seems similar to ahk7's error mentioned earlier.
Thanks!
-HCS
I haven't tried that but theoretically its should be possible, As WebDriver create HTTP server and AHK communicates with HTTP server using "WinHttp.WinHttpRequest.5.1" COM object.

Two scripts can communicate one by one, if both script try to get result at once idk what error might that cause as we have Two WinHttp COMs but server created by driver is One.

Edit1:
Just made few changes and now more than one script can communicate one HTTP server
Save following Script with two different for example Test1.ahk Test2.ahk, run both one by one

Code: Select all

#include, Rufaydium.ahk
Chrome := new Rufaydium()
Page := Chrome.getSessionByUrl("https://www.autohotkey.com/boards/")
if !isobject(page)
{
	Page := Chrome.NewSession()
	Page.Navigate("https://www.autohotkey.com/boards/")
}
Page.QuerySelector("#keywords").sendkey("ABC/")
Page.cdp.QuerySelector("#keywords").sendkey("CDP")
exitapp
Test1.ahk created and sendkeys to webpage
Test2.ahk connect to same page and send keys
Last edited by Xeo786 on 20 May 2022, 01:36, edited 1 time in total.
"When there is no gravity, there is absolute vacuum and light travel with no time" -Game changer theory

User avatar
hotcheesesoup
Posts: 34
Joined: 08 May 2022, 01:41

Re: Rufaydium WebDriver (no selenium/websocket)

Post by hotcheesesoup » 20 May 2022, 01:30

ahk7 wrote:
12 May 2022, 14:12
I tried out the latest version but now I get all sorts of WinHttp.WinHttpRequest errors from "WDM.ahk" while the previous version I had still works (I copied all new files into a new folder, chrome and webdriver match.
It starts the session alright but as soon as I try stuff like Session.getSessionByUrl(url) Session.title() I get these errors below. Something I'm missing?
Error in #include file WDM.ahk wrote:Source: WinHttp.WinHttpRequest
Description: The URL does not use a recognized protocol
---> 169: WebRequest.Open(Method, url, false)

Source: WinHttp.WinHttpRequest
Description: This method cannot be called until the Open method has been called
---> 170: WebRequest.SetRequestHeader("Content-Type","application/json")

Source: WinHttp.WinHttpRequest
Description: This method cannot be called until the Open method has been called
---> 175: WebRequest.Send()

etc
...

Thanks for the info. I'll try out some other stuff and see what happens.

I think it was giving these same errors.

User avatar
Xeo786
Posts: 759
Joined: 09 Nov 2015, 02:43
Location: Karachi, Pakistan

Re: Rufaydium WebDriver (no selenium/websocket)

Post by Xeo786 » 20 May 2022, 01:37

hotcheesesoup wrote:
20 May 2022, 01:30
ahk7 wrote:
12 May 2022, 14:12
I tried out the latest version but now I get all sorts of WinHttp.WinHttpRequest errors from "WDM.ahk" while the previous version I had still works (I copied all new files into a new folder, chrome and webdriver match.
It starts the session alright but as soon as I try stuff like Session.getSessionByUrl(url) Session.title() I get these errors below. Something I'm missing?
Error in #include file WDM.ahk wrote:Source: WinHttp.WinHttpRequest
Description: The URL does not use a recognized protocol
---> 169: WebRequest.Open(Method, url, false)

Source: WinHttp.WinHttpRequest
Description: This method cannot be called until the Open method has been called
---> 170: WebRequest.SetRequestHeader("Content-Type","application/json")

Source: WinHttp.WinHttpRequest
Description: This method cannot be called until the Open method has been called
---> 175: WebRequest.Send()

etc
...

Thanks for the info. I'll try out some other stuff and see what happens.

I think it was giving these same errors.
read above as I made few changes. please get latest repo.
"When there is no gravity, there is absolute vacuum and light travel with no time" -Game changer theory

Milchmann
Posts: 112
Joined: 05 Nov 2016, 08:50

Re: Rufaydium WebDriver 1.5.1 (no selenium/websocket)

Post by Milchmann » 20 May 2022, 03:17

Hi ,
read above as I made few changes. please get latest repo.
I have 3 scripts accessing Chrome at the same time. So far I have helped myself by opening a new session each time, and then assigning it to the respective script. I can then omit this. :bravo:
arg parameters I can still assign to each session individually ( different path, incognito, etc)?
I will try the new one on Monday. Top

I would like to gently inquire if you can still answer/eliminate these questions/errors for me?
Xeo786 wrote: ↑
Yesterday, 10:43

Milchmann wrote: ↑
Yesterday, 08:52

Code: Select all - Download - Toggle Line numbers

Code: Select all

        MsgBox % "CDP Frame no " k  " :  Number of Tags : " frame.QuerySelectorAll("input").length()
Page/frame has no input element
How can I then access the frame, for example to insert data into the input element?

Code: Select all

. "`nbody len from CDP "		Page.cdp.QuerySelectorAll("body").length()
. "`nkeywords len from Basic "	Page.QuerySelectorAll("#keywords").length() ; autohkey search
does not work yet

Code: Select all

Page.QuerySelector("#keywords").sendkey("ABC/")
works, thanks

And a general question.
It is very confusing to have Rufaydium as basic and as cdp. Can't these two be combined into one.
Especially because in addition to get .value which is controlled by javascript I still need

Code: Select all

msgbox % driver.CDP.Evaluate("document.querySelectorAll(xxxx')[0].value;").value
must be called.
Last edited by Milchmann on 21 May 2022, 07:45, edited 2 times in total.

User avatar
Xeo786
Posts: 759
Joined: 09 Nov 2015, 02:43
Location: Karachi, Pakistan

Re: Rufaydium WebDriver 1.5.1 (no selenium/websocket)

Post by Xeo786 » 20 May 2022, 07:13

Milchmann wrote:
20 May 2022, 03:17
Hi,
read above as I made few changes. please get latest repo.
I have 3 scripts accessing Chrome at the same time. So far I have helped myself by opening a new session each time, and then assigning it to the respective script. I can then omit this. :bravo:
arg parameters I can still assign to each session individually ( different path, incognito, etc)?
I will try the new one on Monday. Top

I would like to gently inquire if you can still answer/eliminate these questions/errors for me?
Xeo786 wrote: ↑
Yesterday, 10:43

Milchmann wrote: ↑
Yesterday, 08:52

Code: Select all - Download - Toggle Line numbers

Code: Select all

        MsgBox % "CDP Frame no " k  " :  Number of Tags : " frame.QuerySelectorAll("input").length()
Page/frame has no input element
How can I then access the frame, for example to insert data into the input element?

Code: Select all

. "`nbody len from CDP "		Page.cdp.QuerySelectorAll("body").length()
. "`nkeywords len from Basic "	Page.QuerySelectorAll("#keywords").length() ; autohkey search
does not work yet

Code: Select all

Page.QuerySelector("#keywords").sendkey("ABC/")
works, thanks

And a general question.
It is very confusing to have Rufaydium as basic and as cdp. Can't these two be combined into one.
Especially because in addition to get .value which is controlled by javascript I still need

Code: Select all

msgbox % driver.CDP.Evaluate("document.querySelectorAll(xxxx')[0].value;").value
must be called.
frames access methods for Basic and CDP are same now


There are Two ways to automate Chrome / chromium based browsers, 1) Basic 2) is CDP Chrome Devtools Protocls
Consider Webdriver Basic as simple human interactions with webpage, but sometime we need to edit/modify Page, then we have to use CDP

driver.CDP.Evaluate(js) simply evaluate JS is same as driver.ExecuteSync()
for example both method do same thing with different approach using CDP

Code: Select all

; using Evaluate JS
msgbox % driver.CDP.Evaluate("document.querySelectorAll('input')[0].value;").value 
; using CDP Getelement
msgbox % driver.CDP.querySelectorAll("input")[0].value
but getting value is simple therefore we should use Basic

Code: Select all

msgbox % driver.querySelectorAll("input")[0].value
its better to use CDP when it comes to DOM manipulation for example changing html of some element

Code: Select all

; here we are changing HTML
msgbox % driver.CDP.querySelectorAll("input")[0].OuterHTML 
htm = <div name="abc" id="abc" type="abc" title="abc" class="abc class">abc<div>
driver.CDP.querySelectorAll("input")[0].OuterHTML := htm
msgbox % driver.CDP.querySelectorAll("input")[0].OuterHTML 
above code is also possible with basic

Code: Select all

; careful about case as JS is case sensitive 
js = document.querySelectorAll("input")[0].outerHTML = '<div name="abc" id="abc" type="abc" title="abc" class="abc class">abc<div>'
driver.ExecuteSync(js)
all these methods uses different approaches, we now have multiple options, simple command doing complicated stuff and complicated commands doing simple stuff. its all depends on user knowledge and way of approach.
"When there is no gravity, there is absolute vacuum and light travel with no time" -Game changer theory

User avatar
hotcheesesoup
Posts: 34
Joined: 08 May 2022, 01:41

Re: Rufaydium WebDriver (no selenium/websocket)

Post by hotcheesesoup » 20 May 2022, 08:56

Xeo786 wrote:
20 May 2022, 01:37
hotcheesesoup wrote:
20 May 2022, 01:30
ahk7 wrote:
12 May 2022, 14:12
I tried out the latest version but now I get all sorts of WinHttp.WinHttpRequest errors from "WDM.ahk" while the previous version I had still works (I copied all new files into a new folder, chrome and webdriver match.
It starts the session alright but as soon as I try stuff like Session.getSessionByUrl(url) Session.title() I get these errors below. Something I'm missing?
Error in #include file WDM.ahk wrote:Source: WinHttp.WinHttpRequest
Description: The URL does not use a recognized protocol
---> 169: WebRequest.Open(Method, url, false)

Source: WinHttp.WinHttpRequest
Description: This method cannot be called until the Open method has been called
---> 170: WebRequest.SetRequestHeader("Content-Type","application/json")

Source: WinHttp.WinHttpRequest
Description: This method cannot be called until the Open method has been called
---> 175: WebRequest.Send()

etc
...

Thanks for the info. I'll try out some other stuff and see what happens.

I think it was giving these same errors.
read above as I made few changes. please get latest repo.
I'll check it out later and report back! Thanks!

Milchmann
Posts: 112
Joined: 05 Nov 2016, 08:50

Re: Rufaydium WebDriver 1.5.1 (no selenium/websocket)

Post by Milchmann » 20 May 2022, 08:56

Hi @Xeo786
here are Two ways to automate Chrome / chromium based browsers, 1) Basic 2) is CDP Chrome Devtools Protocls
Consider Webdriver Basic as simple human interactions with webpage, but sometime we need to edit/modify Page, then we have to use CDP

driver.CDP.Evaluate(js) simply evaluate JS is same as driver.ExecuteSync()
for example both method do same thing with different approach using CDP
Thanks I'm testing it.

Code: Select all

Page := Chrome.getSessionByUrl("https://www.autohotkey.com/boards/")
if !isobject(page)
{
	Page := Chrome.NewSession()
	Page.Navigate("https://www.autohotkey.com/boards/")
}
MsgBox % Page.url
. "`nbody len from Basic "	Page.QuerySelectorAll("body").length()
. "`nbody len from CDP "		Page.cdp.QuerySelectorAll("body").length()
. "`nkeywords len from Basic "	Page.QuerySelectorAll("#keywords").length() ; autohkey search
. "`nkeywords len from CDP "	Page.cdp.QuerySelectorAll("#keywords").length()
Unfortunately, that doesn't work yet, am I making a mistake?

Bert
Last edited by Milchmann on 21 May 2022, 07:45, edited 1 time in total.

ahk7
Posts: 574
Joined: 06 Nov 2013, 16:35

Re: Rufaydium WebDriver 1.5.0 (no selenium/websocket)

Post by ahk7 » 20 May 2022, 11:21

Xeo786 wrote:
20 May 2022, 01:25
Two scripts can communicate one by one ...
I had that working few days ago already, haven't tested thoroughly though.

startchrome.ahk (first script)

Code: Select all

#NoEnv
#SingleInstance, force
DetectHiddenWindows, On
SetTitleMatchMode, 2

#Include %A_ScriptDir%\lib
#Include Rufaydium.ahk

Chrome := new Rufaydium()
Chrome.capabilities := Capabilities.ChromeProfile

Page := Chrome.NewSession()

WinGet, ChromePID, PID, ahk_exe chrome.exe

WinWaitClose, ahk_pid %ChromePID%

MsgBox, 64, Rufaydium, Closing Rufaydium Sessions

ExitTest:
Chrome.QuitAllSessions() ; close all session 
Chrome.Driver.Exit() ; then exits driver
Sleep 1000
ExitApp
Return
and then start another script

getsession.ahk

Code: Select all

#NoEnv
#SingleInstance, force
DetectHiddenWindows, On
SetTitleMatchMode, 2

#Include %A_ScriptDir%\lib
#Include Rufaydium.ahk

Chrome := new Rufaydium()
Page := Chrome.getSession(1) ; getting session

MsgBox 64, Rufaydium, % "We have object: " IsObject(Page)

Page.Navigate("https://www.autohotkey.com/")

MsgBox % Page.title()
Once you close chrome.exe it closes the session/webdriver due to winwait

User avatar
hotcheesesoup
Posts: 34
Joined: 08 May 2022, 01:41

Re: Rufaydium WebDriver 1.5.0 (no selenium/websocket)

Post by hotcheesesoup » 20 May 2022, 11:23

ahk7 wrote:
20 May 2022, 11:21
Xeo786 wrote:
20 May 2022, 01:25
Two scripts can communicate one by one ...
I had that working few days ago already, haven't tested thoroughly though.

startchrome.ahk (first script)

Code: Select all

#NoEnv
#SingleInstance, force
DetectHiddenWindows, On
SetTitleMatchMode, 2

#Include %A_ScriptDir%\lib
#Include Rufaydium.ahk

Chrome := new Rufaydium()
Chrome.capabilities := Capabilities.ChromeProfile

Page := Chrome.NewSession()

WinGet, ChromePID, PID, ahk_exe chrome.exe

WinWaitClose, ahk_pid %ChromePID%

MsgBox, 64, Rufaydium, Closing Rufaydium Sessions

ExitTest:
Chrome.QuitAllSessions() ; close all session 
Chrome.Driver.Exit() ; then exits driver
Sleep 1000
ExitApp
Return
and then start another script

getsession.ahk

Code: Select all

#NoEnv
#SingleInstance, force
DetectHiddenWindows, On
SetTitleMatchMode, 2

#Include %A_ScriptDir%\lib
#Include Rufaydium.ahk

Chrome := new Rufaydium()
Page := Chrome.getSession(1) ; getting session

MsgBox 64, Rufaydium, % "We have object: " IsObject(Page)

Page.Navigate("https://www.autohotkey.com/")

MsgBox % Page.title()
Once you close chrome.exe it closes the session/webdriver due to winwait
Thanks for the tip! I think that's what I'm doing, but maybe I need to tweak something a bit. I'll test it out later and let you know.

BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: Rufaydium WebDriver 1.5.1 (no selenium/websocket)

Post by BoBo » 20 May 2022, 11:30

@hotcheesesoup - no need to copy/quote whole "wallpapers" AKA multiple previous postings. Use the Forums @'mention'-option (like you see at the beginning of this sentence) to trigger a member directly. Thx

User avatar
hotcheesesoup
Posts: 34
Joined: 08 May 2022, 01:41

Re: Rufaydium WebDriver 1.5.1 (no selenium/websocket)

Post by hotcheesesoup » 20 May 2022, 11:32

@BoBo
Sorry... I'm new here!

User avatar
hotcheesesoup
Posts: 34
Joined: 08 May 2022, 01:41

Re: Rufaydium WebDriver 1.5.1 (no selenium/websocket)

Post by hotcheesesoup » 20 May 2022, 23:34

@ahk7 - This worked! Apparently the documentation had a typo so I couldn't figure it out. Your example helped a bunch! Thanks!

User avatar
Xeo786
Posts: 759
Joined: 09 Nov 2015, 02:43
Location: Karachi, Pakistan

Re: Rufaydium WebDriver 1.5.0 (no selenium/websocket)

Post by Xeo786 » 21 May 2022, 00:22

ahk7 wrote:
20 May 2022, 11:21

Code: Select all

Chrome.capabilities := Capabilities.ChromeProfile
That's old Capabilities class and Now Rufaydium has New Capabilities class in Capabilities.ahk, which is merged into Rufaydium and can be accessed using

Code: Select all

Browser.Capabilities.methods()
; in your case 
Chrome.Capabilities.methods()
this new class actually loads default profile for driver by self. and by using Session.Capabilities.methods() one can define at what Capabilities driver should create Session. Please check documents >> Capabilities << for examples
"When there is no gravity, there is absolute vacuum and light travel with no time" -Game changer theory

ahk7
Posts: 574
Joined: 06 Nov 2013, 16:35

Re: Rufaydium WebDriver 1.5.1 (no selenium/websocket)

Post by ahk7 » 21 May 2022, 02:01

@Xeo786 cheers for the update

Post Reply

Return to “Scripts and Functions (v1)”