我有三个〈div class= emploBox“〉,每个都有一个按钮。按钮没有唯一的名称。我如何找到这个特定的按钮?我想使用class=cutTooLongTest并测试”自动测试器“,但我不知道如何操作。我想找到标记为黄色的按钮。
enter image description here
我不知道解决办法
我有三个〈div class= emploBox“〉,每个都有一个按钮。按钮没有唯一的名称。我如何找到这个特定的按钮?我想使用class=cutTooLongTest并测试”自动测试器“,但我不知道如何操作。我想找到标记为黄色的按钮。
enter image description here
我不知道解决办法
2条答案
按热度按时间chy5wohz1#
如果我没理解错的话,您需要使用文本“automated tester”找到按钮的XPath。
XPath表达式应如下所示:
qgelzfjb2#
这应该对您有效: