robotframwork 多窗口切换关键字Get Window Handles与select window配合使用案例

*** Settings ***
Library Selenium2Library

*** Test Cases ***
openg
open browser http://www.baidu.com chrome
click element //*[@id="s-top-left"]/a[3]
Comment input text kw 与你到永久
sleep 3
${NUMS} Get Window Handles
log ${NUMS[0]}
select window ${NUMS[1]}
select window ${NUMS[0]}

posted on 2020-09-09 22:53  jiapengchu  阅读(593)  评论(0编辑  收藏  举报

导航