python鼠标事件报错问题TypeError: rect is undefined

今天在练习鼠标事件api时,运行脚本一直报selenium.common.exceptions.WebDriverException: Message: TypeError: rect is undefined,最后尝试多次后发现用ele = b.find_element_by_partial_link_text('设置') 定位后,运行脚本不报错,于是怀疑是定位方法有问题。
相关文章
相关标签/搜索