[英]Selenium: 'list' object has no attribute 'find_elements'
我看到了這個答案,但無法弄清楚為什么它會這樣。 所以我有以下代碼: 我在最后一行 ' list' object has no attribute 'find_elements ' 誰能幫我解釋為什么它會這樣? 我該怎么做才能通過名稱 class 獲取該元素? 編輯:完整錯誤: 進程結束,退出代碼為 ...
[英]Selenium: 'list' object has no attribute 'find_elements'
我看到了這個答案,但無法弄清楚為什么它會這樣。 所以我有以下代碼: 我在最后一行 ' list' object has no attribute 'find_elements ' 誰能幫我解釋為什么它會這樣? 我該怎么做才能通過名稱 class 獲取該元素? 編輯:完整錯誤: 進程結束,退出代碼為 ...
[英]How to reach appium server from android emulator
在 ReactNative android 應用程序中,我想檢測正在運行的 appium 服務(端到端服務器),以便我的應用程序知道它當前正在運行 e2e。 從我的 android 模擬器中,為了到達我的localhost ,考慮到 Android 模擬器使用localhost作為它自己的網絡接口, ...
[英]how to procses Cloudflare Turnstile in web driver with selenuim
我嘗試使用 selenuim 模塊來獲取某些網站不成功。 這就是我的嘗試:undetected_chromedriver 添加用戶配置文件使用代理。 當我用 webdriver 打開它時,Cloudflare 不允許我處理。 當我用普通 chrom 打開它時,它工作正常。 有idias嗎? ...
[英]How can I use a Webdriver Testcontainer in Bitbucket Pipelines?
嘗試在 Bitbucket 管道中使用 Webdriver Testcontainer 時,我收到以下錯誤消息: 我的測試容器版本是 1.17.6 這是我在嘗試排除故障時使用的代碼:package com.byzpass.demo; import org.junit.*; import org. ...
[英]Selenium: Why does find_elements method does not raise any exception
我有一個 python 代碼來獲取所有元素 元素“review-container”不存在但也不例外。 如果我改用find_element()它會引發異常,但我需要使用find_elements()因為它是一個循環元素。 ...
[英]How to scrape all the prices using Selenium and Python
我想從 Viagogo 獲取票價,但運氣不好。 該腳本看起來很簡單,適用於其他網站,但不適用於 Viagogo。 從這里獲取標題中的文本沒有問題。 它總是返回一個空結果(即[] )。 誰能幫忙? 代碼試驗: 我期望網站右側定義的 7 個價格位於“每張票”上方 ...
[英]How to run selenium python script on already opened chrome?
我知道如何使用 selenium 打開一個新的 window。但是我想要在我正在使用的 chrome 的同一個 window 中有一個新標簽。 怎么做? 我已經嘗試過: ...
[英]Xcode 65 error while running Appium Inspector
我在運行 Appium Inspector 時遇到了這個錯誤: Failed to create session。處理命令時發生未知的服務器端錯誤。 原始錯誤:Unable to launch WebDriverAgent because of xcodebuild failure: xcodeb ...
[英]Find driver element with Python
我正在嘗試從 MS Edge 下載文件。 該網頁受用戶名和密碼保護。 我能夠打開 MS Edge,並導航到相應的頁面,但是,我無法導航用戶名和密碼框。 出現錯誤如下: 類型錯誤:builtin_function_or_method 類型的 Object 不是 JSON 可序列化的我嘗試了一個更大的程 ...
[英]How to select a value from drop down menu in Python
我正在嘗試使用 selenium 單擊“Demonstrativo de Caixa”(值 =“4”)。 不幸的是我每次都會收到這個錯誤:select = Select(driver.find_element(By.ID('ddlRelatorio'))).text TypeError: 'str' ...
[英]Webdriver error from Selenium on Google Colab
我正在使用 Selenium 在 google colab 上創建一個抓取工具,但現在不起作用。 過去是的,但我不知道為什么現在沒有。 代碼是: 當我運行這段代碼時,colab 顯示下一個錯誤: “消息:服務 chromedriver 意外退出。狀態代碼為:1” 錯誤截圖你知道任何解決方案嗎? 我 ...
[英]How to fetch second id from <div> tag using xpath if its has multiple classes with same classname and multiple div tag
觀察到唯一的唯一值是 id,在這種情況下我們如何獲取。 請查找HTML: 嘗試使用以下代碼行時: 我只得到第一個ID,即; 0007 但我總是需要第二個 id="110007",你能建議我獲取第二個 id 預計 output:110007 ...
[英]Can't get data-value out of element with selenium
在我的代碼中,我想從文本中獲取數據值。 我的代碼是這樣的: 在這種情況下,{AmountInput} = "Ten" 和 AmountInputFinal = ["Pound", "Euro", "Canedian Dollar"] 然而我的 output = 12 6個 18 為什么它不起作用 ...
[英]Errno 2 No such file or directory error while trying to execute Selenium Python program
我正在學習 Python 和 Selenium,我在嘗試執行 Selenium Python 程序時遇到代碼問題。 錯誤是: 這是我面臨的錯誤的快照: 我正在嘗試讓 selenium 啟動 chrome 有人能幫我嗎? ...
[英]Selenium C# click "Save" on edge
我看過很多關於如何在 Edge 中的“另存為”window 上單擊“Enter”的帖子,但似乎都沒有用。 我正在嘗試在我的本地計算機上下載一個文件,但似乎 ctrl + s 有效但 enter 無效。 我正在使用以下內容: 似乎沒有執行的代碼: 問題是當我要下載的發票生成時它會自動打開並聚焦新選項 ...
[英]What do these Web Driver selectors select?
這些 web 驅動程序選擇器 select 有什么作用? 謝謝你。 ...
[英]How to fetch multiple ID using xpath or cssSelector if its sharing the same classname
試圖獲取 ID 但未針對以下代碼拋出未找到元素的異常: 以上兩行代碼沒有工作拋出沒有找到元素異常請找HTML: 這里因為強標簽內的內容不是常量,只有元素常量是 label 標簽(第一次測試/第二次測試)中的文本值,類名相同預計 output: ...
[英]How to modify selenium webdriver dns to custom one
所以出於某種原因,我的 webdriver session 無法進入我可以在普通瀏覽器上訪問的某些網站,我收到 DNS_PROBE_FINISHED_NXDOMAIN 錯誤。 我嘗試手動將 DNS 提供商更改為 CloudFlare (1.1.1.1) 然后它起作用了,我怎樣才能使 webdriv ...
[英]Selenium button click in Python
我用 Python編寫了一個selenium機器人,它將在不同網站上觀看視頻。 我需要它來按下按鈕來播放視頻,但它不起作用。 我使用 Chrome webdriver 並嘗試使用 undetected_chromedriver,但沒有任何改變。 我的網絡驅動程序: 或者 我的代碼是: sendCo ...
[英]AttrributeError in Selenium Python
我正在嘗試使用 selenium 編寫一個身份驗證機器人,但我收到一個錯誤,不允許完成代碼! 錯誤是“AttributeError: 'str' object has no attribute 'start'” ,您可以在下面的終端中看到代碼和錯誤。 代碼: ` ` 錯誤: File "E:\P ...