pythonselenium获取html标签内容_python selenium 如何获取网页页面所有可以点击的元素?...
@wow2828:
1.觸發所有元素的click事件,如你所說用遞歸
2.注冊事件通知,beforeNavigateTo 記錄所有http nav地址到數據庫,狀態,關系等
http://www.seleniumeasy.com/selenium-tutorials/webdriver-event-listener-example
3.設法stop當前頁面的nav行為。
https://stackoverflow.com/questions/33675969/stop-page-load-during-navigate-url-in-selenium
https://sqa.stackexchange.com/questions/5663/is-it-possible-to-stop-page-loading-on-the-browser-using-selenium-web-driver
https://stackoverflow.com/questions/5453423/how-to-stop-the-page-loading-in-firefox-programmatically
4.重復上述行為
5.數據庫標記http nav地址是否已執行過
類似于頁面爬蟲做抓取,所有頁面所有鏈接,所有nav執行完成后。就知道那些nav,或者click產生的nav是不是死鏈了
總結
以上是生活随笔為你收集整理的pythonselenium获取html标签内容_python selenium 如何获取网页页面所有可以点击的元素?...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 网站https加载不出css样式_Pyt
- 下一篇: python求均方根误差_python之