-
Notifications
You must be signed in to change notification settings - Fork 8
Home
HiCodd edited this page Mar 7, 2019
·
1 revision
Welcome to the AutoAddProblem wiki!
- 由于OJ版本更新的问题,所以导致无法准确获取dom中的元素值
因为oj版本更新,页面元素的定位不同会导致在定位元素的时候找不到元素,从而出现错误‘raise TimeoutException(message, screen, stacktrace) selenium.common.exceptions.TimeoutException: Message: ’
- 解决方法
- 打开浏览器的开发者模式选项,重新查看元素位置,并修改代码
- 同时还有可能出现上传测试数据不成功的问题,这时需要注意file_input的路径和file_input的定位不是button而是在button下边的input元素。