I am trying to click on a text inside a span in my web page. But
it is not clicking it. when i try to flash it. it flashes.
I also tried to user fire_event("onclick"), still it is not clicking
it.
ff.span(:id, 'cwc_masthead_username').click
puts ff.show_spans()
ff.spans.each{|s|puts s.to_s}
ff.spans[1].to_s
ff.span(:class, 'cwc_navMenuLabel').click
ff.link(:text, 'Find a Request').click
ff.link(:xpath, 'html/body/div[2]/ul/li[4]/a/span').click
ff.link(:xpath, "//*[@id='cwc_menu_local:ROOT.Find a Request-anchor']/
span").click
ff.element_by_xpath("//html/body/div[2]/ul/li[4]/a/span[text='Find a
Request']").click
ff.link(:id , 'cwc_menu_local:ROOT.Find a Request-anchor').click
ff.link(:text => 'Find a Request',:index =>4).click
This is the HTML tag
<a id="cwc_menu_local:ROOT.Find a Request-anchor"
onblur="webFXTreeHandler.blur(this);"
onfocus="webFXTreeHandler.focus(this);"
onclick="var stat=webFXTreeHandler.select(this);
if(!stat)return stat;;"
ondblclick="webFXTreeHandler.selectOpen(this);"
target="detail" href="/smweb/cwc/nav.menu?name=navStart&id=ROOT
%2FFind%20a%20Request"
class="selected-inactive"><span class="cwc_navMenuLabel">Find a
Request</span></a>
I would think span element includes anchor want toclick to the
anchor instead of span
I want to click on the "Find a Request" text link here and it should
go to desired location.
Appreciate your help
Thank you,
Hari