[wtr-general] Unable to click the link (anchor and span)and use xpath in ruby script

2011-09-13 Thread Hari
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}

Re: [wtr-general] Unable to click the link (anchor and span)and use xpath in ruby script

2011-09-13 Thread Rahul Sharma
ff.link(:id , 'cwc_menu_local:ROOT.Find a Request-anchor').click This should have worked. Can you check if the link you are trying to click is inside a frame!! On 13 September 2011 11:27, Hari harisankarec...@gmail.com wrote: I am trying to click on a text inside a span in my web page. But it

Re: [wtr-general] Unable to click the link (anchor and span)and use xpath in ruby script

2011-09-07 Thread Rahul Sharma
The text you are looking for to click is in the span tag and not the a tag. so this should work. ff.span(:text = 'Find a request').click On 7 September 2011 06:49, Hari harisankarec...@gmail.com wrote: I'm trying toclick a link the aanchor tags from the html shown below. I'm running

Re: [wtr-general] Unable to click the link (anchor and span)and use xpath in ruby script

2011-09-07 Thread Raveendran P
Hi Hari, Have your tried ff.link(:id, 'cwc_menu_local:ROOT.Find a Request-anchor').exist? and ff.link(:id, 'cwc_menu_local:ROOT.Find a Request-anchor').click and ff.link(:id, 'cwc_menu_local:ROOT.Find a Request-anchor').fire_event(onlclick) Thanks Ravi P On Wed, Sep 7, 2011 at 11:19 AM,

[wtr-general] Unable to click the link (anchor and span)and use xpath in ruby script

2011-09-06 Thread Hari
I'm trying toclick a link the aanchor tags from the html shown below. I'm running firewatir on Windows Xp and have the jssh plugin installed. li onkeydown=return webFXTreeHandler.keydown(this, event) class=navTreeLeaf id=cwc_menu_local:ROOT.Find a Request