[Wtr-general] Confused with clicking on elements in div in tables

Manish Sapariya manishs at reconnex.net
Mon Jun 12 03:50:57 EDT 2006


Hi,
Attached is an html with which I faced problem.

----------
$ie.frame("mainFrame").table(:id, /tblMain/i).cells[1].div(:text, "Add 
New Alias").exists?
true
$ie.frame("mainFrame").table(:id, /tblMain/i).cells[1].div(:text, "Add 
New Alias").click
---------
exists return true, but when I click on that element it fails to click.
However
-----------
$ie.frame("mainFrame").table(:id, /tblMain/i).cells[1].div(:id, 
'nitemlist').div(:text, "Add New Alias").exists?
true
$ie.frame("mainFrame").table(:id, /tblMain/i).cells[1].div(:id, 
'nitemlist').div(:text, "Add New Alias").click
-----------
works just fine.

Can somebody please throw some light.
Also, what would have been better way to click on the "Add New Alias" link.

Thanks,
Manish

-------------- next part --------------
A non-text attachment was scrubbed...
Name: abc.xml
Type: text/xml
Size: 4235 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/wtr-general/attachments/20060612/4035ee1f/attachment.xml 


More information about the Wtr-general mailing list