-1

error while locating svg in selenium using python

error: selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: /html/body/div1/section/div/div1/div/div[3]/div/div[2]/a/svg/path

inspect element

Ansan
  • 11
  • 1

1 Answers1

0

You have to identify svg using the name attribute as shown below

/html/body/div1/section/div/div1/div/div[3]/div/div[2]/a/*[name()='svg']/path
supputuri
  • 13,644
  • 2
  • 21
  • 39