gpt4 book ai didi

php - 更改窗口大小 PHPUnit Selenium2TestCase

转载 作者:行者123 更新时间:2023-12-02 07:02:30 25 4
gpt4 key购买 nike

我需要在测试开始时最大化我的窗口,我发现了这个 Class PHPUnit_Extensions_Selenium2TestCase_Window .

所以我尝试使用方法$this->maximize() 但我只得到

BadMethodCallException: The command 'maximize' is not existent or not supported yet.

有人知道怎么做吗?

最佳答案

在 selenium2TestCase v1.3.3 上是

$this->prepareSession()->currentWindow()->maximize();

关于php - 更改窗口大小 PHPUnit Selenium2TestCase,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18099243/

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