I'm trying to retrieve the text from within the <a>anchor tags from
the
html shown below. i'm running firewatir on Windows Xp and have the
jssh
plugin installed.

<a onblur="webFXTreeHandler.blur(this);"
onfocus="webFXTreeHandler.focus(this);" id="cwc_menu_local:ROOT.Find a
Request-anchor" onclick="var stat=webFXTreeHandler.select(this); if(!
stat)return stat;;" ondblclick="webFXTreeHandler.selectOpen(this);"
target="detail" href="/smweb/cwc/nav.menu?name=navStart&amp;id=ROOT
%2FFind%20a%20Request">
<span class="cwc_navMenuLabel">Find a Request</span></a>

my code is as below and click the link

ff.link(:text, 'Find a Request').click

ff.element_by_xpath("//html/body/div[2]/ul/li[4]/a/span[text='Find a
Request']").click

ff.link(:xpath, "//html/body/div[2]/ul/li[4]/a/span[@text='Find a
Request']").exists?

ff.link(:id => 'cwc_menu_local:ROOT.Find a Request-anchor').text

however the output of the text fails with the error
Unable to locate element, using :jssh_name
(Watir::Exception::UnknownObjectException)
Anyone know where i've gone wrong ?

thanks

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to