0

I am trying my code to find the window I want to access by finding its XPath but when I run the code I keep getting No Element Interactable error. I am working on this website, https://new.igashop.com.au/. The window I am trying to access is

image

and my code is

 driver = get_webdriver()
 driver.delete_all_cookies()
 driver.implicitly_wait(10)
 driver.get("https://new.igashop.com.au/")
 city = product_sheet.col_values(2)[index]
 window =  driver.find_element_by_xpath('/html/body/div/header/section[1]/section[1]/div/div[2]/div[1]/div/div')
 window.click()

Am I getting this error because of the wrong Xpath? If so, what would be the right xpath? Thank you in advance for your help and advice.

Timus
  • 7,225
  • 5
  • 10
  • 24
cj234
  • 11
  • 3

0 Answers0