problem with ie.link

0 views
Skip to first unread message

simoben

unread,
Jun 23, 2008, 6:53:20 AM6/23/08
to watij
Good evening everybody,

I have a problem with watij.
i can't access some href links

this is what figure on my webpage :
<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>


In my java projet when i put : ie.link(url,
"javascript:submitFormIdentCarteProspec('1');").click(). Nothing
happen.
Watij does not recognise my href. how it comes?? what should i do.

Thank you for your help. I need it really.


johnny

unread,
Jun 24, 2008, 1:43:42 AM6/24/08
to watij
The attribute "href" is set to that value, not url:
ie.link(SymbolFactory.href,"javascript:submitFormIdentCarteProspec('1');").click().

Therefore no Link will be found and also not clicked!

banweima

unread,
Jun 25, 2008, 5:44:03 AM6/25/08
to watij
Or you can just code like:
ie.link(name,"btnSaisieComplete");

simoben

unread,
Jul 1, 2008, 5:38:08 AM7/1/08
to watij
i 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>&nbsp;<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>&nbsp;<input name="NUM_REF_EXT_ALPHA_OUV" size=100
maxlength=100 value="" class="texte"></TD> -->
<!-- VC EVO 40055-->
<TD>&nbsp;<input name="NUM_REF_EXT_ALPHA_OUV" size=100 maxlength=100
value="" class="texte"></TD>
<!-- Fin EVO 40055-->
</TR>



<TR><TD>&nbsp;</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>

顾烨均

unread,
Jul 1, 2008, 7:52:10 AM7/1/08
to wa...@googlegroups.com

the cell "NUM_PLACEUR" ,I can't find it



> Date: Tue, 1 Jul 2008 02:38:08 -0700
> Subject: Re: problem with ie.link
> From: simo_ben...@hotmail.com
> To: wa...@googlegroups.com
> <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>
> &#0;t>
>
> </HTML>
>
>
Reply all
Reply to author
Forward
0 new messages