Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Sikuli sometimes not activated, causing some visual automation to fail #756

Closed
siowyisheng opened this issue Mar 12, 2020 · 7 comments
Closed
Labels

Comments

@siowyisheng
Copy link
Contributor

This fails if it is the whole script, although it is basic usage of visual automation.

if present('test.png')
    echo 5

If I just activate sikuli separately using a click on coordinates, then it works.

click (1,1)
if present('test.png')
    echo 5

To fix.

@kensoh
Copy link
Member

kensoh commented Mar 12, 2020

Oh.. Yes, there isn't a mechanism to detect this. The assumption is if a user uses exist() and present() for images, there is most likely other steps in the workflow that does visual automation. Thus those steps would already trigger sikuli. Very unlikely that a workflow uses exist and present image without any other sikuli VA steps. Though not impossible.

@adegard
Copy link
Contributor

adegard commented Mar 22, 2020

Hi guys,
Click text using ocr seems very attractive new feature!

Is there still needed Sikuli, for that?
There ins't instructions on the new V6 webpage
Could you explain Sikuli installation?

thanks

@siowyisheng
Copy link
Contributor Author

siowyisheng commented Mar 22, 2020 via email

@adegard
Copy link
Contributor

adegard commented Mar 22, 2020 via email

@siowyisheng
Copy link
Contributor Author

siowyisheng commented Mar 22, 2020 via email

@adegard
Copy link
Contributor

adegard commented Mar 22, 2020

ok, perfect, I found the way, now. thank.
It tooks some time (around 2 min) and pointed to the words when they were at beginning. So, my understand is that it takes a picture and take time to analyse it. Then I need to don't move meanwhile he is searching.

@kensoh
Copy link
Member

kensoh commented Apr 1, 2020

Hi @siowyisheng, I created #774 which fixes this issue using regex string matches.

@kensoh kensoh closed this as completed Apr 1, 2020
siowyisheng added a commit that referenced this issue Apr 2, 2020
…ctions

#756 - detect sikulix requirement in helper functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants