Hi, i have below HTML that within an iframe, how do i locate the link
for the div id = "test_002"?

<td class="p_action" colspan="1">
<span class="class A">
<div id="test_001">
<a onclick="gotofuction(); return false;" href="javascript:
void(0)">Buy</a>
</div>
</span>
</td>

<td class="p_action" colspan="1">
<span class="class A">
<div id="test_002">
<a onclick="gotofuction(); return false;" href="javascript:
void(0)">Buy</a>
</div>
</span>
</td>

I tried below but doesnt work as it says element not found
browser.frame(:name, 'xxxx').div(:id, 'test_002').link(:text,
'Buy').click

Please advise

-- 
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

Reply via email to