30000ms超时后,当我试图通过单击使用Selenium RC提交按钮,进入下一页 [英] Timed out after 30000ms when I tried to go next page by clicking Submit button using Selenium RC

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

问题描述

我使用Selenium RC被Java。填写第1页上的必要的数据 - > 点击提交按钮进入下一个页面。我的code是:

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

任何人都可以请帮我吗?

Can anybody pls help me?

推荐答案

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(时间m.sec)

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

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