It works for me, try deleting geckodriver so it can download the latest, I got firefox 107.0.1, at work it is not being upgraded may be,Sadaosh1970 wrote: ↑30 Dec 2022, 09:18Thank you.
.activetab() latest tab is good.
But the latest version of Rufaydium can no longer get into Firefox.
Rufaydium WebDriver 1.7.2 (no selenium/websocket)
Re: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
"When there is no gravity, there is absolute vacuum and light travel with no time" -Game changer theory
-
- Posts: 19
- Joined: 29 Nov 2022, 06:52
Re: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
I deleted the geckdriver.
I've been downloaded again.
Firefox loads, but this error message appears.
I've been downloaded again.
Firefox loads, but this error message appears.
- Attachments
-
- 2022_12_30_12_44_47_Rufaydium_WebDriver_Error.png (8.46 KiB) Viewed 3655 times
Re: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
I was facing this issue but never faced it before this is why I added this error Msg, it seems it is not about creating a new profile, it is a timeout issue driver fails to make receive new session detail and return with an empty response.Sadaosh1970 wrote: ↑30 Dec 2022, 10:55I deleted the geckdriver.
I've been downloaded again.
Firefox loads, but this error message appears.
This is a geckdriver issue for Firefox 50 link, you can wait for devs to fix geckodriver/FF50 or you can use FF48 or older
"When there is no gravity, there is absolute vacuum and light travel with no time" -Game changer theory
-
- Posts: 19
- Joined: 29 Nov 2022, 06:52
Re: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
Thanks!
But the Rufaydium version from 03/12/2022 is working normally for me.
Is there a possibility that something else could be causing the error?
But the Rufaydium version from 03/12/2022 is working normally for me.
Is there a possibility that something else could be causing the error?
Re: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
Hi Rufaydium team,
I need some guidance on how to target these buttons please.
In the Accounts.PNG attachment, you'll see on the frontend that there are multiple Accounts (e.g. A-Z Trading Co, Aaron.lims product, etc), and under each account, there are buttons for each country (United States, Canada, and Mexico) which are in a random order for each account. I'd like to target buttons by Account name and Country using the text for the Account name and the text for the Country. I've underlined the Account name and Country name text in the HTML screenshot in red and green respectively. I'd appreciate some guidance on how to target a div by its text, then a button within that div by the button's text.
Thanks!
I need some guidance on how to target these buttons please.
In the Accounts.PNG attachment, you'll see on the frontend that there are multiple Accounts (e.g. A-Z Trading Co, Aaron.lims product, etc), and under each account, there are buttons for each country (United States, Canada, and Mexico) which are in a random order for each account. I'd like to target buttons by Account name and Country using the text for the Account name and the text for the Country. I've underlined the Account name and Country name text in the HTML screenshot in red and green respectively. I'd appreciate some guidance on how to target a div by its text, then a button within that div by the button's text.
Thanks!
Re: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
You can loop through elements and look for innerText look at this exampleautomater wrote: ↑31 Dec 2022, 07:59Hi Rufaydium team,
I need some guidance on how to target these buttons please.
In the Accounts.PNG attachment, you'll see on the frontend that there are multiple Accounts (e.g. A-Z Trading Co, Aaron.lims product, etc), and under each account, there are buttons for each country (United States, Canada, and Mexico) which are in a random order for each account.Accounts.PNG
I'd like to target buttons by Account name and Country using the text for the Account name and the text for the Country. I've underlined the Account name and Country name text in the HTML screenshot in red and green respectively.HTML.PNG
I'd appreciate some guidance on how to target a div by its text, then a button within that div by the button's text.
Thanks!
"When there is no gravity, there is absolute vacuum and light travel with no time" -Game changer theory
Re: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
Fantastic! Thank you.Xeo786 wrote: ↑02 Jan 2023, 00:45You can loop through elements and look for innerText look at this exampleautomater wrote: ↑31 Dec 2022, 07:59Hi Rufaydium team,
I need some guidance on how to target these buttons please.
In the Accounts.PNG attachment, you'll see on the frontend that there are multiple Accounts (e.g. A-Z Trading Co, Aaron.lims product, etc), and under each account, there are buttons for each country (United States, Canada, and Mexico) which are in a random order for each account.Accounts.PNG
I'd like to target buttons by Account name and Country using the text for the Account name and the text for the Country. I've underlined the Account name and Country name text in the HTML screenshot in red and green respectively.HTML.PNG
I'd appreciate some guidance on how to target a div by its text, then a button within that div by the button's text.
Thanks!
-
- Posts: 19
- Joined: 29 Nov 2022, 06:52
Re: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
Is there any way to save Firefox customizations, such as the folder where the downloaded files will be saved and also if PdF files will be saved or opened by an application?
Tanks in advance.
Tanks in advance.
Re: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
Yeah, it's possible with the correct capability "prefs" parameters called browser options for firefox to see Firefox Options,Sadaosh1970 wrote: ↑05 Jan 2023, 22:08Is there any way to save Firefox customizations, such as the folder where the downloaded files will be saved and also if PdF files will be saved or opened by an application?
Tanks in advance.
For download folder it is "browser.download.dir", "D:/FF/downloads/", but I haven't implemented prefs to Rufaydium capabilities yet
"When there is no gravity, there is absolute vacuum and light travel with no time" -Game changer theory
-
- Posts: 19
- Joined: 29 Nov 2022, 06:52
Re: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
Thanks!!
I will try to understand how this works.
I will try to understand how this works.
Re: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
Thanks for this wonderful tool. I have a simple question, how to use google to search "Pele" (send Pele to the input box and click the search button).
Re: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
there are many ways and here are few
Code: Select all
#include Rufaydium.ahk
Chrome := new Rufaydium()
Page := Chrome.NewSession()
Page.url := "https://www.google.com/"
Page.querySelectorAll("input")[0].value := "pele"
Page.querySelectorAll("input")[1].sendkey("`n")
msgbox or
Page.url := "https://www.google.com/"
Page.querySelectorAll("input")[0].value := "pele"
Page.querySelectorAll("input")[1].click()
msgbox or
Page.url := "https://www.google.com/"
input := Page.querySelectorAll("input")
input[0].value := "pele"
input[1].click()
msgbox or
Page.url := "https://www.google.com/"
Page.querySelector("input").sendkey("pele`n")
msgbox, press ok to close session, driver and script
page.Quit()
chrome.Driver.Exit()
exitapp
"When there is no gravity, there is absolute vacuum and light travel with no time" -Game changer theory
Re: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
Thanks, it's quite easy to use. But when I use my local search engine (www.baidu.com), it dosen't work.Xeo786 wrote: ↑18 Jan 2023, 03:27there are many ways and here are fewRufaydium is simple and easyCode: Select all
#include Rufaydium.ahk Chrome := new Rufaydium() Page := Chrome.NewSession() Page.url := "https://www.google.com/" Page.querySelectorAll("input")[0].value := "pele" Page.querySelectorAll("input")[1].sendkey("`n") msgbox or Page.url := "https://www.google.com/" Page.querySelectorAll("input")[0].value := "pele" Page.querySelectorAll("input")[1].click() msgbox or Page.url := "https://www.google.com/" input := Page.querySelectorAll("input") input[0].value := "pele" input[1].click() msgbox or Page.url := "https://www.google.com/" Page.querySelector("input").sendkey("pele`n") msgbox, press ok to close session, driver and script page.Quit() chrome.Driver.Exit() exitapp
Re: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
You need to find that element from that particular website, to access it, You need to learn the basics of HTML and Javascript, Use the Devtools of the browser in question to read HTML tag elements class and id.songdg wrote: ↑20 Jan 2023, 11:26Thanks, it's quite easy to use. But when I use my local search engine (www.baidu.com), it dosen't work.
"When there is no gravity, there is absolute vacuum and light travel with no time" -Game changer theory
Re: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
Thanks, any suggestion of books I should read for a crash course.Xeo786 wrote: ↑20 Jan 2023, 12:03You need to find that element from that particular website, to access it, You need to learn the basics of HTML and Javascript, Use the Devtools of the browser in question to read HTML tag elements class and id.songdg wrote: ↑20 Jan 2023, 11:26Thanks, it's quite easy to use. But when I use my local search engine (www.baidu.com), it dosen't work.
Re: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
no need to read complicated books, start with devtools console and elements and DOM itro, learn how to debug webpage using devtools how to use Java script to access element and data within elements then DOM methods, DOM Document & elements, but you need to there try examples in devtools console,songdg wrote: ↑28 Jan 2023, 02:26Thanks, any suggestion of books I should read for a crash course.Xeo786 wrote: ↑20 Jan 2023, 12:03You need to find that element from that particular website, to access it, You need to learn the basics of HTML and Javascript, Use the Devtools of the browser in question to read HTML tag elements class and id.songdg wrote: ↑20 Jan 2023, 11:26Thanks, it's quite easy to use. But when I use my local search engine (www.baidu.com), it dosen't work.
"When there is no gravity, there is absolute vacuum and light travel with no time" -Game changer theory
Re: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
Hi, does anyone have experience for undetected chromedriver for rufaydium?
Re: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
Can you please show you code or share snap shot of msg, are you using Settimeout
"When there is no gravity, there is absolute vacuum and light travel with no time" -Game changer theory
Re: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
Hi, @Xeo786, I didn't use a Settimeout.
Usually, to test undetected chromedriver from python, go to the link: https://nowsecure.nl
And here is the link for the undetected chromedriver python library: https://pypi.org/project/undetected-chromedriver/2.1.1/
This is my simple script to test undetected chromedriver with rufaydium:
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]
Usually, to test undetected chromedriver from python, go to the link: https://nowsecure.nl
And here is the link for the undetected chromedriver python library: https://pypi.org/project/undetected-chromedriver/2.1.1/
This is my simple script to test undetected chromedriver with rufaydium:
Code: Select all
ChromeDriver := A_ScriptDir "\chromedriver.exe"
Driver := new RunDriver(ChromeDriver)
Chrome := new Rufaydium()
Session := Chrome.NewSession()
url := "https://nowsecure.nl"
Session.Navigate(url)
Session.Maximize()
sleep, 200
return
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]
Re: Rufaydium WebDriver 1.7.2 (no selenium/websocket)
You cannot use RunDriver Class directly? it would work for early version but not work latest,MoUse_G wrote: ↑31 Jan 2023, 01:42Hi, @Xeo786, I didn't use a Settimeout.
Usually, to test undetected chromedriver from python, go to the link: https://nowsecure.nl
And here is the link for the undetected chromedriver python library: https://pypi.org/project/undetected-chromedriver/2.1.1/
This is my simple script to test undetected chromedriver with rufaydium:
Code: Select all
ChromeDriver := A_ScriptDir "\chromedriver.exe" Driver := new RunDriver(ChromeDriver) Chrome := new Rufaydium() Session := Chrome.NewSession() url := "https://nowsecure.nl" Session.Navigate(url) Session.Maximize() sleep, 200 return
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]
Code: Select all
Driver := new RunDriver(ChromeDriver)
1) make sure driver is not running kill driver (i.e. chromedriver) using taskmager. and try following code
Code: Select all
Chrome := new Rufaydium()
Session := Chrome.NewSession()
url := "https://nowsecure.nl"
Session.Navigate(url)
Session.Maximize()
sleep, 200
return
for webdriver detection, you should look my this post
"When there is no gravity, there is absolute vacuum and light travel with no time" -Game changer theory