Css Selenium ide:如何单击链接

Css Selenium ide:如何单击链接,css,selenium-ide,Css,Selenium Ide,我需要您的帮助来使用selenium ide执行操作。 我想点击第二个链接 <a class="more_button" href="http://example.com/view/9680-action1.html">Do action </a> <a class="more_button" href="http://example.com/view/9680-action2.html">Do action </a> <a class=

我需要您的帮助来使用selenium ide执行操作。 我想点击第二个链接

<a class="more_button" href="http://example.com/view/9680-action1.html">Do action </a>

<a class="more_button" href="http://example.com/view/9680-action2.html">Do action </a>

<a class="more_button" href="http://example.com/view/9680-action3.html">Do action </a>
我想使用此文本作为匹配文本打开操作2:action2.html

我尝试使用css a.more_按钮:containsaction2.html
但我不知道如何编辑它。

使用xpath,单击第二个链接:

click | //a[@href='http://example.com/view/9680-action2.html']

读这个。它可能会帮助你谢谢,用这个解决[contains@href,'action2']我不知道link是如何编写的,前面只是一个例子,但我知道它包含action2