使用chrome console檢查css selector/xpath的有效性

定位元素時,一般用xpath或css selector來定位,定位時可以藉助chrome瀏覽器或firefox瀏覽器的firebug來直接copy selector或copy xpath。此文介紹使用chrome怎樣去驗證css selector或xpath的有效性。 步驟 1. 按F12打開chrome的開發者工具; 2. 再按Esc鍵調出console 經過這倆步驟,chrome的Elemen
相關文章
相關標籤/搜索