找不到跨元素

2024-06-16 11:18:21 发布

您现在位置:Python中文网/ 问答频道 /正文

我想单击rename按钮和del按钮,但得到以下异常

Unable to locate element: {"method":"xpath","selector":"//*[@class="rename"]/span1"}

@id是动态的,因此请不要使用@id来定位。你知道吗

HTML格式: enter image description here

有人能帮我解决这个问题吗?你知道吗


Tags: to定位id动态element按钮selectorxpath