Paddy
March 26, 2021, 1:13pm
1
This may be related to my other post.
How would people approach clicking the View/File button for the current day/month in a list. The View/File button for 31 March is correct, I don’t want the 5th April pressed.
Not sure how to proceed with this one.
Thanks
Pat
You must use axes xpath but ui vision do not record these xpaths
You must study and create it using others sites and addons
With axes xpath you can detect an element near another element (preceding and following)
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
Another solution is use Xclickrelative
https://ui.vision/rpa/docs/xclick#relative
Paddy
March 26, 2021, 3:55pm
3
My apologies @newuserkantu - it’s for desktop rather than web. I really must be more careful in posting…
Try Xclickrelative for desktop automation
Do you know it is always the first button of the two “View/File” buttons? Then use
XClick | button.png@0.5#1
button.png is " "
#1 tells UI Vision to use the first button found (from all found buttons that are above the threshold of 0.5)
For the second button use XClick | button.png@0.5#2
Or if the date is always the same, use XClickRelative as @newuserkantu suggested:
2 Likes
Paddy
March 29, 2021, 8:17am
6
Plankton:
@0.5 #1
Works like a charm - nice and easy - thanks very much…
(Sorry for delay - took the weekend off)