51Testing软件测试论坛

标题: Could somebody help me out? [打印本页]

作者: keiko2    时间: 2006-3-21 22:32
标题: Could somebody help me out?
I tried a loop on fetch serial pages converted from server. When the loop runs each time, the url at address bar changed very quickly and correct, but the page is still the first page there, others couldn't be loaded up. Can somebody help me out to solve this problem.

For iChunk = 0 To intC - 1
strReqChunk = Replace(strUrl, "/idx", "/text?Chunk=" & iChunk)
Browser("Publish Document").Navigate strReqChunk
Browser("Publish Document").Page(GetPage()).Sync
Next 'Repeat each Chunk

Thanks,
Keiko
作者: 风过无息    时间: 2006-3-22 08:39
假如是页面响应慢,你可以把运行的响应时间增大,或者在程序里面增加等待时间。
作者: 我要做SQAD    时间: 2006-3-22 16:11
Browser("Publish Document").Refresh
作者: keiko2    时间: 2006-3-22 23:04
I just tried both ways, but it didn't work too.

Thanks,
Keiko




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2