selenium 「could not be scrolled into view」 解決方法

1.讓腳本sleep一下,等頁面加載完就能夠了app 2.第二種狀況比較尷尬,某些狀況元素的visibility爲hidden或者display屬性爲none,咱們在頁面看不到可是實際是存在頁面的一些元素,這時候用 is_display 來判斷(ele.display()):spa if ele.is_displayed(): #能夠操做了 pass
相關文章
相關標籤/搜索