Skip to content

Commit faf32f2

Browse files
Allow transformation from classic tag name selector to BiDi
1 parent 781c534 commit faf32f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/webdriverio/src/utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ export function elementPromiseHandler <T extends object>(handle: string, shadowR
258258
}
259259

260260
export function transformClassicToBidiSelector (using: string, value: string): remote.BrowsingContextCssLocator | remote.BrowsingContextXPathLocator | remote.BrowsingContextInnerTextLocator {
261-
if (using === 'css selector') {
261+
if (using === 'css selector' || using === 'tag name') {
262262
return { type: 'css', value }
263263
}
264264

0 commit comments

Comments
 (0)