So I am currently trying to scrape data from youtube pages. I am using Selenium in order to do this automatically. The issue is that the browser that comes up has not signed in as I am on the non generated selenium browser. So it comes up with the sign in or 'No Thanks' icon. I have looked around and found the Xpath for the 'No Thanks' button but my system indicates 'element not interactable'.
Code I inputted:
#We need to tell the drive to find the video of choice
driver.find_element_by_xpath('//*[@id="video-title"]')
driver.find_element_by_xpath('//*[@id="button"]')
#Interact with the above
driver.find_element_by_xpath('//*[@id="video-title"]').click()
driver.find_element_by_xpath('//*[@id="button"]').click()
I tried to copy the full Xpath also. Any suggestions?


iframe.iframe? Are u sure?