我知道可以通过扩展PHPUnit_Extensions_Selenium2TestCase
来截取屏幕截图,但是现在,我使用的是Facebook的php-webdriver,所以我只扩展了PHPUnit_Framework_TestCase
无论如何,是否仅使用驱动程序来截图而不扩展扩展名?
谢谢。
最佳答案
$driver->takeScreenshot('/path/to/image.png');
关于php - Selenium Webdriver和PHPUnit的屏幕截图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24571377/