Sign in to follow this  
Followers 0
mikesmith

Can I click a Javascript object?

4 posts in this topic

#1 ·  Posted (edited)

Hi,

I am trying to automate the clicking or activation of a javascript object. It's a login "button" and when you click on it it posts your enter details via javascript. This is the code when I right click and "copy link address":

javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("$main$ArticleControl$lnkLogin", "", true, "Details", "", false, true))

This is what I get from Firebug

<a id="main_ArticleControl_lnkLogin" href='javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("$main$ArticleControl$lnkLogin", "", true, "Details", "", false, true))'></a>

Anyone have any clue whether it's actually possible or how to do it? Any browser will do...

Thanks!

Edited by mikesmith

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

Maybe you can call the JS-Function manually?

You can call it like this:

$sCall = 'javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("$main$ArticleControl$lnkLogin", "", true, "Details", "", false, true))'
_IENavigate($oIE, $sCall)

chess

Edited by chesstiger
1 person likes this

Share this post


Link to post
Share on other sites

Thank you Gentlemen!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0