Unable to a click button using watir -


i have started using watir yesterday, , playing around it. can't seem access button:

<div class="formbox"> <input class="button" type="submit" value="sign in" tabindex="4"></input>    <input type="hidden" value="985963" name="n"></input></div> 

i'm trying line

$browser.button(:value, "sign in").click 

what might causing problem? appreciated...thanks.

okay, error not due button. unchecking check box in line above using:

$browser.checkbox(:id, "remember_me").clear 

if comment line, test cases passes successfully. have figure out whats wrong checkbox because clears on front end.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -