我正在尝试使用selenium webdriver python自动化某些东西。我在这样做的过程中取得了部分成功。我在两者之间崭露头角。无法通过硒python来单击表中的超链接
<td role="gridcell" style="" title="6563378117093014222" aria-describedby="devices_x1AccountId">
<a href="accountSummary?accountId=6563378117093014222">6563378117093014222</a>
</td>
我试图单击表描述符中的超级链接,但它显示出一些错误。
这里是我的代码:
deviceID = browser.find_elements(By.XPATH, "//*[@aria-describedby= 'devices_billingId']/a")
deviceID.click()
我不知道我做错了。请提出一些解决的find_elements
什么样的错误你得到? – Sighil
@Rajesh你可能会搜索错误的咏叹调描述 - >看我更新的答案 – drkthng
@drkthng它的错字。即使我有另一种场景,我正在使用'devices_x1AccountId'。 – Rajesh