I am trying to select an element to click it on a page (https://twitchtracker.com/riotgames/games). The element is a selectable date on a calendar pop-up.
It is
<div class="day unit in-range" data-time="1698822000000">1</div>
.
Is there any way to select the element using the data-time="1698822000000"
element.
I’ve tried using By.CSS_SELECTOR but I always obtain a ‘Unable to locate element’ error.
2
Answers
you can use the
get_attribute
function to get thetag
value from the selenium web element like this: