How can I make sure if some HTML elements are loaded for Selenium + Python?

后端 未结 2 1656
不思量自难忘°
不思量自难忘° 2020-11-27 23:41

From this link, I assume the DOM should be loaded as a whole at first in RAM.

How DOM works/is loaded? (in HTML)

But then I test in Selenium with a timeout e

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-28 00:13

    I found the answer by checking the loading behavior of HTML.

    Basically the HTML loads upside down, that said, I just have to check if a elemet behind the elemt, e.g. if another element comes after , just check if another element is presented or not. If yes, then all the elements must be loaded.

提交回复
热议问题