当我尝试通过单击提交按钮进入下一页时 30000 毫秒后超时 [英] Timed out after 30000ms when I try to go next page by clicking Submit button

查看:25
本文介绍了当我尝试通过单击提交按钮进入下一页时 30000 毫秒后超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能的重复:
超时30000 毫秒后,当我尝试通过单击提交按钮进入下一页

我正在通过java使用Selenium RC.在第一页填写必要的数据-->点击提交按钮进入下一页.我的代码是:selenium.click("提交");selenium.waitForPageToLoad("30000");单击提交按钮后,我发现错误:com.thoughtworks.selenium.SeleniumException: Timed out after 30000ms

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 服务器会抛出超时错误.当您获得至少 40kB/s 的良好互联网速度时尝试.

This could be because of slow internet connection. If page does not get downloaded fully on the specified time, the selenium server throws timeout error. Try when you get good internet speed of at least 40kB/s.

这篇关于当我尝试通过单击提交按钮进入下一页时 30000 毫秒后超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆