Do not wait for page to load

后端 未结 1 1378
予麋鹿
予麋鹿 2021-01-14 04:43

My problem is that the site from which I have to fetch data is taking too much time in loading which increases the execution time of my testcase. I don\'t want to wait for w

相关标签:
1条回答
  • 2021-01-14 05:18

    Using FireFox you can try webdriver.load.strategy = unstable. Maybe it will suits you.
    Check here.

    Unfortunately usually webdriver waits for whole page to be loaded. I got similar problem with testing pages like Youku - sometimes 3min it's not enough to get content.

    You can also try with:
    IJavaScriptExecutor js = (IJavaScriptExecutor)Driver; js.ExecuteScript("return window.stop");
    It worked for me locally although on VMs I had still the same problem.

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