How to get webDriver to wait for page to load (C# Selenium project)

后端 未结 7 1266
北荒
北荒 2020-12-04 22:57

I\'ve started a Selenium project in C#. Trying to wait for page to finish loading up and only afterwards proceed to next action.

My code looks like this:

<         


        
相关标签:
7条回答
  • 2020-12-04 23:32

    As said in Wait for page load in Selenium:

    In general, with Selenium 2.0 the web driver should only return control to the calling code once it has determined that the page has loaded. If it does not, you can call waitforelemement, which cycles round calling findelement until it is found or times out (time out can be set).

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