如何使用Robotframework中的AutoItLibrary将图像从本地Windows计算机添加到浏览器

时间:2018-07-11 17:30:45

标签: robotframework

我正在尝试使用AutoItLibrary将图像从本地Windows计算机上传到chrome浏览器 这是我使用的代码

*** Settings ***
Library    Selenium2Library
Library    BuiltIn
Library    AutoItLibrary
*** Variables ***
${Image_file}                C:\\Users\\gopikpa\\Desktop\\dog_images.JPEG

*** Keywords ***
 Wait For Active Window    Open
   Control Set Text        Open    ${EMPTY}    Edit1    ${Image_file}
Control Click          Open    ${EMPTY}    Button1

*** Test Cases ***
[TC-001]-Launch the AEM Website

我得到的结果是

[TC-001]-Launch the AEM Website                                       | FAIL |
No keyword with name 'Control Set Text' found.

------------------------------------------------------------------------------
Assertupload                                                          | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed

0 个答案:

没有答案