Store link Parameter: how to identify a link
--------------------------------------------
Key: WT-323
URL: http://webtest-community.canoo.com/jira/browse/WT-323
Project: WebTest
Type: New Feature
Versions: 2.5
Reporter: Francisco Javier Martin Gutierrez
Nowadays storeLinkParameter only support html Id recognition to locate a link.
So there is no possibility to locate a link similar to:
<a href="BuzonesTareas.do?codProcesoRes=F6C101B3C31D1A4CA8B760EC47FA4920"><img
src="imagenes/mesa_trabajo/ico_reserva.gif" alt="Reservar" width="9"
height="9"></a>
In this case the link will be located by XPath or by a link parameter like
alt="Reservar" (name and value, or label attributes should be included). I
think that it should support at least the same features as clickLink.
<storeLinkParameter description="Store codProcesoRes" label="Reservar"
parameter="codPrestacion" />
I don't know how storeLinkParameter works now with 'parameter' attribute
because I can't use it. But I suppose that a parameter like 'codPrestacion'
will be stored like:
<a
href="EditarHistoriaSocial.do?codHistoria=0009122&codPrestacion=10101A&secPrestacion=2&estadoPrestacion=11"
target="0009122" Id="Empty">Homer Simpson </a>
<storeLinkParameter description="Store codPrestacion" htmlId="Empty"
parameter="codPrestacion" />
New dynamic property #{codPrestacion} should contain a string like '10101A'.
But, what happens if I try to store 'codProcesoRes' parameter? It is preceded
by '?' not by '&'. I don't know if it works now. The programmer will have care
in this.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://webtest-community.canoo.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest