如何使用 id.class.href python selenium 在此处单击 link,我使用 pyCharm

How can I click on the link here with using id.class.href python selenium, I using pyCharm

如何使用id.class.href python selenium 点击link,我使用pyCharm *href is Changeable

我试试 driver.find_element_by_xpath("//div[@id='result_26']//a[@class='a-link-normal s-access-detail-page s-color-twister-title-link a-text-normal']/@href").click() enter image description here

您点击的是 href 属性 而不是 <a> 标签

假设您的 xpath 是正确的,只需从末尾删除 /@href,它应该可以正常工作。