Jump to content

Recommended Posts

Posted

 

Have a nice day.
I am trying to ask if you have ever used multiprocess in webdriver?. It seems that this is a problem that quite a lot of people are interested in ðŸ˜„

 
 
 
 
 
Have a nice day. I am trying to ask if you have ever used multiprocess in webdriver?. It seems that this is a problem that quite a lot of people are interested in
Posted
  On 3/29/2022 at 4:53 PM, Danp2 said:

@minhuyYou should take some time to better define your question because "multiprocess" can mean different things to different people.

  • Exactly what are you trying to accomplish?
  • What have you tried thus far?
  • Which browser?
  • Etc
Expand  

The same, I do a search in google with different number of keywords. If I combine multi-process, it will reduce my execution time. I used coproc to create different processes. Actually, I saw a lot of people talking about this so I thought it was a matter of discussion

Posted (edited)

@Danp2, based on his username, im pretty sure that he's in same country as mine where most people make bots which against forum rules. And based on his recent posted code, i doubt that he has the skill to automating something legal, unless he tells us. Hence i advised you not to answer this guy until he answer your questions.

  Quote
  • Exactly what are you trying to accomplish?
Expand  


@minhuy, this forum is not the place for you to ask for help with bots.

Edited by sylremo
Posted
  On 3/29/2022 at 5:03 PM, sylremo said:

@Danp2, based on his username, im pretty sure that he's in same country as mine where most people make bots which against forum rules. And based on his recent posted code, i doubt that he has the skill to automating something legal, unless he tells us. Hence i advised you not to answer this guy until he answer your questions.

@minhuy, this forum is not the place for you to ask for help with bots.

Expand  

Thank you. Maybe I haven't read the forum rules yet. I will learn it somewhere else. Thank you for comment

Posted

@Danp2, specifically in this topic, the kind of bots that i mentioned is against Automation of software/sites contrary to their EULA.

So talking about bots doing tasks like accessing and collecting social accounts data should be illegal right?

Posted

@Danp2, he was asking for proxy setup and now multi processes, i concluded that he might be up to that kind of bot.
For me, like i've mentioned before, i'm automating my web app, which is of course has nothing to do with EULAs. And more specifically my web app is intended to block traffics from specific locations so i have to setup proxy for this test case.

Posted
  On 3/30/2022 at 12:20 PM, tac7 said:

I make an external EXE who check and validate the popup windows. It's work fine.

Expand  

Yes, this was the only way to solve your problem (I mean the only one which I already know)

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

How to get/check current URL ?

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
  On 3/31/2022 at 7:21 AM, CYCho said:

_WD_Action("URL")

Expand  

Thanks.
Fixed: 

_WD_Action($sSession, "URL")

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

Hi,

(Before I want to Thank You for this work, it's very help full. thank a lot "Danp2" !!!!)


I see in WebDriver : to replace _IEPropertyGet we need to call _WD_FindElement + _WD_ElementAction($sSession, $sElement, 'property', 'nodeName') .

Before with IE.au3 I used:

_IEPropertyGet($oIE, "locationurl") or _IEPropertyGet($oIE, "text") or _IEPropertyGet($oIE, "statustext")

Is that possible to get this sames informations with WebDriver? and so change its ??

Edited by tac7
Posted

Hello Danp2 and everybody,

I just started using WebDriver UDF because IE11 is not working for my purpose.

I had many Sonoffs to "tasmotize" via OTA and the DIY web page on the MiniR2 does not respond to IE UDF or even manually via IE11 user interface.

I solved with geckodriver but I ended up with a folder of hundreds of MBs that contains the Portable Apps I used, while the same scripts with IE UDF was just a few MBs. Now I'm doing some cleanup as I'm trying to figure out what is the "smallest" version of FF or Chrome that could be used with the oldest version of chromedriver and geckodriver.

The working setup I found is with the latest version of geckodriver.exe and FF 69 or FF 60. I tested also FF 68 ESR but it didn't work (maybe ESR versions are different ?).

I'm testing now geckodriver 0.14 with FF 51 and FF 60 but it's not responding correctly. I would love to go back in time to the first working setup with the smallest browser possible. The basic commands to achieve are to simply write input fields and a couple of clicks. I saved the web page from the Sonoff device and you can find it attached to this comment.

$oTagSETUP = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath,"//div[@id='main-setting']")
 _WD_ElementAction($sSession, $oTagSETUP, 'click')
 $oTagSSID = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath,"//input[@id='input-net-ssid']")
 _WD_ElementAction($sSession, $oTagSSID, 'value', "SSID")
 $oTagPSWD = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath,"//input[@id='input-net-password']")
 _WD_ElementAction($sSession, $oTagPSWD, 'value', "password")
 $oTagSAVE = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//div[@id='setup-save']")
_WD_ElementAction($sSession, $oTagSAVE, 'click')

I found on AutoIt german forum a post about setting different versions of WebDrivers depending on the browser version and I started working in this direction but before digging into a work that would take hours if not days, I'm wondering if there is a summary table somewhere with the minimal requirements of every driver version to be able to find the smallest web browser to do simple things like those that I need. In a "portable" way.

Thanks for this wonderful tool and have a nice day,

V.

Sonoff DIY Mode.htmFetching info...

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...