【发布时间】:2021-12-22 23:19:19
【问题描述】:
我在使用空手道 UI 切换标签时遇到问题。我的代码如下:
Scenario: SwitchPage Test
Given driver 'original URL'
* retry(5, 10000).waitFor('#someID')
* input('#someID', ['numbers', 'input', Key.ENTER]) // this will open the new page
* print driver.title \\ this prints the original title of the original URL
* switchPage('NewURL')
* delay(10000) // I've put this just in case but it doesn't work without it either
Then print driver.title // this still prints the original title of the original URL
任何帮助都将不胜感激,我认为这是一个很棒的工具,但我在这种情况下遇到了困难,我们的应用程序会打开每个模块的新选项卡。
谢谢
【问题讨论】:
标签: karate