Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

How to use visual automation to send an email - here's an example (for Gmail) #1052

Closed
fazlur10 opened this issue Jun 7, 2021 · 8 comments
Closed
Assignees
Labels

Comments

@fazlur10
Copy link

fazlur10 commented Jun 7, 2021

I took a ss of outlook icon from my desktop, and saved it in same directory of my tag, and used followig tag
click outlook.png
But my tag do not work it keeps on running, but no outputs are show yet
Should we set up Sikuli before trying visual automation?

@kensoh
Copy link
Member

kensoh commented Jun 7, 2021

Hi @fazlur10 here's an example sending email through visual automation -
https://github.com/aimakerspace/TagUI-Bricks/tree/master/DBS-Forex-Gmail#tagui-workflow

Oh no need to set up SikuliX, but to install OpenJDK here if there is no Java 64-bit on your system
(can check with java -version on the command prompt) - https://tagui.readthedocs.io/en/latest/setup.html

@kensoh kensoh changed the title how to use visual automation to send an email How to use visual automation to send an email - here's an example (for Gmail) Jun 7, 2021
@kensoh kensoh self-assigned this Jun 7, 2021
@kensoh kensoh added the query label Jun 7, 2021
@kensoh kensoh closed this as completed Jun 9, 2021
@paumillet
Copy link

Hello @kensoh
I'm facing the same issue: I took screenshots of some web page elements but when I run tagui, it keeps on running but nothing happens.
I'm not able to run the example of sending email through visual automation, it stays on the instruction click chrome_icon.png, even when I try to resize chrome with 125% zoom or change the png file with my own screenshoot.
Do you have any suggestion to make it work?
I'm running tagui v6.14 on ubuntu 20.04
Thanks

@fazlur10
Copy link
Author

fazlur10 commented Jun 30, 2021 via email

@paumillet
Copy link

Well, the whole point for me is to actually use visual automation in order to make person not used to code able to write their own process.
Visual automation is a way to make it more accessible.

@kensoh
Copy link
Member

kensoh commented Jul 1, 2021

Hi @paumillet and @fazlur10,

Oh yes doing using XPath can overcome these challenges, for eg using Chrome extension like SelectorsHub can grab such XPath easily, and using object repositories can hide these complexity away. But the initial work still needs to be done.

For visual automation, it is more visual and easy to understand. But for Linux, it requires additional setup steps here. This is because Linux is actually quite broad in flavours, so each flavour has its own way to install software. Thus the computer vision and OCR components can't be pre-packaged like in Windows and macOS version of TagUI.

I'm guessing maybe there additional steps to installed is not yet done or something broken there. In any case, can you share the logs in tagui/src/tagui.sikuli folder then I can look further what could be causing TagUI to hang there?

@paumillet
Copy link

Hi @kensoh,

Thanks for your answer.
I follow the set up steps that where missing but it seems like it's still not working...

Here the logs:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.python.core.PySystemState (file:/home/pauline/.Sikulix/Extensions/jython-standalone-2.7.1.jar) to method java.io.Console.encoding()
WARNING: Please consider reporting this to the maintainers of org.python.core.PySystemState
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[tagui] START  - listening for inputs

[tagui] INPUT  - [1] vision setAutoWaitTimeout(300)
[tagui] ACTION - setAutoWaitTimeout(300)
[tagui] OUTPUT - [1] SUCCESS

[tagui] INPUT  - [2] vision wait_timeout = 300
[tagui] ACTION - wait_timeout = 300
[tagui] OUTPUT - [2] SUCCESS

[tagui] INPUT  - [3] click /home/pauline/Documents/RD/RPA/tagui/IRAS-Notice-OCR/#_menu.png
[tagui] ACTION - click /home/pauline/Documents/RD/RPA/tagui/IRAS-Notice-OCR/#_menu.png

I had to stop the process at the end because it was running for a while.

@fazlur10
Copy link
Author

fazlur10 commented Jul 1, 2021 via email

@kensoh
Copy link
Member

kensoh commented Jul 1, 2021

Hi @fazlur10 can you share your logs here? (tagui\src\tagui.sikuli folder) I assume you already installed OpenJDK. There is also a Windows installer now for TagUI that installs all these - https://tagui.readthedocs.io/en/latest/setup.html

Hi @paumillet I see, from your log it looks like everything is happening ok between TagUI and the SikuliX engine, but somehow when making computer vision action it hangs. This normally is related to OpenCV installation. Is your timezone conducive to join any of our weekly Zoom Q&A calls? It is every Thursday 4-5pm (UTC+8). The issue probably requires some deep troubleshooting. I don't have experience setting up on Linux but I can take a look.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants