Chrome Automation with TagUI

Post your working scripts, libraries and tools
User avatar
adegard
Posts: 77
Joined: 24 Nov 2017, 05:58
GitHub: adegard

Chrome Automation with TagUI

14 Dec 2018, 11:25

Hi,

I use a lot TagUI (different from "TagIE") wich works in Chrome. It's a AI Singapor project open source (thanks to @Ken Soh), based on CasperJS, PhantomJS & SlimerJS, then very powerfull.
It simplify Headless language scripting for browsing in Chrome/Firefox, but you could also use it as "visible" browser.
TagUI auto-selects provided 'identifiers' in this order - xpath, css, id, name, class, title, aria-label, text(), href

I made an Editor in ahk to facilitate saving, insert snipets, execute and schedule tasks in this language. Normaly it's only in CLI throught powershell.
My Github repo of Tagui_Editor: Download the Editor in ahk or already compiled
Install first TagUI,: Download and install (if you need help, let me know)
Tutorial:: VIDEO How to install
Image

I hope it could help! :D

NEXT:
- I will add scheduler to this tool
- also, trying to interact the both languages...

Known issue:

Folders name: put tagui files in folders without any spaces, like: C:\tagui\myfiles\
Last edited by adegard on 17 Dec 2018, 14:54, edited 6 times in total.
burque505
Posts: 959
Joined: 22 Jan 2017, 19:37

Re: Chrome Automation with TagUI

14 Dec 2018, 13:20

Thank you, more good stuff!
Regards,
burque505
User avatar
SL5
Posts: 852
Joined: 12 May 2015, 02:10
GitHub: sl5net
Contact:

Re: Chrome Automation with TagUI

14 Dec 2018, 13:27

addet to wacht list ! thaks! i will try later :)
User avatar
SL5
Posts: 852
Joined: 12 May 2015, 02:10
GitHub: sl5net
Contact:

Re: Chrome Automation with TagUI

14 Dec 2018, 14:36

i got this error:

The command "tagui" is either misspelled or
could not be found.
Press any key . , ,

Code: Select all

https://google.com/
echo 'page url:' url()
echo 'uploade url . ' this.getCurrentUrl() + '\n'
write url() to urllist.txt
User avatar
adegard
Posts: 77
Joined: 24 Nov 2017, 05:58
GitHub: adegard

Re: Chrome Automation with TagUI

14 Dec 2018, 14:57

SL5 wrote:
14 Dec 2018, 14:36
i got this error:

The command "tagui" is either misspelled or
could not be found.
Press any key . , ,

Code: Select all

https://google.com/
echo 'page url:' url()
echo 'uploade url . ' this.getCurrentUrl() + '\n'
write url() to urllist.txt

You need to put Tagui in Path comand... ie if your tagui path is "C:\TagUI\tagui\src":

-First method: with Powershell adminitrator:

Code: Select all

[Environment]::SetEnvironmentVariable("TAGUI", "C:\TagUI\tagui\src", "User")
OR

-Second method (easiest):

Enter this PATH: "C: \ tagui \ tagui \ src"
in the system environment variables and restart the computer
Image

See also:https://www.youtube.com/watch?v=winFtZ39YSQ
If necessary, also enter the following folders in PATH: C: \ tagui \ tagui \ src \ phantomjs \ bin, C: \ tagui \ tagui \ src \ casperjs \ bin, C: \ tagui \ tagui \ src \ php
User avatar
adegard
Posts: 77
Joined: 24 Nov 2017, 05:58
GitHub: adegard

Re: Chrome Automation with TagUI

15 Dec 2018, 09:31

I just uploaded a new release with a "Schedule" Button, which creates directly routine in task scheduler of Windows....(for now:daily tasks, with batch files) let me know if there is some issues...
Image
User avatar
adegard
Posts: 77
Joined: 24 Nov 2017, 05:58
GitHub: adegard

Re: Chrome Automation with TagUI

17 Dec 2018, 14:54

Known issue:

Error with Folder names with spaces:
To avoid it, put tagui files in folders without any spaces, like: C:\tagui\myfiles\
godofOOF
Posts: 22
Joined: 22 Dec 2018, 06:03

Re: Chrome Automation with TagUI

22 Dec 2018, 06:34

I keep getting this error
Capture.PNG
Capture.PNG (8.24 KiB) Viewed 1702 times
User avatar
adegard
Posts: 77
Joined: 24 Nov 2017, 05:58
GitHub: adegard

Re: Chrome Automation with TagUI

22 Dec 2018, 12:31

Hi @godofOOF, did you install TagUI first? See a video tutorial here: https://www.youtube.com/watch?v=winFtZ39YSQ
User avatar
Thoughtfu1Tux
Posts: 67
Joined: 31 May 2018, 23:26

Re: Chrome Automation with TagUI

25 Dec 2018, 02:57

Is is possibly to use this to automate Firefox? I've been using Selenium to automate Chrome for a while now but it doesn't support the modern version of Firefox.
User avatar
adegard
Posts: 77
Joined: 24 Nov 2017, 05:58
GitHub: adegard

Re: Chrome Automation with TagUI

25 Dec 2018, 05:51

Yes! You can use with Firefox if installed. Tagui will launch Slimerjs instead of capers.
Thoughtfu1Tux wrote:
25 Dec 2018, 02:57
Is is possibly to use this to automate Firefox? I've been using Selenium to automate Chrome for a while now but it doesn't support the modern version of Firefox.
godofOOF
Posts: 22
Joined: 22 Dec 2018, 06:03

Re: Chrome Automation with TagUI

04 Jan 2019, 09:57

I love this script but is it possible to make tutorials on how to use it?
Its a little complicated and hard to use for me

EDIT::
Fixed the Error issue
tmplinshi
Posts: 1340
Joined: 01 Oct 2013, 14:57

Re: Chrome Automation with TagUI

04 Jan 2019, 11:52

Intersting. Thanks for posting.

TagUI is a command line tool, no installation is needed, just download https://raw.githubusercontent.com/tebel ... indows.zip and unzip it to anywhere.

The usage is tagui flow_filename [options]

To see the list of options, run tagui without parameters:
screenshot

Examples:

Say we have a flow file "1.txt":

Code: Select all

https://www.bing.com
type q as TagUI
click sb_form_go
Example 1: tagui 1.txt will run the flow file "1.txt" with the headless browser phantomjs.exe.
Example 2: tagui 1.txt chrome
Last edited by tmplinshi on 04 Jan 2019, 12:35, edited 2 times in total.
User avatar
adegard
Posts: 77
Joined: 24 Nov 2017, 05:58
GitHub: adegard

Re: Chrome Automation with TagUI

04 Jan 2019, 12:28

godofOOF wrote:
04 Jan 2019, 09:57
I love this script but is it possible to make tutorials on how to use it?
Its a little complicated and hard to use for me
Thanks @godofOOF, @tmplinshi
I wrote a little ebook on amazon (to protect copyrights) to explain installation, and simple examples of use... but, sorry the english translation is so bad... :facepalm:

Return to “Scripts and Functions”

Who is online

Users browsing this forum: autocart and 44 guests