Estoy teniendo problemas al querer clickear en un boton de una pagina de InternetExplorer.
El codigo fuente de la misma es:
Code: Select all
<td align="right">
<link rel="stylesheet" href="gpymButton.css" type="text/css">
<table class='botonCuadro' cellspacing=0 cellpadding=0 border=0 nowrap><tr>
<td>
<table class='boton2' onfocus="this.className='boton2focussed';" onblur="this.className='boton2';" onmouseover="this.className='boton2focussed';" onmouseout="this.className='boton2';" nowrap cellspacing='0' cellpadding='0' onkeydown="if ( isKeyDownEnter() ) sendEnviar(document.resolucionDeActividadForm,'/consultarYResolver')" >
<tr style="cursor: hand;" onclick= "sendEnviar(document.resolucionDeActividadForm,'/consultarYResolver')" title='Buscar'>
<td align="center"> BUSCAR </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
Code: Select all
value := ""
While ( value <> "BUSCAR" )
value := Pwb.document.getElementsByTagName("button")[ 0].innerText
Pwb.document.getElementsByTagName("button")[0].Click()
return
Code: Select all
Pwb.document.getElementsByName("Buscar").click()
Comento que ya he hecho otros comandos con la web y funcionaron, pude llenar un campo, y pude abrir la web en el ie... pero no clickear..
Alguna idea de mis errores ?