詢問各位大大 ><
我的問題:我想要在網頁先下關鍵字點查詢後,再去爬文回來。但在下關鍵字給條件值的時候遇到一個問題。只要是這種type="hidden" 類型的,我用send_keys都是沒有效果。
這邊該如何調整呢

例如我想在[希望工作地點]輸入高雄市
https://ithelp.ithome.com.tw/upload/images/20220119/20145896BFSFGejI9E.png
點完後後,XML呈現的是如下及我的程式碼:
https://ithelp.ithome.com.tw/upload/images/20220119/201458969qBBRSz3C3.png

hi我用這個語法,會出現定位不到元素。
invalid selector: An invalid or illegal selector was specified
我試了以下:
https://ithelp.ithome.com.tw/upload/images/20220124/20145896EMXychbv3R.png

我覺的這網頁的多選項跟一般的下拉式不太一樣。
提供網頁原始碼給你看看。
圖一:未點選的畫面
https://ithelp.ithome.com.tw/upload/images/20220124/20145896pmNdKR6ZQ9.png
圖二:點選畫面,選完項目後,直接按方框中右上的x,值就會自動進去。
https://ithelp.ithome.com.tw/upload/images/20220124/20145896nx5VutJl8I.png
圖三:點選完後的畫面
https://ithelp.ithome.com.tw/upload/images/20220124/20145896nNYLe0wPjZ.png

invalid selector: An invalid or illegal selector was specified 我試了以下: ![https://ithelp.ithome.com.tw/upload/images/20220124/20145896EMXychbv3R.png](https://ithelp.ithome.com.tw/upload/images/20220124/20145896EMXychbv3R.png) 我覺的這網頁的多選項跟一般的下拉式不太一樣。 提供網頁原始碼給你看看。 圖一:未點選的畫面 ![https://ithelp.ithome.com.tw/upload/images/20220124/20145896pmNdKR6ZQ9.png](https://ithelp.ithome.com.tw/upload/images/20220124/20145896pmNdKR6ZQ9.png) 圖二:點選畫面,選完項目後,直接按方框中右上的x,值就會自動進去。 ![https://ithelp.ithome.com.tw/upload/images/20220124/20145896nx5VutJl8I.png](https://ithelp.ithome.com.tw/upload/images/20220124/20145896nx5VutJl8I.png) 圖三:點選完後的畫面 ![https://ithelp.ithome.com.tw/upload/images/20220124/20145896nNYLe0wPjZ.png](https://ithelp.ithome.com.tw/upload/images/20220124/20145896nNYLe0wPjZ.png) https://stackoverflow.com/questions/60045234/how-to-extract-the-text-of-the-selected-option-of-a-dropdown-menu-using-selenium

hi I code so I am
我試過以下二種,都會出現無法把值存入
Could not locate element with visible text: FLPT(English)
Cannot locate option with value: 4006001003
https://ithelp.ithome.com.tw/upload/images/20220127/201458969a5jeXaSS7.png
https://ithelp.ithome.com.tw/upload/images/20220127/20145896bIxPU6WDTc.png

我補充一下,選取項目後和之後的原始碼,能不能看出不一樣的地方

(這是未選任何項目,而且這邊是可以多選的)
https://ithelp.ithome.com.tw/upload/images/20220127/201458962ZtNlMRqjV.png

這邊是選完項目後,它才會自動出現value的值出來。
https://ithelp.ithome.com.tw/upload/images/20220127/20145896HFrhfP8KkN.png