-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
有方法可以判断element不存在吗? Element()初始化会报index out of range #39
Comments
建议改成:
|
有一样的问题 |
defnngj
added a commit
that referenced
this issue
Mar 7, 2023
你这是要执行两边find_elements? 那句应该改成elem = Browser.driver.find_elements(By.NAME, value),然后在最后加一句 elem = elem and elem[0] or None |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
`
__get_element 方法如果find_elements是[], 会发生index out of range
The text was updated successfully, but these errors were encountered: