使用文本和 id Robit 框架的组合单击按钮

问题描述 投票:0回答:1

在 robit 框架中,我正在基于文本单击按钮,但我还想添加 ID,因为页面有多个具有相同文本的按钮

path="//button[text()=open]

这里我也想添加id 该怎么办 ? 尝试跟随但没有成功

path="//button[text()=open, id=23]
path="//button[text()=open, @id=23]
xpath robotframework xpath-2.0
1个回答
0
投票
path="//button[@id='23'][text()='open']"
© www.soinside.com 2019 - 2024. All rights reserved.