gpt4 book ai didi

testing - Geb:为每个测试打开新标签

转载 作者:行者123 更新时间:2023-11-28 21:26:19 26 4
gpt4 key购买 nike

我正在尝试为 where block 中的每组数据的每次测试迭代打开新选项卡。

我正在尝试:

setup:
Keys.chord(Keys.CONTROL, "t")

但它不起作用。

怎么做?

最佳答案

我通过这个[在测试开始时写]解决了这个问题:

def cachedDriver = CachingDriverFactory.clearCacheAndQuitDriver()

现在对于where block 中的每组数据都打开一个新窗口并关闭上一个窗口,这对于执行数千个测试非常有帮助。

关于testing - Geb:为每个测试打开新标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39721703/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com