Timed out after 30000ms when I tried to go next page by clicking Submit button using Selenium RC

前端 未结 1 1330
刺人心
刺人心 2021-01-22 10:49

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\");
se         


        
相关标签:
1条回答
  • 2021-01-22 11:43

    Selenium.waitforpagetoload("30000");

    means you are giving time 30000 m.s= 30 seconds

    It means your page is taking more than 30 seconds to load completely.

    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").

    0 讨论(0)
提交回复
热议问题