Skip to content

[🐛 Bug]: In webdriverio v9, getting element by full tag does not work #13692

@danielhjacobs

Description

@danielhjacobs

Have you read the Contributing Guidelines on issues?

WebdriverIO Version

9.1.2

Node.js Version

20

Mode

WDIO Testrunner

Which capabilities are you using?

No response

What happened?

Tests that referenced elements by using things like <div> no longer work. Instead, they need to be switched to div.

What is your expected behavior?

This should either work like it did in v8 or it should be noted as a breaking change for v9.

How to reproduce the bug.

test/specs/test.e2e.ts

import { browser } from '@wdio/globals';

describe('Get element by full tag', () => {
    it('works', async () => {
        await browser.url(`https://example.com/`);
        await $('<div>');
    })
})

Relevant log output

[0-0] Error in "Get element by full tag.works"
Error: Can't transform classic selector tag name to Bidi selector

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions