I am trying to use Python and Selenium to click either Yes or No on these buttons:
The HTML for these buttons is as follows:
I've tried to select based on the XPath:
isbnButton = browser.find_elements_by_xpath("//a[@data-toggle='haveisbn'")
as suggested by a friend, but it's giving me an error that says the string is not a valid XPath expression. I know pretty much nothing about XPath and am doing a tutorial right now while I await answers, but I'm hoping someone can guide me in the right direction.
What I originally tried was:
dontHaveISBN = driver.find_elements_by_class_name('btn radio btn-radio btn-primary not-active w-100')
dontHaveISBN[1].click()
but that wasn't recognizing any elements.
How would you select and click on these buttons?

