How to highlight multiple date values in win calendar in a browser?


#1

I have to highlight dates in all month based on the input. Any help on this will be helpful. Below is the link

https://www.wincalendar.com/Holiday-Calendar-with-Today


How to highlight multiple date values in a browser calendar?
#2

hi @Manjuts90
Steps
1.Use Assign Activity and give value as 1
2.Use Element Exists for the Calendar
3.Use While condition and give the element exists variable
4.Use Highlight Activity and identify the selector as webctrl id=wc’"+StrVar.ToString+’"
5.Increement the variable

Thanks
Ashwin S


#3

can u explain the 4th step briefly


#4

AshwinS2 what i should change in selecto


#5

hi @mahesha/@Manjuts90

check this

“<webctrl id=wc’”+StrVar.ToString+"’ tag=‘TD’ />"

give title as * and check

Thanks
Ashwin S


#6

am not getting


#7

which is that variable strvar.tostring


#8

hi @mahesha

I have given that as an example

Please give that as an Integer variable not as string

Thanks
Ashwin S


#9

if you have done
can you share me your file for reference


#10

hi @mahesha

HighLight_Main.xaml (9.0 KB)

Thanks
Ashwin S


#11

@AshwinS2 i am getting error below error
Highlight ‘TABLE Calendar’ : The selector is not valid
i have pls check the workflow i have attachedHighLight_Main.xaml (10.2 KB)


#12

hi @Manjuts90

please do check this xaml I have change the selector you wont get the issue
HighLight_Main.xaml (9.0 KB)

Thanks
Ashwin S


#13

@AshwinS2 i have just added open browser activity to your workflow nothing else changed but i am getting above error.


#14

Hi @Manjuts90

send me the screenshot of the error and selector I have given

thanks
Ashwin S


#15

hi @Manjuts90

I will attach the entire xaml
HighLight_Main.xaml (11.3 KB)
Which browser you are using?

It is working fine in IE

Thanks
Ashwin S


#16

@AshwinS2 sorry to interupt you again if i given user input as 11 it should highlight 11th in all months from jan to dec on right side of calendar. i hope u got my question clearly now.


#17

hi @Manjuts90

if that is the case use send hot key as ctrl +f where and type the input value based on the search

Thanks
Ashwin S


#18

@AshwinS2 if i use ctrl+f all values present inside webpages which matches user input will be highlighted not just values inside calendar


#19

hi @Manjuts90

Based on that you can use Get Attribute Activity to get the details
try this :slight_smile:

Thanks
Ashwin S