I'm testing a website that runs exclusively on Internet Explorer, so I can not use Firebug, does anyone know how I can create an Xpath for an element manually, or do you know of some tool for IE that identifies this Xpath, similar to Firebug (IE Dev Tools does not do this job, I already use it).
With the HTML code below, I've already gotten two Xpaths, but Sleenium can not click on any of them (I already tried it by name and id and it does not click tbm, so the need for Xpath).
/html/body/center/table/tr[7]/td[1]/input/button
and /html/body/center/table/tr[7]/td[1]/input/
I need to identify the Xpath of the "OK" button
<tr>
<td align="center" colspan="2">
<input name="btnClose" type="button" class="button" value='OK' onclick="javascript:abrirSimulador();window.close();" />
</td>
</tr>
<html>
<head>
<title>
[Ativação] - Pré-Análise de Crédito
</title>
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Expires" content="0">
<script type="text/javascript" src="/ativacao/js/jquery_noConflict.js"></script>
</head>
<body>
<script type="text/javascript">
J(window).bind("beforeunload", function() {
abrirSimulador();
})
</script>
<center><!-- Início da Página --> <!-- Título da Página --> <br>
<table border="0" cellpadding="0" cellspacing="0" width="350">
<tr>
<td class="page-title">Pré-Análise de Crédito</td>
</tr>
<tr>
<td class="page-subtitle">Mensagem de Informação</td>
</tr>
</table>
<br>
<table border="0" cellpadding="0" cellspacing="0" width="300" >
<tr>
<td class="label" align="right">
Código da operação:
</td>
<td class="text">
002PjPr
</td>
</tr>
<!-- OS 81138 - Inicio -->
<tr>
<td class="label" align="right">
Pontos:
</td>
<td class="text">
1,00
</td>
</tr>
<tr>
<td class="label" align="right">
Limite:
</td>
<td class="text">
1500,00
</td>
</tr>
<!-- OS 81138 - Fim -->
<!-- OS Unificação Cadastral II -->
<tr>
<td class="label" align="right">
Cliente America Movel:
</td>
<td class="text">
Sim
</td>
</tr>
<!-- OS Unificação Cadastral II -->
<tr>
<td class="label" align="right">
Resposta:
</td>
<td class="text">
Prosseguir
</td>
</tr>
<tr>
<td class="label" align="right">
Justificativa:
</td>
<td class="text">
Limite calculado. Favor prosseguir com a venda
</td>
</tr>
c
</table>
</center>
</body>
<script type="text/javascript">
function abrirSimulador(){
window.opener.prosseguirAnaliseCredito = false;
if(window.opener.scorePreAnalise){
window.opener.prosseguirAnaliseCredito = true;
window.opener.checkAssociateSimularPrecoPreAnalise(window.opener.simulatePopup);
return;
}
window.opener.scorePreAnalise = false;
}
</script>
</html>