codeceptjs / codeceptjs/CodeceptJS

Verification of value in <select> with "I.seeInField" fails with WebDriver

オープン
#4,965 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
stale
主要言語
JavaScript
スター
4.2k
フォーク
757
平均マージ
2日 9時間
マージ済み PR(30日)
16

説明

I want to report a *defect*.
The defect is about `I.seeInField`. When I want to use it to verify a `` field has the expected value, it fails with WebDriver, but passes with Playwright. Not sure when it started. It was today the first time I wanted to use `I.seeInField`. Thatswhy I am not sure since when this defect exists.

Steps to reproduce:

```
I.amOnPage('https://interactive-examples.mdn.mozilla.net/pages/tabbed/select.html');
I.switchTo('#output-iframe');
I.selectOption('#pet-select', 'Hamster');
I.seeInField('#pet-select', 'Hamster'); // ✅Passes with Playwright. ❌Fails with WebDriver with error 'The selector "option" used with strategy "css" is invalid!'
```

Version used:
- CodeceptJS 3.6.5
- WebDriver.IO: 8.40.6

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。