How to Select time from a slider

Can anyone help me how can I select time from a slider which looks like below:

image

I am not able to clear the time added in the text box, the only option available is to select the time from sliders and time we have to select is also not static, will be generated dynamically

@sgarg

can you provide from where you are getting the time ?

usually we use

now.ToString(“hh:mm tt”) gives present time in 1:30PM format

cheers

I have to get the time from an excel which is the time of appointments and then I have to select the same time from this slider,

I am able to get the time from Excel but not able to select the same time on the portal

@sgarg

have you tried with typeinto activity to type in the portal

Yes, typeinto is not working

@sgarg

  1. Try using set text activity …that might work
  2. Alternately…identify each tile’s selector and in the selector there will be innertext which talks about the number you need to click…add variable in there and use

Eg : <webctrl tag='DIV' class='Hour' innertext='{{hoursvariable}}' />

And pass the hoursvariable value as you need to the selector and similarly for minutes

Cheers

1 Like

Hi @sgarg

Store the hours, minutes and meridiem in three different variables using string manipulations or regex.
Use select item activities to select the each item in the dropdown.

When I was trying to do the same gives me below error, please suggest:

image

@sgarg

You need to use clicks not select item

cheers

Please check below steps I have used to get dynamic selector:

  1. Used Ui Explorer > Indicate Element > indicated element on the website > Validate icon becomes green
  2. Again clicked on Validate to verify the details but then Validate becomes Red and didn’t validate

I couldn’t get why is it happening, please if anyone can suggest possible reason behind this, I haven’t changed any attribute from the selector

@sgarg

Just by selecting you cannot get the selector…you need to use the right top panel and center top panel to make it dynamic and also without any remove any attributes that are not constant across pages

Please check this for few basics

cheers

Thanks for the details, but I think i couln’t make my query clear. My quesion was, why is it that even if I haven’t done any changes in selector which got generated after indicate element in Ui Explorer, is not validating when I am clicking on validate again

@sgarg

Did you refresh the page?

or may be the generated one is also not unique an dis finding multiple matches

please show the ui explorer screenshot

or may be the UI is dynamic using classes and the class generally some times changes when hovered over and off the element

cheers

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.