i did copy the xpath from the table to get:
In what circumstances does this fail
It appears that on this site, only executing javascript works
//*[@id="MainContentPlaceholder_RightColumnPlaceholder_RightColumnPlaceHolder_AssignedTrainingGridview_EnrolledCoursesGridview"]But it didnt catch it
In what circumstances does this fail
btn = driver.find_element_by_xpath('//*[@id="MainContentPlaceholder_RightColumnPlaceholder_RightColumnPlaceHolder_AssignedTrainingGridview_EnrolledCoursesGridview_ModuleButton_0"]') btn.click()but this works?
self.browser.execute_script("document.getElementsByClassName('btn btn-med lime-no-shadow module-button')[0].click()")
Quote:<a id="MainContentPlaceholder_RightColumnPlaceholder_RightColumnPlaceHolder_AssignedTrainingGridview_EnrolledCoursesGridview_ModuleButton_0" class="btn btn-med lime-no-shadow module-button" href="/Learning/CourseViewer.aspx?id=479561544">Take Now</a>
It appears that on this site, only executing javascript works
Recommended Tutorials: