problem accessing frame cells

2 views
Skip to first unread message

simoben

unread,
Jul 1, 2008, 5:41:54 AM7/1/08
to watij
did not find a solution to my problems. i tried everything :
ie.frame ; ie.table ;nothing is working.
this is the code of my html page i want to test
Thank for your help.

i want to access to the cell "NUM_PLACEUR" in order to fill it
automatically with watij.
If somebody can help me. i'm working on it since 2 days thank you.


<HTML>
<HEAD>
<TITLE>Identification de la carte</TITLE>
</HEAD>


<BODY topmargin=3 leftmargin=3>
<DIV ID="cache" border=0 style="border-style: solid; border-width: 0;
padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom:
1"></DIV>
<script language="JavaScript" src="javascript/cache.js"></script>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">


<TABLE width=752>
<TR>
<TD align=center>
<BR>
<span class=Titre>Créer un dossier</span>
<BR><BR>
<FORM action="Main.jsp" method="POST"
name="formIdentCarteProspect">
<input type="hidden" name="urlid"
value="ouvertures.IdentCarteProspect">
<input type="hidden" name="_nwg_" value="">
<input type="hidden" name="_rqId_" value="7">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">


<input type=hidden name=reponseQuestion value="">


<input type=hidden name="TYPE_OUVERTURE" value="">
<BR><BR>


<TABLE cellSpacing=0 cellPadding=0 border=0 width=752>
<TR>
<TD width=2 height=2 class=border></TD>
<TD width=200 class=border></TD>
<TD width=2 class=border></TD>
<TD width=546></TD>
<TD width=2></TD>
</TR>
<TR>
<TD height=18 class=border></TD>


<TD rowspan=3 align=center class=ongletOn><span
class="soustitre">Identification carte</span></TD>
<TD class=border></TD>
<TD></TD>
<TD></TD>
</TR>
<TR>
<TD height=2 class=border></TD>
<TD colspan=3 class=border></TD>
</TR>
<TR>
<TD height=8 class=border></TD>
<TD colspan=2 class=ongletOn></TD>
<TD class=border></TD>
</TR>
<TR>
<TD class=border></TD>
<TD colspan=3>
<TABLE cellSpacing=0 cellPadding=5 width="100%" border=0>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>


<TR>


<TD align=right><span class="label">N° de carte</span></TD>


<TD> <input name="NUM_CARTE_OUV" size=18 maxlength=17 value=""
class="texte"></TD>


</TR>
<TR>


<TD align=right><span class="label">Référence Carte de Fidélité</
span></TD>
<!-- <TD> <input name="NUM_REF_EXT_ALPHA_OUV" size=100
maxlength=100 value="" class="texte"></TD> -->
<!-- VC EVO 40055-->
<TD> <input name="NUM_REF_EXT_ALPHA_OUV" size=100 maxlength=100
value="" class="texte"></TD>
<!-- Fin EVO 40055-->
</TR>


<TR><TD> </TD></TR>
<TR>
<TD align=right colspan=2>


<a href="javascript:submitFormIdentCarteProspec('1');"
name="btnSaisieComplete"><img src='/ouvertures/www/fr_FR/images/
boutonSaisieComplete/saisie_complete.gif' alt="Saisie complète"
border="0"></a>
<a href="javascript:submitFormIdentCarteProspec('2');"
name="btnSaisieSimple"><img src='/ouvertures/www/fr_FR/images/
boutonSaisieSimplifie/saisie_simplifiee.gif' alt="Saisie simplifiée"
border="0"></a>


<a href="/ouvertures/FormAccueil.jsp"><img src='/ouvertures/
www/fr_FR/
images/boutonRetour/retour.gif' alt="Retour" border="0"></a>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</TD>
<TD class=border></TD>
</TR>
<TR>
<TD colspan=5 height=2 class=border></TD>
</TR>
</TABLE>
</FORM>
</TD>
</TR>
</TABLE>


<script>


</script>


</HTML>



thank you for your help

顾烨均

unread,
Jul 1, 2008, 7:50:37 AM7/1/08
to wa...@googlegroups.com
the cell "NUM_PLACEUR"  i can't find it


> Date: Tue, 1 Jul 2008 02:41:54 -0700
> Subject: problem accessing frame cells
> From: simo_ben...@hotmail.com
> To: wa...@googlegroups.com

Chris Hall

unread,
Jul 1, 2008, 8:12:49 AM7/1/08
to wa...@googlegroups.com
try:
 ie.textfield(name, "NUM_CARTE_OUV")

2008/7/1 顾烨均 <guyej...@hotmail.com>:

simoben

unread,
Jul 2, 2008, 5:38:13 AM7/2/08
to watij
it is ok.
i fount the solution.

ie.frame(1).textField(name,"NUM_CARTE_OUV").set("122");

Thank you

But i have still one problem.
When i want to test if my texField exis, it doesn't work.

if
(ie.frame(1).htmlElements().textField(name,"NUM_PLACEUR").exists()) {

ie.frame(1).textField(name,"NUM_CARTE_OUV").set("122");
}
But it doesn' work.

Some help please
Reply all
Reply to author
Forward
0 new messages