在用python selenium模拟登陆网站的时候,想用xpath定位到如图中的“公開停止中”,用chrome xpath插件复制了xpath,为什么定位不到呢,是绿色的注释的原因还是shadow root的原因呢,请大神指教,不胜感激!
driver.find_element_by_xpath('//*[@id="currentListing"]/mer-list/mer-list-item[2]/a/mer-item-object//div/div/span[2]/mer-text/text()')