Robot Framework、SikuliLibrary 无法单击区域

问题描述 投票:0回答:1

使用 Robot Framework 中的库 SikuliLibrary,单击 Region It Works with image (${buttom_8})

${pref_coordinates}    Get Image Coordinates    ${buttom_8}
SikuliLibrary.Click Region   ${pref_coordinates}

但是如果我尝试没有图像是行不通的。

*** Variables ***
@{first_coordinates} Create List ${344} ${730}

*** Test Cases ***
tryy4

*** Keywords ***
tryy4
 Click Region @{first_coordinates}

我做错了什么? 控制台错误:java.lang.IllegalArgumentException:参数类型不匹配

windows robotframework sikuli region
1个回答
0
投票

如果调试图像坐标(区域),您将看到它返回一个包含四个元素的列表:原点(x,y)和宽度(Lx,Ly):

${pref_coordinates}    Get Image Coordinates    ${buttom_8}
Log    ${pref_coordinates}

以下是来自 RIDE 的示例:

© www.soinside.com 2019 - 2024. All rights reserved.