-
Notifications
You must be signed in to change notification settings - Fork 585
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
keyboard [enter] , click OK.png not working - see working example from Marcelo #1171
Comments
Hi @maheswarGR the image has to be in the same folder as your .tag file, if you are doing Can you try changing your Windows display zoom % to the recommended % or 100% to see if that helps? Also, can you share the log file in tagui\src\tagui.sikuli folder to see if there are clues there? |
CC @ruthtxh |
Lastly, make sure you have installed Java (for eg Open Corretto), at least 64-bit version 8 is needed |
Have you tried installing Corretto from above link? For changing Windows display zoom, you can google to find tutorial or video to show the steps. |
You can also join our weekly Zoom call in 40 minutes time to look into this |
Here is the URL - #914 |
yes windows zoom is previously 100% and i tried changing to recommended % also ..didnt work I am using java version java version "1.8.0" will this support tagui vision click? |
Yes this version is ok. Can you share the logs here in tagui\src\tagui.sikuli folder to see if there are clues there? |
Oh I see, I know why now. The reason is because until user manually clicks the OK button, the control does not return back to TagUI. The solution is using visual automation to click on the button that triggers this popup, then clicking OK. For eg
Please try something like above and tell me what do you see in the logs, thanks! |
I tried . Until user manually clicks the OK button, the control does not return back to TagUI... I have attached log files for your reference.. My tag file : http://3.132.253.47/dmapim/publisher/login.html?publisherName=coe wait 15s click //*[@id="menuAccordion"]/div[1]/a/span click ok.png NOTE : tried click image.png ..works until alert window appears. |
Hi @maheswarGR , as mentioned above, use |
yes i tried .but facing a problem there. but it is clicking on close browser . How can i avoid this ? My page : Modified tag file : click delete.png |
Oh yes it looks very similar. Is the delete to be click on always the first row record? If the row to click on is always different it will be hard. Or is it always at the same (x,y) position on the webpage? Thinking of other ways to click on the correct X. |
hello guys, another way would be to get the position of the icon next to it (pencil) and add the width and height between them to send the mouse click command
|
HI @marcelocecin @kensoh .. Following script worked out: click (1855,615)
|
|
try |
sikuli screnshot - how to include restricted region in tag script
|
if you want help about python, the right thing is to create an issue in the repository https://github.com/tebelorg/RPA-Python
|
Oh nice, thanks Marcelo for sharing this! Hi @maheswarGR , for your question 1 and 3 they seems to be the same question, I've replied here at the new issue you've created - #1174 For the second question on hover, you can try double-checking in Chrome web inspector to see if that XPath really exists. You can also check your Chrome is at 100% zoom. Otherwise TagUI will hover at the wrong position. |
@marcelocecin yes that worked ..we faced issue only after that alert rises, couldn't click on ok or cancel button..it hanged ..so we done last click with position (click (1829,331) and followed to click ok.png...Position may keep changing in future ..so asked of another way to achieve it without position |
@kensoh xpath exists and chrome is at 100% zoom .. i tried click with xpath it works..hover xpath doesn't work .. |
I see.. In that case, it sounds like the web element does not react to the hover event from TagUI. You can try using visual automation to move the mouse to that location to hover. Make sure to click on Chrome browser first to bring it to the foreground and let it be in focus. |
yes .. below one works . BUT why hover xpath doesn't work ? |
you can use keyboard commands: enter to confirm the operation or esc to cancel
|
Adding, if zoom is already at 100%, and hover doesn't work, it means that the web element can't receive the hover event sent from TagUI. So you'll have to find other means to get to the outcome you want. |
Closing this issue due to inactivity, feel free to reopen. |
Hi, bro, I have the same problem — hover xpath doesn't work , but click xpath works. |
Copying @ruthtxh as I've left AI Singapore and she is taking over TagUI project |
Hi @Turbolento perhaps you can try using coordinates or visual automation (screenshot image) and see if hover works for these?
where you can save the image.png to the same folder as your flow file |
@ruthtxh Thank you very much for your enthusiastic reply. |
You can try to give a simple replication example of TagUI script why hover does not work, then @ruthtxh can have a look. So far, users have not feed back that hover step does not work. It may be something specific to the website you are automating. |
Thank you for your very nice advice.
The same thing happens with the following Tagui script:
|
Hi @Turbolento For hover step with XPath, chrome controls the element event from the backend and upon hover the element is highlighted without the mouse moving to it visibly. For this logo link, upon hover there is no visible change. You can try this on other elements that might have visible change on hover to try this out. On the other hand, for hovering with coordinates and visual automation, the mouse event is directly controlled to move to the location. |
So I can't get the element's coordinates exactly by |
There are some internal TagUI functions that could be used to achieve this. But it is not the most commonly used, so there are not dedicated functions to do this. See below working example. chrome.mouse.getXY() is the internal function to get XY coordinates of an element on a webpage, xps666() is to convert a XPath string into a form used by TagUI underlying engine. If it is a CSS selector, xps666() is not required. Fyi @ruthtxh
|
Hey kensoh, I have the same problem, how is this function chrome.mouse.getXY used in Rpa For Python, like this? r.send("chrome.mouse.getXY(xps666('//*[@name ='232'))") |
See example below. It is not straightforward, because this is not a common use case, but doable from RPA for Python - r.url('https://google.com')
r.send('xy = chrome.mouse.getXY(xps666(\'//*[@name="q"]\'))')
r.send('dump xy.x to x.txt')
r.send('dump xy.y to y.txt')
x = int(r.load('x.txt'))
y = int(r.load('y.txt'))
print(x,y) PS - make sure to escape double and single quotes as needed in send() so that it is valid Python string and not error |
This response from you is really great. Thank you very much. |
@kensoh Using windows tagui 6
Need to click OK or cancel button in alert window. Tried multiple ways
keyboard [enter]
click OK.png
vision click("OK.png")
not working
Also tried taking screenshot using sikuli and placed the image in C:\tagui\flows\samples.. not working
I have placed images in C:\tagui\flows\samples
The text was updated successfully, but these errors were encountered: