CodeceptJS icon indicating copy to clipboard operation
CodeceptJS copied to clipboard

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

Open ngraf opened this issue 10 months ago • 3 comments

I want to report a defect. The defect is about I.seeInField. When I want to use it to verify a <select> 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

ngraf avatar Apr 15 '25 13:04 ngraf

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar Jul 15 '25 03:07 github-actions[bot]

keep open

ngraf avatar Jul 17 '25 10:07 ngraf

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar Oct 17 '25 02:10 github-actions[bot]