Anchor Test Site |
Images as content of hyperlinks
A sequence of hyperlinks and pictures as content like:
<a href="customers.html"><img src=
"cust.gif"></a><a href=
"reaction.html"><img src=
"react.gif"></a> etc...
Images:
Build 651-652: handling of http error 404
Images as content of hyperlinks
An anchor that has more than one picture as
content like:
The pictures don't exist. No alternative text or other identification is available.
<a href=
"/"><img src="/pic1.jpg"><img src=
"/pic2.jpg"></a>
Problems:
Build 614 ok:
The click is recorded something like WebPageLink(NULL, "", 7).
Real life example:
http://www.apple.com
Hyperlinks that have to be ignored
Hyperlinks like
have to be ignored.
The follwing anchors should be ignored by the recorder
Do not convert Url query strings to forms
Urls with an appended query string like:
<a
href="/data2html.asp?sessionid=
"203j0239j298fu398u2398u2309820398u2093u8">Link</a>
must not be converted to url strings, because the query string can hold a
sessionid which must not be hardcoded.
Use WebPageLink(...) instead.
/data2html.asp?value="randomvalue"
Illegal nested links
<a href="http://"><a href= "http://"></a></a>
The outer anchor should be ignored. The target will be determined by the inner anchor. Anyway well known browsers add both hyperlinks to their list of anchors. When resolving this link the innermost one has to be taken.
Two possibilities that result can look like:
According to HTML specification one hyperlink
Like browsers use to handle it
Nasty nested link
<a href="http://"><a href="http://"> link</a><a href= "http://lab4">lab4link</a> </a>
link
lab4 linkTwo hyperlinks have to be extracted:
WebPageLink and Identification of hyperlinks
The picture is the content of a hyperlink that targets http://. The content of the second link is '' and targets http:// as well.
<a href="http://"><IMG
alt=SegueLogo border=0 src="segue.gif"></a>
<a href=
"http://"></a>
When you click the second link the recorder should create something like
WebPageLink("", "SilkPerformer Test Site")
Result should look like: