How to wait for page loading when using casperjs?

后端 未结 7 1156
名媛妹妹
名媛妹妹 2020-12-14 17:29

I am trying to scrape a webpage which has a form with many dropdowns and values in the form are interdependent. At many point I need the code to wait till the refresh of the

相关标签:
7条回答
  • 2020-12-14 18:01

    Since Casperjs is written for developers, it's expected one knows what state the page loaded should be in, and what elements should be available to define a page-loaded state.

    One option is to check for the presence of, for example, a javascript resource that is loaded at the end of the page.

    When running any type of test, results must be reproducable each time and therefore idempotency is essential. For this to happen, the tester must be able to control the environment enough to make this happen.

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