Forum Discussion
dfontanesi
14 years agoContributor
The link just says "Can't access your account?". No line wrap or anything. I get a handle to the control just fine. Its ID and everything match up to what I see in the Object Browser. But clicking this control just gives me the error: There was an attempt to perform an action at point (68, 0), which is out of the window bounds.
The relevant code looks like this:
Set myControl = getControl(pattern, "clickButton")
If myControl.Exists Then
If myControl.Id <> -1 Then
errorCount = Log.ErrCount
call myControl.scrollIntoview(true)
myControl.Click
The HTML looks like this. The link I'm trying to click is in the last line:
<DIV id=ttoContainer class=sessionless>
<DIV id=app class=app_bg>
<DIV id=appContainer>
<DIV style="BACKGROUND-IMAGE: url(/img/hdr_16.gif)" id=bannerRegion>
<DIV id=ttoLogoLayer><IMG src="/img/ttlogo_16.png" width=245 height=47></DIV>
<DIV id=partnerLogoLayer></DIV></DIV>
<DIV id=tabRegion>
<DIV id=subnavRegion></DIV></DIV>
<DIV id=dialogRegion class=sessionless><css3-container style="Z-INDEX: auto; POSITION: absolute; TOP: 20px; LEFT: 20px" id=-pie><background style="POSITION: absolute; TOP: 0px; LEFT: 0px"><group2><?xml:namespace prefix = css3vml ns = "urn:schemas-microsoft-com:vml" /><css3vml:shape style="POSITION: absolute; WIDTH: 645px; HEIGHT: 421px; TOP: 0px; BEHAVIOR: url(#default#VML); LEFT: 0px" coordsize = "1290,842" coordorigin = "1,1" fillcolor = "#fbfbfb" stroked = "f" path = " m0,20 qy20,0 l1270,0 qx1290,20 l1290,822 qy1270,842 l20,842 qx0,822 x e"><css3vml:fill></css3vml:fill><css3vml:fill></css3vml:fill></css3vml:shape></group2></background><border style="POSITION: absolute; TOP: 0px; LEFT: 0px"><css3vml:shape style="POSITION: absolute; WIDTH: 645px; HEIGHT: 421px; TOP: 0px; BEHAVIOR: url(#default#VML); LEFT: 0px" coordsize = "1290,842" coordorigin = "1,1" filled = "f" stroked = "t" strokecolor = "#e0dede" strokeweight = ".75pt" path = " m1,20 qy20,1 l1270,1 qx1289,20 l1289,822 qy1270,841 l20,841 qx1,822 x e"><css3vml:stroke></css3vml:stroke><css3vml:stroke></css3vml:stroke></css3vml:shape></border></css3-container>
<DIV class="bkgLayer pie_first-child " _pieId="1309971904018">
<DIV id=titleLayer class=sessionless></DIV>
<DIV id=contentLayer class=sessionless>
<DIV class=AuthContentContainer>
<DIV>
<DIV class=AuthNewUser>
<DIV class=auth_new_title>New Customers</DIV><A class=ansSessLarge tabIndex=1 href="javascript:;" _lnk="true"><SPAN>Create an Account</SPAN></A><BR><BR><BR>
<P>We'll save your info as you go <B>(Recommended)</B></P>
<P></P><BR><BR><A class=ansSessLarge tabIndex=2 href="javascript:;" _lnk="true"><SPAN>Try It First</SPAN></A><BR><BR><BR>
<P>We'll ask you to create an account later</P></DIV>
<DIV class=AuthRetUser>
<DIV>
<DIV class=auth_ret_top_left>
<DIV class=auth_ret_top_right></DIV></DIV>
<DIV class=auth_ret_user_content>
<DIV class=auth_returning_title>Returning Customers</DIV><BR>
<DIV id=oldUserDiv class=AuthOldUser>
<DIV id=oldUserInnerDiv class=AuthOldUserInner><SPAN id=msgText class=main></SPAN>
<P></P>
<TABLE border=0 cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD style="PADDING-RIGHT: 10px"><SPAN class=auth_start_prompt>User ID</SPAN></TD></TR>
<TR>
<TD style="PADDING-RIGHT: 10px"><INPUT id=userid class=edit tabIndex=3 value=tat_2011-7-6_9_21_55_133 maxLength=256 size=24 _input="true"></TD></TR>
<TR>
<TD></TD></TR>
<TR style="HEIGHT: 5px"></TR>
<TR>
<TD style="PADDING-RIGHT: 10px"><SPAN class=auth_start_prompt>Password</SPAN></TD></TR>
<TR>
<TD style="PADDING-RIGHT: 10px"><INPUT id=password class=edit tabIndex=4 value="" maxLength=32 size=24 type=password _input="true"></TD></TR>
<TR>
<TD></TD></TR></TBODY></TABLE>
<P></P>
<DIV>
<TABLE border=0 cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD style="WIDTH: 1px; PADDING-RIGHT: 5px" vAlign=baseline><INPUT id=prefillMemID class=chk tabIndex=5 CHECKED type=checkbox></TD>
<TD _cb="true"><SPAN class=ttwnote>Remember me on this computer</SPAN></TD></TR></TBODY></TABLE></DIV>
<P></P>
<DIV class=auth_signin_link>
<DIV class=auth_start_signin_btn><A class=ansSessGreyLarge tabIndex=6 href="javascript:;" _lnk="true"><SPAN>Sign In</SPAN></A></DIV>
<DIV class=auth_signin_lock><IMG class=auth_lock_icon_left border=0 align=top src="/img/auth_lockicon.gif" width=14 height=20></DIV></DIV>
<P id=signInLinks><A id=link-Can_t_access_your_account_ class=linknote href="javascript:;" _lnk="true"><SPAN>Can't access your account?</SPAN></A><BR></P>
The relevant code looks like this:
Set myControl = getControl(pattern, "clickButton")
If myControl.Exists Then
If myControl.Id <> -1 Then
errorCount = Log.ErrCount
call myControl.scrollIntoview(true)
myControl.Click
The HTML looks like this. The link I'm trying to click is in the last line:
<DIV id=ttoContainer class=sessionless>
<DIV id=app class=app_bg>
<DIV id=appContainer>
<DIV style="BACKGROUND-IMAGE: url(/img/hdr_16.gif)" id=bannerRegion>
<DIV id=ttoLogoLayer><IMG src="/img/ttlogo_16.png" width=245 height=47></DIV>
<DIV id=partnerLogoLayer></DIV></DIV>
<DIV id=tabRegion>
<DIV id=subnavRegion></DIV></DIV>
<DIV id=dialogRegion class=sessionless><css3-container style="Z-INDEX: auto; POSITION: absolute; TOP: 20px; LEFT: 20px" id=-pie><background style="POSITION: absolute; TOP: 0px; LEFT: 0px"><group2><?xml:namespace prefix = css3vml ns = "urn:schemas-microsoft-com:vml" /><css3vml:shape style="POSITION: absolute; WIDTH: 645px; HEIGHT: 421px; TOP: 0px; BEHAVIOR: url(#default#VML); LEFT: 0px" coordsize = "1290,842" coordorigin = "1,1" fillcolor = "#fbfbfb" stroked = "f" path = " m0,20 qy20,0 l1270,0 qx1290,20 l1290,822 qy1270,842 l20,842 qx0,822 x e"><css3vml:fill></css3vml:fill><css3vml:fill></css3vml:fill></css3vml:shape></group2></background><border style="POSITION: absolute; TOP: 0px; LEFT: 0px"><css3vml:shape style="POSITION: absolute; WIDTH: 645px; HEIGHT: 421px; TOP: 0px; BEHAVIOR: url(#default#VML); LEFT: 0px" coordsize = "1290,842" coordorigin = "1,1" filled = "f" stroked = "t" strokecolor = "#e0dede" strokeweight = ".75pt" path = " m1,20 qy20,1 l1270,1 qx1289,20 l1289,822 qy1270,841 l20,841 qx1,822 x e"><css3vml:stroke></css3vml:stroke><css3vml:stroke></css3vml:stroke></css3vml:shape></border></css3-container>
<DIV class="bkgLayer pie_first-child " _pieId="1309971904018">
<DIV id=titleLayer class=sessionless></DIV>
<DIV id=contentLayer class=sessionless>
<DIV class=AuthContentContainer>
<DIV>
<DIV class=AuthNewUser>
<DIV class=auth_new_title>New Customers</DIV><A class=ansSessLarge tabIndex=1 href="javascript:;" _lnk="true"><SPAN>Create an Account</SPAN></A><BR><BR><BR>
<P>We'll save your info as you go <B>(Recommended)</B></P>
<P></P><BR><BR><A class=ansSessLarge tabIndex=2 href="javascript:;" _lnk="true"><SPAN>Try It First</SPAN></A><BR><BR><BR>
<P>We'll ask you to create an account later</P></DIV>
<DIV class=AuthRetUser>
<DIV>
<DIV class=auth_ret_top_left>
<DIV class=auth_ret_top_right></DIV></DIV>
<DIV class=auth_ret_user_content>
<DIV class=auth_returning_title>Returning Customers</DIV><BR>
<DIV id=oldUserDiv class=AuthOldUser>
<DIV id=oldUserInnerDiv class=AuthOldUserInner><SPAN id=msgText class=main></SPAN>
<P></P>
<TABLE border=0 cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD style="PADDING-RIGHT: 10px"><SPAN class=auth_start_prompt>User ID</SPAN></TD></TR>
<TR>
<TD style="PADDING-RIGHT: 10px"><INPUT id=userid class=edit tabIndex=3 value=tat_2011-7-6_9_21_55_133 maxLength=256 size=24 _input="true"></TD></TR>
<TR>
<TD></TD></TR>
<TR style="HEIGHT: 5px"></TR>
<TR>
<TD style="PADDING-RIGHT: 10px"><SPAN class=auth_start_prompt>Password</SPAN></TD></TR>
<TR>
<TD style="PADDING-RIGHT: 10px"><INPUT id=password class=edit tabIndex=4 value="" maxLength=32 size=24 type=password _input="true"></TD></TR>
<TR>
<TD></TD></TR></TBODY></TABLE>
<P></P>
<DIV>
<TABLE border=0 cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD style="WIDTH: 1px; PADDING-RIGHT: 5px" vAlign=baseline><INPUT id=prefillMemID class=chk tabIndex=5 CHECKED type=checkbox></TD>
<TD _cb="true"><SPAN class=ttwnote>Remember me on this computer</SPAN></TD></TR></TBODY></TABLE></DIV>
<P></P>
<DIV class=auth_signin_link>
<DIV class=auth_start_signin_btn><A class=ansSessGreyLarge tabIndex=6 href="javascript:;" _lnk="true"><SPAN>Sign In</SPAN></A></DIV>
<DIV class=auth_signin_lock><IMG class=auth_lock_icon_left border=0 align=top src="/img/auth_lockicon.gif" width=14 height=20></DIV></DIV>
<P id=signInLinks><A id=link-Can_t_access_your_account_ class=linknote href="javascript:;" _lnk="true"><SPAN>Can't access your account?</SPAN></A><BR></P>