Very new to Selenium and Python (any form of coding in general). Trying to automate a bot to book a gym slot as they are booking up before I can even get a chance.
I'm trying to get selenium to click on the evening slot. The whole box is selectable (https://i.stack.imgur.com/rHdLf.png) (https://i.stack.imgur.com/vYxyk.png)
I tried using this
WebDriverWait(driver, 5).until(EC.element_to_be_clickable((By.XPATH, "//div[contains(@class='activity-start-time ng-star-inserted')]//span[contains(text(),'5:00PM')]"))).click()
but it fails receiving the following exception: InvalidSelectorException. Unable to locate an element with the xpath expressions