I would suggest using irb and stepping down into the elements to make sure 
they exist.  For example.

$ie.iframe(:id => 'PWGadget5Ifr').exists?
$ie.iframe(:id => 'PWGadget5Ifr').frame(:name=>'actionForm').exists?

If you get false for any of these you're going to need to look closer at 
the hierarchy.  It's difficult to tell from what you've provided because 
the images just make that task difficult, and the attached html depends on 
javascript and is not providing the full picture.



On Wednesday, March 20, 2013 3:22:50 PM UTC-4, Pavan Turlapati wrote:
>
> Hi.. Anybody can help me.. Really looking for some help?
>
> On Tuesday, March 19, 2013 2:50:16 PM UTC-5, Pavan Turlapati wrote:
>>
>> Any help on this?
>>
>>
>>
>> On Tuesday, March 19, 2013 9:03:20 AM UTC-5, Pavan Turlapati wrote:
>>>
>>>
>>> Hello,
>>>                I got one more problem which I need some experts to help 
>>> me. I have a radiobutton which is present under the iFrame but when I try 
>>> any of the below lines I am getting the 
>>> *"Watir::Exception::UnknownFrameException: 
>>> Unable to locate element, using {:tag_n" error. *
>>>
>>>
>>> The HTML tag when I copied from IE developer tool looks like :
>>>  <input name="$PpyWorkPage$pMakeMeaningfulContact" class="Radio" 
>>> id="$PpyWorkPage$pMakeMeaningfulContactN/A" style="vertical-align: middle;" 
>>> type="radio" value="N/A"/>
>>>
>>> I also tried to save the html but the saved Html does not contain the 
>>> field I was looking(May be I should even know how to get the HTML). So, an 
>>> alternative I have got three image files which is the only reference I have.
>>>
>>> Could somebody suggest me some solution.
>>>
>>> *What I tried.*
>>>
>>> 1==> $ie.iframe(:name => 'actionIFrame',:title=>'Take 
>>> Action').radio(:id=>'$PpyWorkPage$pMakeMeaningfulContactN/A').set 
>>>
>>> 2==> $ie.iframe(:name => 
>>> 'actionIFrame').radio(:id=>/\w*MakeMeaningfulContactYes\w*/).set
>>>
>>> 3==> $ie.iframe(:id => 'PWGadget5Ifr').frame(:name=>'actionForm').html
>>>
>>> Any help is highly appreciated. 
>>>
>>> Thanks,
>>> Pavan T
>>>
>>>
>>>

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

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to