[問題] ssh連線 在Python裡面控制selenium
版上的高手大大好,
小弟最近要寫Python的登錄程式 用Python開啟selenium 然後輸入帳密後做一個
登錄的動作 在windows環境下 會開啟Firefox 輸入參數後然後再登錄
現在換到Linux環境想要進行相同的流程 得到了以下的錯誤訊息:
selenium.common.exceptions.ElementNotVisibleException:
Message: Element is not currently visible and so may not be interacted with
在網路上找到可能的解決方法
(http://stackoverflow.com/questions/7109840/cannot-start-browser-for-selenium-through-ssh)
但感覺不是很穩定 想請問版上高手是否可以直接在Python端修改程式碼解決此問題呢
也就是希望在用ssh連線時 實際開啟Firefox瀏覽器進行瀏覽的動作 進而觸發相關的
網頁功能
感謝
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 211.21.108.1
※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1438165135.A.17A.html
※ cal0712:轉錄至看板 Python 07/29 18:23
→
07/30 00:29, , 1F
07/30 00:29, 1F
推
07/30 11:31, , 2F
07/30 11:31, 2F
→
07/30 11:32, , 3F
07/30 11:32, 3F
→
07/30 11:33, , 4F
07/30 11:33, 4F
→
07/30 11:33, , 5F
07/30 11:33, 5F