[英]Add geckodriver to PATH on Windows 11
要使用 Selenium 完成一個項目,我首先需要將 Geckodriver 添加到 PATH。 我已經閱讀了很多關於向 PATH 添加元素的文章,但沒有一篇最終起作用(我按照步驟向 PATH 添加了一個新元素,但是當我運行我的程序時,我得到了'geckodriver' executable ne ...
[英]Add geckodriver to PATH on Windows 11
要使用 Selenium 完成一個項目,我首先需要將 Geckodriver 添加到 PATH。 我已經閱讀了很多關於向 PATH 添加元素的文章,但沒有一篇最終起作用(我按照步驟向 PATH 添加了一個新元素,但是當我運行我的程序時,我得到了'geckodriver' executable ne ...
[英]How can I use Selenium 4.7.2 (Python) on an old Firefox version (Firefox 47)?
我有一個 Selenium 項目正在開發最新版本的 Firefox。現在我需要讓它在 Firefox 上運行 47. 最好的方法是什么? 如果我使用舊版本的 geckodriver,它會工作嗎? ...
[英]Problem running Selenium with Firefox, Geckodriver and Perl
我在使用 Perl 的 Selenium::Remote::Driver 運行 Selenium 時遇到問題。 我在 Ubuntu 22 上使用 Selenium standalone 3.9.1 + Geckodriver 0.29.0 + Firefox 91.7.0esr 首先,我嘗試使用所有 ...
[英]Please Help me with selenium on Firefox
晚上好,我正在嘗試使用 Firefox 中的 selenium 進行一些測試,但我卡住了,我無法點擊按鈕,因為我收到了接受 cookies 的消息,這不允許我繼續測試,我不知道如何讓 selenium 接受 cookies。 這是它給我的消息: An exception occurred: Ele ...
[英]I can't run geckodriver, python selenium ; [WinError 216]
我有 win32 驅動程序 https://github.com/mozilla/geckodriver/release 並將exe放在python38文件夾下我正在運行 windows 11 OSError: [WinError 216] 此版本的 %1 與您正在運行的 Windows 版本不 ...
[英]selenium.common.exceptions.SessionNotCreatedException: Message: Failed to start browser /snap/firefox/current/firefox.launcher
我正在嘗試使用 python 中的這個簡單程序打開 Firefox,我使用的是最新版本的 Ubuntu。 但我收到錯誤消息,“selenium.common.exceptions.SessionNotCreatedException:消息:無法啟動瀏覽器/snap/firefox/current/ ...
[英]Cannot parse Mozilla repo URL in SVN client. Trying to pull code
我想嘗試從源代碼構建 gecko 驅動程序。 該代碼位於 Mozilla 存儲庫中: https://hg.mozilla.org/mozilla-central/file/tip/testing/geckodriver 我下載了烏龜 svn 並嘗試在 SVN 瀏覽器中使用這個 URL 和根 URL ...
[英]How to launch the python selenium script on Ubuntu?
我試圖在xvfb-run firefox之后啟動它,但它返回這些錯誤。 當我嘗試使用python3命令啟動它時,它返回NotADirectoryError: [Errno 20] Not a directory: '/home/druid/.wdm/drivers/geckodriver/linu ...
[英]Watir won't open Firefox
我正在嘗試將 Watir 與 Firefox 一起使用: 但不斷收到此錯誤: 我發現這個問題很可能是由 Geckodriver 引起的,所以我安裝了 geckodriver-bin (0.28.0) 但仍然沒有運氣。 有小費嗎? ...
[英]Change default profile saving directory - Selenium Firefox
我將 selenium 與 geckodriver 一起使用,我的目標是在定義的路徑上使用預先存在的會話配置文件,而不是默認目錄tmp 。 當我使用新配置文件啟動 session 時:from selenium import webdriver profile = webdriver.Firefo ...
[英]Webdriverio is not working with firefox on selenium-standalone
我有如下的 wdio 配置 } 我的 package json 有 並嘗試運行演示測試,但隨后出現錯誤 僅當我將瀏覽器設置為 firefox 時才會發生此故障,如果我將其設置為 chrome,則它可以正常工作。 為了驗證,我嘗試通過配置'npm install wdio-geckodriver- ...
[英]Firefox Webdriver, add website cookies exception?
我有一個 Selenoid Firefox 容器正在運行一些測試,但新的瀏覽器版本給我帶來了問題。 Since Firefox 103.0 Cross-site tracking cookies are blocked by default and I am looking for a way ...
[英]Python linuxmint binary is not a Firefox executable
我測試了 selenium python 並且我在 firefox 中遇到了這些錯誤,我找不到解決方案這里我的代碼 我的錯誤消息 python linuxmint: 我在論壇上搜索了幾天,但我找不到 linux mint 的解決方案! 謝謝斯蒂芬妮 ...
[英]switch_to.window() works fine on Win10 but returns unable to locate window on Linux
就像標題一樣,在 Win10 上測試代碼時一切正常,但在嘗試在 Linux 上運行代碼后,我得到selenium.common.exceptions.NoSuchWindowException: Message: unable to locate window: undefined 。 我在兩個操 ...
[英]Does selenium webdriver collect data?
我知道我們用於 selenium 的 Webdriver 只是一個普通的 Webdriver,就像我們在日常生活中使用的那個一樣。 但可能是,selenium Webdriver 收集我們的數據(例如,當我們使用訪問令牌時)? ...
[英]find element by id using selenium
我在 ubuntu 22.04(代號:jammy)上使用 firefox(我用 apt 安裝它而不是 snap)。 我的 Selenium 版本是(4.2.0),我使用的是 python3。 我的代碼: 我收到以下錯誤消息: ...
[英]Firefox browser wont open maximized and wont switch tabs using Selenium
我在 python 3.9 上通過 selenium(3.141.0) 打開 Firefox 瀏覽器,它總是開始最小化,即使在代碼中我在打開 browser.im 后通過 ZC1C425268E68385D14AB5074C17A9(F)。 當它以這種方式啟動時,它不會執行代碼以最大化,也不會執行代 ...
[英]Geckodriver get error message NS_BINDING_ABORTED when calling webdriver.Firefox
我真的在和 geckodriver 苦苦掙扎。 運行下面的代碼時,我收到錯誤消息“SessionNotCreatedException:消息:錯誤:NS_BINDING_ABORTED”。 最近的電話是我稱之為“driver = webdriver.Firefox(...)”的那一行我已經“到處” ...
[英]I am trying to launch Firefox using geckodriver for selenium webDriver in Ubuntu 22.04.1 LTS and got error msg as -
rg.openqa.selenium.WebDriverException:在 PATH 中找不到 firefox 二進制文件。 確保安裝了 firefox。 操作系統似乎是:LINUX 構建信息:版本:'4.0.0',修訂:'3a21814679' 系統信息:主機:'rashed-hp',ip: ...
[英]NoSuchWindow error when I try to use Facebook sign in using RSelenium
我正在嘗試使用 RSelenium 登錄到使用 facebook 登錄的站點。 我可以輸入我的 email 和密碼並單擊登錄,但隨后返回“NoSuchWindow”錯誤。 這是因為 Facebook 登錄選項卡自動關閉了嗎? 我怎樣才能防止這個錯誤? 這將返回以下錯誤: ...