Re: [wtr-general] Re: Need Help with Element not found

2011-09-30 Thread Željko Filipin
On Fri, Sep 30, 2011 at 5:39 AM, Ivan Chung ivanchun...@gmail.com wrote:
 i wanted to click on the link under div
 id=player_buy_10104751

This works for me with the HTML you have provided:

browser.div(:id = player_buy_10104751).link.click

Željko
--
watir.com - community manager
watir.com/book - author
watirpodcast.com - host

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: Need Help with Element not found

2011-09-29 Thread Alister Scott
please provide the full code including the iframe

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com


[wtr-general] Re: Need Help with Element not found

2011-09-29 Thread Ivan Chung
the iframe that accessing is accurate because i am able to get other
elements.

See below from where the iframe called
iframe id=iframe_canvas class=canvas_iframe_util noresize
scrolling=no height=600px frameborder=0 src=javascript:
name=xxx style=height: 1457px; overflow-y: hidden;

Below are the detailed codes, i wanted to click on the link under div
id=player_buy_10104751


table class=std players playersstats cellspacing=0
cellpadding=0
tbody
tbody id=player_names
tr class=
td class=p_action colspan=1
span class=btn_playeract btn_playeract_buy
div id=player_buy_1321
a onclick=buysell('buy', 1321, this); return false;
href=javascript: void(0)Buy/a
/div
/span
/td
/tr
tr
td class=p_action colspan=1
span class=btn_playeract btn_playeract_sell
div id=player_buy_10104751
a onclick=buysell('sell', 10104751, this); return false;
href=javascript: void(0)Buy/a
/div
/span
/td
/tr
/tbody
/table

The click event that i using that hving problem:
browser.frame(:name, '').div(:id,
'player_buy_10104751').link(:text,
'Buy').click

On Sep 29, 7:06 pm, Alister Scott alister.sc...@gmail.com wrote:
 please provide the full code including the iframe

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com