sagarpabba / selenium-vba

Automatically exported from code.google.com/p/selenium-vba
0 stars 0 forks source link

Click Button without Name #58

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi All,

I need to click the button below using vba code.
Pls Help me

<div class="in-btn c-1" style="margin-left:25%; display: inline-block; 
vertical-align: middle;">

    <input id="url" type="hidden" value="/" name="url"></input>
    <input class="btn" type="submit" value="Login"></input>
</div>

Thanks

Original issue reported on code.google.com by ronnygo...@gmail.com on 5 Mar 2014 at 6:39

GoogleCodeExporter commented 9 years ago
This should click your "Login" button:
driver.findElementByXPath("//input[@value='Login']").click

Original comment by florentbr on 5 Mar 2014 at 9:40

GoogleCodeExporter commented 9 years ago

Original comment by florentbr on 8 Sep 2014 at 5:40