codeceptjs / codeceptjs/CodeceptJS
Puppeteer / waitForText method: doesn't works with xpath selector
- 主要言語
- JavaScript
- スター
- 4.2k
- フォーク
- 757
- 平均マージ
- 2日 9時間
- マージ済み PR(30日)
- 16
説明
> Provide console output if related. Use `--verbose` mode for more details.
```bash
Text "Get started with GitHub Enterprise" was not found on page after 3 sec
Evaluation failed: TypeError: $XPath is not a function
at eval (eval at waitForPredicatePageFunction (:2:21), :4:22)
at eval (eval at waitForPredicatePageFunction (:2:21), :7:11)
at onRaf (__puppeteer_evaluation_script__:56:33)
at pollRaf (__puppeteer_evaluation_script__:48:5)
at waitForPredicatePageFunction (__puppeteer_evaluation_script__:7:18)
```
> Provide test source code if related
```js
Feature('User Story');
Scenario('QA', (I) => {
I.amOnPage('https://github.com');
I.waitForText('Get started with GitHub Enterprise', 3, '//*[@class="h1-mktg"]');
});
```
### Details
* CodeceptJS version: 2.3.0
* NodeJS Version: v11.0.0
* Operating System: Linux Mint
* Puppeteer: 1.19.0

コントリビューションガイド
調査の方向性
Puppeteer の waitForText エントリーポイントから開始し、CodeceptJS 2.3.0 で XPath セレクターを使って指定されたシナリオを再現します。失敗している XPath 評価を追跡し、既存の他のセレクターに対する動作を維持したまま、waitForText がそのセレクターで要求されたテキストを見つけられることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- testing-qa
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100