Fw: [問題] ssh連線 在Python裡面控制selenium
※ [本文轉錄自 Linux 看板 #1LkAYF5w ]
作者: cal0712 (冷靜 沉著 堅持) 看板: Linux
標題: [問題] ssh連線 在Python裡面控制selenium
時間: Wed Jul 29 18:18:47 2015
版上的高手大大好,
小弟最近要寫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
※ 發信站: 批踢踢實業坊(ptt.cc)
※ 轉錄者: cal0712 (211.21.108.1), 07/29/2015 18:23:13
推
07/29 19:49, , 1F
07/29 19:49, 1F
→
07/29 19:49, , 2F
07/29 19:49, 2F
推
08/14 23:23, , 3F
08/14 23:23, 3F
→
08/14 23:23, , 4F
08/14 23:23, 4F