This is a picture of the HTML in question. I am trying to click the time slot @ 4:34PM. This one in particular is "Jump 65" and the previous timeslot is Jump 64. I'd like the ability to specify and click any of the buttons with a timeslot.
Asked
Active
Viewed 55 times
0
-
Why not try using the `text()` function? `//a[text()='your text here']` – frianH Jan 13 '23 at 07:44
-
should work `driver.find_element(By.XPATH, '//a[text()="4:34 PM"]').click()` – sound wave Jan 13 '23 at 09:32
-
Adding to sound waves, You can also use "contains" and "logical operators" if needed. https://stackoverflow.com/questions/1064968/how-to-use-xpath-contains-here – rick Jan 13 '23 at 14:49