cost 251 ms
Selenium Webdriver Java 與 TestNG & POM:我們是否應該對所有 Z168967AZ84EC3705E 使用顯式等待(ExpectedConditions)

[英]Selenium Webdriver Java with TestNG & POM: Should we use explicit wait (ExpectedConditions) for all the web elements

在我的項目中,web 應用程序代碼是由第三方開發的。 客戶端不知道是否使用了 ajax 或其他可能在不同時間加載 web 元素的技術。 我們正在使用 Selenium Webdriver 和 Java、Z77AAA9AA7CEC10031A4Z2213819Z、Z77AAA9AA77158. 對我 ...

Selenium Python中的Webdriver-使用expected_conditions.element_to_be_clickable和Webelement作為參數

[英]Selenium Webdriver in Python- using expected_conditions.element_to_be_clickable with Webelement as parameter

目前,我正在嘗試向我正在處理的腳本添加顯式等待,其中 WebElement 已經存在,但可能尚未位於可點擊的 state 中。 我正在嘗試使用以下語法: 但是得到一個語法錯誤,上面寫着“Expected interable, received WebElement” 我是否使用了不正確的語法? 在 ...

賽普拉斯有什么方法可以等待多個預期條件

[英]Is there any way in cypress to wait for multiple expected conditions

所以我正在嘗試將我們現有的 protractor 測試套件遷移到賽普拉斯。 對於其中一項測試,我們有兩個預期條件,在 protractor 中更容易處理。 但我想知道是否有任何類似的 cypress 命令 function 來實現? 分享代碼片段 confirmation.getConfirmBut ...

javascript 錯誤:'instanceof' 的右側不是 object 錯誤,使用預期條件與 Selenium ZA7F5117F35426B52827

[英]javascript error: Right-hand side of 'instanceof' is not an object error using expected_conditions with Selenium Python

我在 selenium/python 中有一些代碼,它曾經可以工作,但現在我得到了: 我不知道它是否在 angular 應用程序中發生了變化,或者這個錯誤與我正在做的事情有什么關系。 我在嘗試定位 webelement 或等待元素可見性后得到它,例如: "pageSmallTitle" 只是一個 ...

Selenium Python 從網站中提取信息並將其轉儲為 JSON 格式

[英]Selenium Python extracting information from a website and dumping it into JSON Format

我正在嘗試打開一個酒店網站www.booking.com並從按最便宜的優先排序的前 50 個搜索結果中提取名稱、價格、位置和鏈接。 我正在使用 Selenium python 來自動化這個過程但是一些 HTML 元素是可定位的,而另一些則不是。 檢查網站后,我意識到所有酒店名稱都有類名: fcab3 ...

如何使用 Selenium(Python)在 iframe 中評論 blogspot

[英]How to comment on blogspot within an iframe with Selenium(Python)

我想用 selenium、chromedriver 和 python 評論一個 blogspot。 我嘗試了很多方法,但都失敗了。 如何在下面運行我的代碼? 我在這一行遇到錯誤: 請幫助評論硒。 編輯.. 測試網址: https://lf2011b8308.blogspot.com/201 ...

selenium Webdriver 等到預期的條件在 Amazon EC2 實例上無法正常工作

[英]selenium Webdriver wait until expected conditon not working properly on Amazon EC2 instance

我制作了一個腳本來訪問一個頁面並登錄,然后從該頁面獲取一個下載鏈接。 該腳本在我的本地窗口機器上運行良好,但它不適用於 Amazon EC2 實例(ubuntu) 代碼如下 它給了我一個錯誤 “文件“aps.py”,第 46 行,在 <module> 中 WebDriverWait( ...

使用 Selenium Python 提取標題屬性的值時出現 TimeoutException

[英]TimeoutException while extracting the value of the title attribute using Selenium Python

我正在嘗試獲取 Instagram 帳戶的以下計數。 我相信 XPATH 是正確的並且存在。 這是一個屏幕截圖,顯示它在我搜索時存在: 這是我的代碼: 我什至看過類似的項目,發現以下計數,我們的代碼幾乎完全相同。 ...

線程“主”org.openqa.selenium.WebDriverException 中的異常:未知錯誤:使用 Selenium 單擊時無法確定加載狀態錯誤

[英]Exception in thread "main" org.openqa.selenium.WebDriverException: unknown error: cannot determine loading status error while clicking using Selenium

我在 Eclipse 中將 Selenium 與 Java 一起使用,並且在由於加載狀態而出現錯誤之前,我經常遇到這些錯誤。 場景:打開網站頁面后,應該發生幾次點擊,每次點擊都卡在不同的階段 追溯: 代碼: ...

Selenium Python 中 By.PARTIAL_TEXT_LINK 的正確語法

[英]Correct syntax for By.PARTIAL_TEXT_LINK in Selenium Python

如何以正確的方式點擊使用By.Partial_Text_Link ? 可能存在語法錯誤,但 pycharm 沒有給我解決方案。 未找到搜索到的元素,程序停止。 錯誤代碼如下所示: 語法必須是什么樣的? 此代碼是 webdriverwa 工作,但我需要 WebDriverWait 功能: ...

Python Selenium:等待元素可點擊 - 使用 find_elements 找到元素

[英]Python Selenium: Wait until element is clickable - Element is found using find_elements

我正在構建一個 web 爬蟲,它循環訪問地址列表並在房地產網站上搜索它們。 然后,它會根據我們已知的有關房產的信息更新一些下拉菜單,然后再收集各種信息,例如預期租金收益。 搜索完每個地址后,可能需要一些時間才能將所需元素(例如“bathrooms_dropdown”)加載到網站上。 我一直在使用ti ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM