Skip to content

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

Open
@ngraf

Description

@ngraf

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 came up with the idea to verify the value of a <select> field.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      close