macaca icon indicating copy to clipboard operation
macaca copied to clipboard

使用setFrame后,如何退出?API里没有这个命令,求助。

Open wumengxue opened this issue 9 years ago • 1 comments

使用setFrame后,如何退出?API里没有这个命令,求助。

platformName: 'desktop', browserName: 'electron'

wumengxue avatar Apr 20 '17 15:04 wumengxue

@wumengxue this might be helpful to you. Once you switch to some frame, you have to use window handles to set focus back to main windows


.frame('frame id/name')
.waitForElementByName('<name>')
.click()
 .windowHandle()
      .then(function (name) {
              driver.window(name)
             })

dharmakrish6 avatar Apr 26 '17 14:04 dharmakrish6