【发布时间】:2019-08-27 16:11:28
【问题描述】:
我尝试使用 Take Screenshot 关键字在机器人框架中附加屏幕截图 在日志中出现错误
Taking screenshot failed: Taking screenshots is not supported on this platform by default. See library documentation for details.
Make sure tests are run with a physical or virtual display"
我在机器人框架测试用例中使用“Take Screenshot product.jpg 80%”
*** Settings ***
Library File.py
Library SeleniumLibrary
Library SeleniumScreenshots
Library Screenshot
*** Test Cases ***
Add product to the Shopping Cart
Search the product in home page
Select first product
#Capture page screenshot product.png
Take Screenshot product.jpg 80%
Select the size of product
Select the product to shopping cart
Take Screenshot Cart.png 80%
【问题讨论】: