[Http-webtest-general] Bug about base url in Click plugin
Brought to you by:
m_ilya,
richardanderson
|
From: Hugo S. H. <hsa...@ni...> - 2005-05-24 22:13:54
|
Hi.
Working with the "Click" plugin, i found a little bug.
When my html has a <base ...> defined in the head
section, the plugin believes that this defines a href attribute
for the entire page. But, the <base> tag also can define only
a "target" attribute (for use in frames).
So... the tests failed when the page only have a tag like
<base target="frameB">
assigning an empty base url to the clicks.
I resolved the bug adding an extra check in Click.pm, line 139,
from:
$base = $token->[1]{href};
to:
$base = $token->[1]{href} if $token->[1]{href};
Best regards,
--
Hugo Salgado H. <hsa...@ni...>
Webmaster / Ingeniero de Desarrollo
NIC Chile - Universidad de Chile
http://www.nic.cl
|