Re: [tclwebtest] link not found in ad_proc "find_in_array_list"
Status: Abandoned
Brought to you by:
tils
|
From: Tilmann S. <ti...@ti...> - 2003-02-26 10:03:32
|
* a....@12... <a....@12...> [20030226 09:23]:
> I'm workin on a simpel tclwebtest-UI for OpenACS.
Cool - in Tk?
> While running a script a get a weird error.
> Some links are resolved some are not in the script below.
> I have put a debug statement in lib/tclwebtest.tcl to see what happens (see
> below)
> Does anybody know what the result means?
> Any help or pointers are appreciated.
> debug "Number of Links of This Page: [llength [link all]]"
> foreach link [link all] {
> array set aLink $link
> debug "\* $aLink(full)"
> if { [catch { link follow ~u $aLink(url) } err] } {
> debug "we got an error: $err"
> }
> }
[link all] returns a list of links of the current page. [link follow]
tries to emulate clicking on a link on the current page, and changes
the current page, as you can see by the "--- do_request for" output in
your log. Thus the subsequent [link follow] calls fail because you are
trying to follow a link that is not present on the resulting current
page.
To go through a list of links, use [do_request] instead of [link
follow].
--
http://tsinger.com
|