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
Untitled Export Job_MDM 06142020_18:09_HCP
– Piyush Jun 15 '20 at 02:37