I am in activesg website. I am trying to book a timeslot. There two types of buttons, one is red means unavailable and another one is black means available. I am trying to use Element exists to fin black button if yes, click on it. However. it cannot identify between black or red buttons
The html inspect image you provided are not clear. But from the image i can say, there is a separate class added for the Red Button with css property background-color: #c33825;
You can use this class name to differentiate between two buttons and create your selector. Please provide website access or more clear image displaying all properties to analyze further.
Hope this is helpful!
I think you should extend your selector to “input” element instead of “label”. The different between red and black input is based on enable/disable. Use the get attribute of “aastate” of the element to differentiate between red and black, and you may find your answer.