I am trying to use selenium to select a dining date(the website: https://inline.app/booking/-Lhcc8hgL2_MsPhLnZau:inline-live-2a466/-Lhcc9ECucQR5xXgsvL7?language=en)
The code I used is:
driver = webdriver.Chrome('/Users/agneschang/Downloads/chromedriver')
driver.get('https://inline.app/booking/-Lhcc8hgL2_MsPhLnZau:inline-live-2a466/-Lhcc9ECucQR5xXgsvL7?language=zh-tw');
driver.find_element_by_xpath('//*[@id="adult-picker"]/option[7]').click()
driver.find_element_by_id("date-picker").click()
driver.find_element_by_xpath("//*[@id="calendar-picker"]/div[2]/div[3]/div[1]/div[2]/button")
I copy the selected dining date's button but the last line in my code always show error. Is there any suggestion for me to click the date button?
ps. the html of the website is html: