vb.net - Visual Basic 2010 Trying to click submit button with no id and only text on it in web browser -


button trying click in webbrowser

<button type="submit" class="c-btn c-btn-primary c-pull-right" tabindex="3">sign in</button> 

my code :

 webbrowser1.document.getelementbyid("user_login").setattribute("value", nstextbox1.text)             webbrowser1.document.getelementbyid("passwd_login").setattribute("value", nstextbox2.text)             webbrowser1.document.getelementbyid("rem_login").invokemember("click")         delay(1) 

the login button clicker go after delay(1) part.

ive been stuck on days, done countless searches , can not find out how click using code.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -