0

I am trying to extract text from an element having class name or div same as other 50 elements in page. While trying to navigate it shows error as list index out of range error.

Any help what should I follow to extarct the text from //pclass?

My Code : elements= driver.find_elements_by_xpath("//*[contains(text(), 'Untitled Export Job_MDM')]") elements[0].text

Please see HTML in comment section

Piyush
  • 1
  • 4

0 Answers0