you mention what look like two different frames, but I don't see them in 
any of the screenshots..  and omg the nested tables.. what a mess, Not to 
mention repeated ID's and other identifiers, making it very tricky to 
uniquely identify any given element amongst that mess. . so web 1.0.. I 
feel for you.

If you have nested iframes, you need to specify ALL of the frames that 
surround the thing you are trying to get..  So that would be my starting 
point if I was you.  once you get that nailed down, selecting stuff inside 
the frame is just like selecting as you normally would.

On Tuesday, March 19, 2013 7:03:20 AM UTC-7, 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.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

--- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to