[英]How to click a button inside three div tags using robot framework
i have 3 div's in a html script where 2 div's have ID and 1 has Class.我在 html 脚本中有 3 个 div,其中 2 个 div 有 ID,1 个有 Class。 and inside this three div's i have a button which i have to click.
在这三个 div 中,我有一个必须单击的按钮。 and i have to automate this click using robotframework
我必须使用机器人框架自动执行此点击
so am not able to click that button the code.so i tried with this two lines of code for clicking所以我无法单击该按钮的代码。所以我尝试使用这两行代码进行单击
Click Element xpath://button[@id='Buttonmee']
and和
Click Element xpath://div[@id="container ABC "]/div[@class="row"]/div[@id="newdiv"]/button[@id="Buttonmee"]
So can anyone suggest me what to do?那么有人可以建议我该怎么做吗?
use from Click Button instead of Click element.使用来自 Click Button 而不是 Click 元素。 Click Button id=Buttonmee
点击按钮 id=Buttonmee
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.