-
Notifications
You must be signed in to change notification settings - Fork 592
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
Can TagUI not exit on error (for example element not found)? #251
Comments
Full details at #148, but below is the conclusion and workaround if user really really wants that. It is bad automation program to not quit on error. If you really really want that, you can modify tagui_parse.php, search and replace '.exit()' with blank '' and it may be able to make program not quit on exit. For the current version, there should be 8 replacements of '.exit()' to blank ''. But I wont adjust the TagUI default code base to support something like that. Because it will just lead to more badly designed automation scripts by users. Also, you can use functions such as present(), visible() which can be used for web elements or sikuli visual automation to detect if an element is on the screen. So it should be able to be handled by good automation program design instead of relying on not exiting when error is encountered - https://github.com/kelaberetiv/TagUI#helper-functions Below sample automation script shows after making above replacement, TagUI does not exit on error. sample
tagui sample chrome
|
fyi @adegard @Aussiroth @lohvht @alvinphee @chiotkk - if you ever encounter a situation where really need TagUI not to quit on error encountered, there is a workaround above. But not recommended, because it can easily encourage bad automation script design.. |
Hi @kensoh thanks for your suggestion but I prefer checking the presence of selector, because I don't now what are the consequences if code continue without control!!
|
from user's query in issue #148
The text was updated successfully, but these errors were encountered: