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

or & and in if condition, using ocr in exist() - added 'using ocr' to exist() & present() #834

Closed
vincecao opened this issue Jun 19, 2020 · 3 comments
Labels

Comments

@vincecao
Copy link

Hi, kelaberetiv, I can not find the way for using OR and AND example in tagui in document. Is any way I can add operator?

Also I can not use exist() to find text by using ocr, if exist('abc using ocr') is not work. Could you help me?

Thank you.

@kensoh
Copy link
Member

kensoh commented Nov 29, 2020

Sorry Vince, I was away the past few months - tebelorg/RPA-Python#144

Below is an example of using and / or in conditions -

a = 1
b = 2
c = 'carrot'
d = 'durian'

if a equals to 1 and b equals to 2
    echo YES
else
    echo NO

if c equals to 'cat' or d equals to 'durian'
    echo YES
else
    echo NO

The exist() and present() functions are not designed to take in text search using ocr. Let me review if that can be added in.

@kensoh kensoh changed the title OR & AND in if condition check & ocr in exist() or & and in if condition, using ocr in exist() Nov 29, 2020
@kensoh
Copy link
Member

kensoh commented Nov 29, 2020

Above commits adds 'using ocr' search to present() and exist(). To use it, you can download the latest copy of the code from here and unzip to overwrite your existing installation (please drag the folders under tagui\src to overwrite your existing installation) - https://github.com/kelaberetiv/TagUI/archive/master.zip

In the next release, this will become part of the packaged zip files. Thanks for raising this!

@kensoh kensoh changed the title or & and in if condition, using ocr in exist() or & and in if condition, using ocr in exist() - added search 'using ocr' to exist() & present() Nov 29, 2020
@kensoh kensoh changed the title or & and in if condition, using ocr in exist() - added search 'using ocr' to exist() & present() or & and in if condition, using ocr in exist() - added 'using ocr' to exist() & present() Nov 29, 2020
@kensoh kensoh reopened this Dec 11, 2020
@kensoh
Copy link
Member

kensoh commented Dec 19, 2020

Closing issue since the latest packaged release TagUI v6.14 is out.

Release notes - https://github.com/kelaberetiv/TagUI/releases/tag/v6.14.0
To download v6.14 - https://tagui.readthedocs.io/en/latest/setup.html
Documentation - https://tagui.readthedocs.io/en/latest/index.html

@kensoh kensoh closed this as completed Dec 19, 2020
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

2 participants