[問題] 網頁自動輸入資料問題

作者: love113w (free)   2019-08-28 09:42:13
如題
在帳號密碼欄位 f12 出來是
Input data-v-4f85195f type=“text” max length=“12”
想抓取帳號密碼欄位 然後自動填表
煩惱了許久 也上網查了資料 請問沒有ID跟NAME要如何抓?謝謝
https://i.imgur.com/17oJBfm.jpg
作者: Hsins (翔)   2019-08-28 09:52:00
把問題敘述清楚很難?
作者: jiyu520 (不要鯽魚我)   2019-08-28 10:20:00
就 把 這個 就可以了
作者: love113w (free)   2019-08-28 10:40:00
抱歉 原本有完整打出來 不知道為何消失了 等等補上各位前輩已補上 造成困擾 不好意思
作者: acer1832a (Mike)   2019-08-28 11:24:00
你直接截圖比較清楚吧,HTML元素應該不只有這樣
作者: rexyeah (ccccccc)   2019-08-28 12:33:00
google: find by css or xpath
作者: justoncetime (台北叢林好冷~)   2019-08-28 14:29:00
用啥元件? code也沒有...selium用tab去定位呢
作者: s860134 (s860134)   2019-08-28 22:52:00
xpath following-sibing preceding-sibling 結案
作者: windclara (null)   2019-09-10 06:57:00
$(".input-block input") 這樣應該就行了吧

Links booklink

Contact Us: admin [ a t ] ucptt.com