open local browser ${base_url}
${links}= Get WebElements xpath=//div[@class='sec_list']/ul/li/a
@{links}= Convert To List ${links}
Execute Javascript window.open();
FOR ${element} IN @{links}
${title} Get Element Attribute ${element} title
${href} Get Element Attribute ${element} href
Log ${title}
Log ${href}
Switch Window new
Go To ${href}
Sleep 2s
END
robotframework入门-驱动新开浏览器标签页
最新推荐文章于 2024-08-12 09:40:44 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)