Hi. I can not automate the click at a button, because there are three of them exactly in the source page.
Imagine you have this html source code:
<div class="submit"><span class="button btnDefault"><span><input type="submit" value="Search" /></span></span></div>
How could I select just one element, and do click as an action on it?
$sElement = _WD_FindElement($sSession, $_WD_LOCATOR_ByXPath, "//input[@type='submit'][@value='Search']")
_WD_ElementAction($sSession, $sElement, 'click')
That just do not work.
Any ideas?