python - 引发 TimeoutException(消息,屏幕,堆栈跟踪) selenium.common.exceptions.TimeoutException:消息:问题
问题描述
else:
find_textarea = (
By.XPATH, '//*[@id="react-root"]/section/main/section/div/form/textarea')
WebDriverWait(bot, 100).until(
EC.presence_of_element_located(find_textarea)
)
comment_box = bot.find_element(*find_textarea)
WebDriverWait(bot, 100).until(
EC.element_to_be_clickable(find_textarea)
)
comment_box.click()
comment_box.send_keys(comment)
time.sleep(2)
find_button = (
By.XPATH, '//*[@id="react-root"]/section/main/section/div/form/button')
WebDriverWait(bot, 100).until(
EC.presence_of_element_located(find_button)
)
button = bot.find_element(*find_button)
WebDriverWait(bot, 100).until(
EC.element_to_be_clickable(find_button)
)
button.click()
time.sleep(random.randint(7, 30))
解决方案
推荐阅读
- c# - 如何在文本框得分为 5 后启用按钮?
- php - 我更新了我的 Laravel 6 应用程序密钥,现在登录返回 419 错误,尽管 csrf 有效
- python - Pandas groupby agg 用列标题的副本填满表格
- javascript - Node rest API: put request is not updating the request data
- r - 计算区域经济增长序列,即。四个国家的增长系列放在一起
- swift - .childAdded 与 queryLimited 复制数据时 .childMoved 只是假设被触发
- selenium-webdriver - how to test window.status variable
- iframe - 如何在 Hybris 的 PDP 页面上上传 360 度图像
- c# - 如何在 Unity 中找到 BlendShape?
- database - 如何在 onCreate 函数中获取新的数据库引用以发送邮件?