有时候移动端为了测试等方便,会嵌套在Web中,这时候通过Robot测试会有iframe标签,定位方法如下:
select frame iframe
sleep 2
click element xpath=//*[@id="app"]/,,,
即一定要先select frame name=xxx,然后再操作元素。
有时候移动端为了测试等方便,会嵌套在Web中,这时候通过Robot测试会有iframe标签,定位方法如下:
select frame iframe
sleep 2
click element xpath=//*[@id="app"]/,,,
即一定要先select frame name=xxx,然后再操作元素。