【发布时间】:2018-04-23 06:04:56
【问题描述】:
我正在尝试创建一个自定义 python 库,我可以将它与RobotFramework 一起使用来运行我的测试。到目前为止,我只在我的代码中使用capture_page_screenshot() 方法时遇到了问题。我似乎无法找出调用该函数的正确方法。
我该如何解决这个问题?
from SeleniumLibrary import ScreenshotKeywords
def screenshot():
ScreenshotKeywords.capture_page_screenshot()
【问题讨论】:
标签: python selenium robotframework