Timed out after 30000ms when I tried to go next page by clicking Submit button using Selenium RC(当我尝试通过使用 Selenium RC 单击提交按钮进入下一页时,在 30000 毫秒后超时)
问题描述
我正在通过 java 使用 Selenium RC.在第一页填写必要的数据-->点击提交按钮进入下一页.我的代码是:
I am using Selenium RC by java. Fill up necessary data on 1st page-->Click Submit button to go next page. My code is:
selenium.click("Submit");
selenium.waitForPageToLoad("30000");
点击提交按钮后发现错误:
After clicking Submit button I found the error:
com.thoughtworks.selenium.SeleniumException: Timed out after 30000ms
谁能帮帮我?
推荐答案
Selenium.waitforpagetoload("30000");
Selenium.waitforpagetoload("30000");
表示您给时间 30000 m.s= 30 秒
这意味着您的页面需要 30 多秒才能完全加载.
It means your page is taking more than 30 seconds to load completely.
所以为了避免错误给更多的时间.比如 60 秒或 90 秒.
So in order to avoid the error give more time. like 60 seconds or 90 seconds.
通过手动单击提交大致查看页面完全加载所需的时间并记下时间.(如果您的互联网连接较低,则可能需要很长时间).
Once roughly see how much time the page is taking to load completely by clicking on the Submit manually and note down the time.(it may take long time if your internet connection is low).
所以在检查了加载时间之后,在
So after checking the time it is taking to load, Give that time in
selenium.waitforpagetoload("time in m.sec").
这篇关于当我尝试通过使用 Selenium RC 单击提交按钮进入下一页时,在 30000 毫秒后超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:当我尝试通过使用 Selenium RC 单击提交按钮进入下一页时,在 30000 毫秒后超时
基础教程推荐
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- 存储 20 位数字的数据类型 2022-01-01
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- 如何对 Java Hashmap 中的值求和 2022-01-01
- RabbitMQ:消息保持“未确认"; 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- Struts2 URL 无法访问 2022-01-01
