UiPath Selectors Advanced Tutorial | Calendar Picker Example

preview_player
Показать описание
For many, one of the most dreaded parts of UiPath automation is understanding and working with selectors. I chose an example of a calendar picker to demonstrate how to define selectors.

Selecting dates on a calendar picker with dynamic input requires a fine-tuned selector. In this video, you will learn the basics of how to fine-tune selectors including best practises of creating and customising selectors. You can download this bot here:

Free RPA Training:

Рекомендации по теме
Комментарии
Автор

Leon's tutorials are unmatchable.!

VinodSingh-bdux
Автор

Very clear and helpful. I just solve the problem of picking date on the calendar. Thanks a lot!

nancy
Автор

Thank you so much. Am building a robot with a Calendar selection and scratching my head how to do it. Right on time. Thank you!

wangyu
Автор

Thank you, Finished the Assignment6 with the help of your video .

nandhukrishna
Автор

Thank you Leon, I am confuse how to make selector more reliable before, now I got it. thanks again.

liveketli
Автор

It is very very useful one..
Thank you Leon . ☺️
I enjoyed the way you are teaching.☺️

dineshpokala
Автор

This is the most useful tutrorial so far. Thank you

HYHY
Автор

Thanks Leon, u had explore more on selector. It really helps, keeping on upload videos

mallikarjunabala
Автор

Thank you, Leon. It was very helpful to know about to way go to upper level by selectors to find the month selector.
Also very smart solution to find the right date via try-catch procedure.
I solved it without try-catch by calculating and checking dates in loops. Your solution is much shorter. It's a good experience for me.
Nevertheless I finished Assignment 6 in Udemy course. It's the rare course where a beginner can find not only basics but try to understand via practice.

strogalev
Автор

Thank you Leon, but I got this error :

From Date: Could not find the UI element corresponding to this selector:
[1] <webctrl class='bui-calendar__wrapper' innertext='*Oct*' tag='DIV'/>
[2] <webctrl tag='TABLE'/>
[3] <webctrl class='bui-calendar__date' innertext='*28*' tabindex='-1'/>

Search failed at selector tag:
[3] <webctrl class='bui-calendar__date' innertext='*28*' tabindex='-1'/>

The closest matches found are:
[86%] <webctrl class='bui-calendar__date bui-calendar__date--today' innertext='*28*' tabindex='-1'/>
[67%] <webctrl class='bui-calendar__date' innertext=' 29 ' tabindex='-1'/>
[67%] <webctrl class='bui-calendar__date' innertext=' 30 ' tabindex='-1'/>
[67%] <webctrl class='bui-calendar__date' innertext=' 31 ' tabindex='-1'/>
[60%] <webctrl class='bui-calendar__row' innertext='*28*' tabindex=''/>
[52%] <webctrl class='bui-calendar__date bui-calendar__date--disabled' innertext=' 1 ' tabindex='-1'/>
[52%] <webctrl class='bui-calendar__date bui-calendar__date--disabled' innertext=' 2 ' tabindex='-1'/>
[52%] <webctrl class='bui-calendar__date bui-calendar__date--disabled' innertext=' 3 ' tabindex='-1'/>
[52%] <webctrl class='bui-calendar__date bui-calendar__date--disabled' innertext=' 4 ' tabindex='-1'/>
[52%] <webctrl class='bui-calendar__date bui-calendar__date--disabled' innertext=' 5 ' tabindex='-1'/>

could you please tell me where is the error, Thanks

mscoder
Автор

Hi Leon, thanks this was very helpful. I learned more about using UIExplorer and work up the hierarchy to find consistent selectors. Also appreciate your reasoning behind using class as a selector rather than css.

kenchang
Автор

The video was quite resourceful. Thanks much!

rakhijain
Автор

Hi Leon, thanks for the explanation! I run into a problem like this:
I want to select Jan 31 and I change the selector to '31'. It keeps selecting Dec 31, which is shown on the same 'page' in January (but in gray font) in datepicker. Any inputs for this problem? Thanks in advanced.

wang
Автор

Hi Leon, thanks for sharing this tutorial. I followed all your steps on the 'While' activity. However, the bot is not clicking the 'next' arrow. :( I separated the Month on input because unlike on your demo, I cannot find the Month in UiExplorer together with the dates number. I am trying it out on Airbnb website. I Hope you can help me.

jameun
Автор

Hey, thank you for this Video. Unfortunately my Exception Activity inside the Try Catch (Click on the next month) isn‘t working and i really dont know why. I did it in the exact same way as you. Can you please help me? Thank you

crashnt
Автор

Thanks Leon for this video. Really helped me understand lot of concepts. One question though: For the next month, My next month works but selector is not able to identify the month and keeps looping.
Click 'DIV': Could not find the UI element corresponding to this selector:
<webctrl innertext=' August ' parentid='roleDetailsForm' parentname='startDateRole' tag='DIV'/>
<webctrl aaname='15' aria-role='button' parentid='roleDetailsForm' tag='DIV'/>

What could i have missed?

unnishi
Автор

Thank you, Leon - some really good tips there for handling selectors.
I have a question. At 19:20, you mention that you need to add the tabIndex property to the lower level selector so that the bot is able to select from both the date columns. However, I was able to achieve this without including that property with the selector below:
<html app='chrome.exe' title='*Booking.com*' />
<webctrl tag='DIV' class='bui-calendar__wrapper' innertext='*August*' />
<webctrl tag='TABLE' />
<webctrl tag='TD' innertext='*17*' />
What, then, is the purpose of including the tabIndex property? Am I missing something here?

sloth
Автор

Hi Leon,
I m not able to select dates correctly please assist me for that it shows an error "can not find the UI element corresponding to this selector".
I tried multiple times but not resolved please help, i saw videos on Udemy also of your courses not able to find where the mistake is.

devashishsoni
Автор

Nice, thanks! Just a question regarding Try/Catch. Why do you do that instead of an IF statement?

simenandreasknudsen
Автор

Your content is absolutely amazing and I like the way to explain in detail. I have also got much help from the tutorial on Udemy.
I just want to know, can we use for each activity to download images from google page and if yes could you please tell me how to use for each activity to download images from google?

harshalshinalkar