简体   繁体   English

如何使用机器人框架单击三个 div 标签内的按钮

[英]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.

相关问题 如何使用 Python 或 Robot 框架单击打印预览页面上的打印按钮 - How to Click on Print button on Print preview page using Python or Robot framework 如果按钮只有一个类,如何通过机器人框架单击 - How to click by robot framework if button is having only class 当 id 在机器人框架中动态时,如何找到要单击的按钮的 id - how to locate an id of the button to click when id is dynamic in robot framework 如何在使用 Robot Framework 时打印可用标签 - How to print available tags while using Robot Framework Robot Framework:使用执行 JavaScript 单击元素 - Robot Framework: Click Element using Execute JavaScript Select 使用机器人框架的单选按钮不起作用 - Select Radio Button using Robot framework is not working 如何使用selenium python单击无头按钮和按钮内部有div标签? - how to click button in headless and button have div tag inside it using selenium python? 如何在机器人框架内运行sikuli脚本? - How to run sikuli script inside robot framework? 如何在机器人框架中检查或未检查单选按钮 - How to find Radio button is checked or not in Robot framework 使用机器人框架单击动态 Web 表中的元素 - Click Element in Dynamic Web Table using Robot Framework
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM