Skip to content

Commit 799bec1

Browse files
committed
add relative=parent to selianize select frame
1 parent 23f6bdc commit 799bec1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/selianize/src/command.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,8 @@ async function emitSelect(selectElement, option) {
590590
async function emitSelectFrame(frameLocation) {
591591
if (frameLocation === 'relative=top') {
592592
return Promise.resolve('await driver.switchTo().frame();')
593+
} else if (frameLocation === 'relative=parent') {
594+
return Promise.resolve('await driver.switchTo().parentFrame();')
593595
} else if (/^index=/.test(frameLocation)) {
594596
return Promise.resolve(
595597
`await driver.switchTo().frame(${frameLocation.split('index=')[1]});`

0 commit comments

Comments
 (0)