“ Onclick”属性的XPath

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

我必须在网页的下拉菜单中的一个选项上执行单击事件,这是该元素的绝对路径。

绝对路径:-

enter image description here

而且我尝试使用Xpath查找元素:-

enter image description here

我尝试过的所有Xpath组合都不起作用。如果您有相同的解决方案,请建议我?

非常感谢,什鲁蒂

xpath onclick buttonclick
1个回答
0
投票

尝试使用这些Xpath:

//a[@data-original-title='Excel']

//a[@alt='Excel']

//a[text()='Excel']

© www.soinside.com 2019 - 2024. All rights reserved.