mikesmith Posted December 22, 2012 Posted December 22, 2012 (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 December 22, 2012 by mikesmith
junkew Posted December 23, 2012 Posted December 23, 2012 look for udf ie3 under helpfile within user defined functions IE Management mikesmith 1 FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
chesstiger Posted December 23, 2012 Posted December 23, 2012 (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 December 23, 2012 by chesstiger mikesmith 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now