Jump to content

Recommended Posts

Posted (edited)

 

<input name="VsMasterPage$MainContent$LoginUserControl$LoginForm$FormsAuthLoginContainer$LoginButton$InternalButton" class="Button" id="VsMasterPage_MainContent_LoginUserControl_LoginForm_FormsAuthLoginContainer_LoginButton_InternalButton" onclick='javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("VsMasterPage$MainContent$LoginUserControl$LoginForm$FormsAuthLoginContainer$LoginButton$InternalButton", "", true, "Login", "", false, false))' type="submit" value="Sign In">

I am trying to click the sign in button on this page. 

I have tried by class, text, etc 

Here was my last attempt

$oButtons = _IETagNameAllGetCollection($o_IE, "button")
For $oButton in $oButtons
If String($oButton.value) = "Sign In" Then
      Sleep (1000)
  _IEAction($oButton, "click")
  ExitLoop
EndIf
Next

This did not work either.

Edited by SkysLastChance

You miss 100% of the shots you don't take. -Wayne Gretzky -Michael Scott

Posted

I normally put it in place to strip white space from the beginning and end of a string and also remove double spaces.  You probably don't actually need it at all.  The issue was you were targeting "button" rather than "input".

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
×
×
  • Create New...