I am a computer science student and this is my first post on stackoverflow, I am trying to write a code that automatically logins into my college website and helps with booking a court for my sports.
I am trying to write a line that clicks on a tag with data-id, but can’t seem to find a way…
Here is a screenshot of the tag that website contains…
And here is some lines i have tried that didn’t work…
driver.find_element_by_xpath(‘/html/body/section/div/div[3]/div[2]/div/div/div[3]/button’).click()
driver.FindElement(By.CssSelector(“[data-text=’Shift 3′]”)).click()
Hoping anyone could help…