Page 1 of 1

Chrome Automation with TagUI

Posted: 14 Dec 2018, 11:25
by adegard
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\

Re: Chrome Automation with TagUI

Posted: 14 Dec 2018, 13:20
by burque505
Thank you, more good stuff!
Regards,
burque505

Re: Chrome Automation with TagUI

Posted: 14 Dec 2018, 13:27
by SL5
addet to wacht list ! thaks! i will try later :)

Re: Chrome Automation with TagUI

Posted: 14 Dec 2018, 14:36
by SL5
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

Re: Chrome Automation with TagUI

Posted: 14 Dec 2018, 14:57
by adegard
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

Re: Chrome Automation with TagUI

Posted: 15 Dec 2018, 09:31
by adegard
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

Re: Chrome Automation with TagUI

Posted: 17 Dec 2018, 14:54
by adegard
Known issue:

Error with Folder names with spaces:
To avoid it, put tagui files in folders without any spaces, like: C:\tagui\myfiles\

Re: Chrome Automation with TagUI

Posted: 22 Dec 2018, 06:34
by godofOOF
I keep getting this error
Capture.PNG
Capture.PNG (8.24 KiB) Viewed 9264 times

Re: Chrome Automation with TagUI

Posted: 22 Dec 2018, 12:31
by adegard
Hi @godofOOF, did you install TagUI first? See a video tutorial here: https://www.youtube.com/watch?v=winFtZ39YSQ

Re: Chrome Automation with TagUI

Posted: 25 Dec 2018, 02:57
by Thoughtfu1Tux
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.

Re: Chrome Automation with TagUI

Posted: 25 Dec 2018, 05:51
by adegard
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.

Re: Chrome Automation with TagUI

Posted: 04 Jan 2019, 09:57
by godofOOF
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

Re: Chrome Automation with TagUI

Posted: 04 Jan 2019, 11:52
by tmplinshi
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

Re: Chrome Automation with TagUI

Posted: 04 Jan 2019, 12:28
by adegard
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: