Hello!
Sorry for noobie questions that were asked 1000 times already, but I'm trying my best w/o actual knowledge.
I made "manual" script for myself to do some repetitive "copy&paste" tasks. Problem is that it occupies PC. So in attempt to make it run in background run into this solution, but new problems arrived.
1) New user profile in browsers when using webdriver, that is stripped of useful extensions. Every freaking site shoves "Updated terms" or "Cookies" messages that ruins scripts. So
how to do that? I understand that you can google examples, but not for this particular thing, even if expressions are the same. Where to define it, in SetupChrome function in $sDesiredCapabilities? My profile is in default location "C:\Users\username\AppData\Local\Google\Chrome\User Data\Default", so can somebody who uses his own profile help with this?
2) Since I need to loop same actions just with different hyperlinks from same site I thought it would be best just to use clipboard to get address from list in excel/libre doc and loop the whole thing. But when I tried using Clipget for navigation
Local $sData = ClipGet()
_WD_Navigate($sSession, $sData)
it didn't work. Maybe it's dumb way to do it, but hope you can explain how to do
-copy address from spreadsheet
-navigate to it
-copy stuff, click stuff, screenshot stuff, move screen around
-paste it to spreadsheet
-go to address+1 and repeat
better. Don't care about formatting data on the fly or stuff like that, just want it copied w/o occupying PC and I will do formatting/analytics in spreadsheet later
3) I figured out how to find elements (buttons, etc) with XPath, but sometimes it produces error. Chrome/FF both copy XPath with " " and it needs to be ' ' in autoit, right? There's no difference in _WD_Navigate, but I had to manually change it couple of times to make it work for FindElement.
Also, how do I simulate something like
MouseClickDrag($MOUSE_CLICK_LEFT, 165, 400, 1100, 450)
to select cluster of data. Site always formats data the same way, so I just need to navigate to proper element location and copy them all together(I format&convert in spreadsheet). Is there way to use Ctrl to make this selection in background, or I will need to find all the elements I need through XPath and copy the value?
Thanks in advance for any help