[英]Nothing happens when using I.attachFile to upload a document
I.attachFile('element', 'filePath')是否需要拖放字段才能工作? 因為目前當我嘗試使用 attachFile 方法時沒有任何反應。 即使使用 --verbose 也不會顯示任何錯誤消息或任何問題。 這是我嘗試附加我的文件的元素//input[@type='file' ...
[英]Intellisense not working for Playwright, REST
我在 TypeScript 的 Codeceptjs 框架上編寫了自動測試。在向項目添加其他模塊以及使用以下命令更新存儲庫之后: Intellisense 開始為我工作,我開始看到我可以使用的方法。 例如,我看到了以下模塊的方法:JSONResponse、DbHelper、ChaiWrapper ...
[英]Click on first element contained in a div
我有一個包含一組動態元素的 div。 我想點擊第一個搜索結果。 我想點擊第一個元素包含在我嘗試像這樣使用創建自定義 xPath 但它沒有用。 這里有什么想法嗎? ...
[英]I need to use Appium 2 for CodeceptJS mobile tests
因為最新的 iOS 使 Appium 1.x 出現問題,Appium 團隊不再支持它,而 Appium 2 工作正常 - 我需要使用 v2 ... CodeceptJS 3.3.x 現在使用的是 Appium 1.x,由於 CodeceptJS Appium 助手中默認使用的 '/wd/path' ...
[英]Codeceptjs for test automation
有沒有人使用 Codeceptjs 進行測試自動化? 關於如何在通過 codeceptjs 啟動瀏覽器時設置特定的 Firefox 配置文件的任何想法? 任何幫助,將不勝感激。 謝謝。 ...
[英]How to run codecept scenarios in order?
我正在使用以下命令運行測試場景。 我正在尋找一種方法來按照給定的相同順序運行這些測試。 出於某種原因,這不能保證。 有沒有我可以用來實現這一目標的標志? ...
[英]CodeceptJS - canvas manipulation
我正在為我們的應用程序編寫 E2E 測試。 在一頁上有一個 canvas 顯示 PDF 文件。 測試用例顯示此頁面,滾動到 PDF 底部並檢查 canvas 下的按鈕是否不再禁用。 想象一個常見的許可協議 window 在某些應用程序或軟件安裝中。 問題是我不知道如何在 canvas 中向下滾動。 ...
[英]How to configure Tesults report with CodeceptJS
我正在嘗試將 Tesults 儀表板與 CodeceptJS + Playwright 測試集成,但似乎沒有辦法通過 codeceptJs 的 conf 文件傳遞 playwright 報告配置。 文檔指定劇作家使用reporter: [['playwright-tesults-reporter', ...
[英]How to type text without selecting an element in CodeceptJS?
通常我使用I.fillField(elementSelector, text)將text填充到帶有elementSelector xpath 或 sth 的字段中。 我有一個只有一個元素的情況(Appium 顯示沒有嵌套元素),這實際上是六個正方形,彼此相鄰,中間有一個小間隙,如果你點擊任何一個正 ...
[英]How can I click a link of the first [td] based on staus of last [td] in the same [tr] using codeceptjs/javasrcipt
預期:Select 隨機分配的狀態為“未開始”。 這是我的桌子: 解決方案:我將數組中的 [td] 元素分組為“Not Start”,然后獲取第一個 [td][0] 的父元素 [tr]。 最后,我從 [tr] 找到並單擊鏈接。 這該怎么做? 非常感謝! ...
[英]codeceptjs react testing - Clickable element was not found by text|CSS|XPath
我有一個用 React 和 rest api(php+mysql) 制作的項目。我必須通過 codeceptjs 測試。該應用程序通過無數手動測試正常運行,據我所知,codeceptjs 測試正在運行也是,但它給出了以下錯誤: 我的添加元素如下所示: 有人可以幫我解決為什么會出現此錯誤,我該如何解決 ...
[英]Codeceptjs: I got ERROR webdriver: Request failed with status 404 due to unknown command when trying to click to an mobile element
當我嘗試使用 Appium 和 Codeceptjs 單擊元素時,出現以下錯誤: 完整日志如下: 我認為當 codeceptjs 調用 I.click() api 時會出現此錯誤日志。 我嘗試使用 Accesibility ID 和 Xpath 來獲取元素但得到相同的錯誤 我的測試代碼: ...
[英]cannot read properties of undefined 'textContent'
我有一段簡單的代碼 之前一切正常,但今天我收到一個錯誤 + 我的堆棧跟蹤: 錯誤:評估失敗:TypeError:無法在 puppeteer_evaluation_script 讀取未定義的屬性(讀取“textContent”):1:21 在 ExecutionContext._evaluateInt ...
[英]How to organize codeception tests in subfolders, and have one codecept.conf.js pointing to the whole folder schema
我遇到問題,在我的 codecept 配置中的 './acceptance_tests.js/*_tests.js' 路徑名中創建子文件夾。 即我的 codecept.conf.js 看起來像這樣: 當 conf.js 文件設置為這個時,我可以運行在acceptance_test 文件路徑中的 ...
[英]"before each" hook: codeceptjs error message
我使用 protractor 幫助程序使用 codeceptjs,我嘗試編寫簡單代碼並運行此命令“npm run codeceptjs”,我遇到了這個錯誤“×”在每個“鈎子之前:codeceptjs.before for “test something” in 285ms”這里是我在這個文件“tes ...
[英]test something: selector needs to be typeof `string` or `function`
我想在 Visual Studio Code/Codeceptjs 上編寫測試。 簡而言之,我的代碼在這里: 但是錯誤信息。 為什么選擇器需要是 typeof 'string' 或 'function. 我可以為這個問題做些什么: 您可以在 Scenario Steps 中看到 click() 中 ...
[英]Remove "filename" header from FormData
我正在嘗試使用 FormData() 發布請求,我需要包含“內容類型”header 所以我使用 Blob 到 append 條目到我的表單,但這會自動將文件名設置為“blob” 有沒有辦法既設置內容類型又不包括文件名? ...
[英]How do I test the API using REST + CodeceptJS, access to which is protected with Auth0?
我想使用REST helper (用於 CodeceptJS)為 API 編寫自動化測試 難點在於對 API 的訪問受 OAuth2 保護。 如果有人有通過 OAuth2 授權使用 REST + CodeceptJS 編寫自動測試的經驗,如果您能告訴我您的案例,我將不勝感激 ...
[英]basic auth Codeceptjs with Appium
對於我們的 uat 環境通過基本身份驗證有點頭疼,我們已經切換到使用 Appium,我正在嘗試配置 Codeceptjs 以允許我傳遞憑據。 我當前的配置看起來像:- 我已經瀏覽了 Codeceptjs 文檔,這應該通過我的憑據,Appium 的工作方式不同嗎? 我所做的只是在手機上訪問網站, ...