div class=status not-marked ng-scope ng-if=subjectListgetIndexrow column && subjectListgetIndexrow columnscore == nullspan class=text ng-binding ng-bind=notMarked待批改spandiv这段网页元素怎么定位写出代码
这段网页元素可以通过以下代码定位:
使用CSS选择器定位:
driver.find_element_by_css_selector("div.status.not-marked.ng-scope span.text.ng-binding")
使用XPath定位:
driver.find_element_by_xpath("//div[@class='status not-marked ng-scope']/span[@class='text ng-binding']")
原文地址: https://www.cveoy.top/t/topic/hfvh 著作权归作者所有。请勿转载和采集!