[ 
http://jira.openqa.org/browse/WTR-268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zeljko closed WTR-268.
----------------------

    Resolution: Won't Fix

If this is still a problem, please report it here: 
https://github.com/watir/watir-classic/issues

> Firewatir 1.6.1: locate method on Frame class throwing exception when frame 
> not found
> -------------------------------------------------------------------------------------
>
>                 Key: WTR-268
>                 URL: http://jira.openqa.org/browse/WTR-268
>             Project: Watir
>          Issue Type: Bug
>          Components: FireWatir
>    Affects Versions: 1.6.1
>         Environment: winXP3, firefox
>            Reporter: bmorzos
>            Priority: Major
>             Fix For: Soon
>
>
> I have this code:
> if (browser.frame(:name, "viewer").exists?)
>         puts("Found viewer frame")
>         viewerFrame = browser.frame(:name, "viewer")
>       else
>         puts("Did not find viewer frame")
>         viewerFrame = nil
>       end
> When the frame is not found I am getting an exception;
> Exception running test "test_all" Message: Unable to locate a frame using 
> name and viewer.
> C:/ruby/lib/ruby/gems/1.8/gems/firewatir-1.6.1/lib/firewatir/
> htmlelements.rb:43:in `locate'
> I am expecting a nil / false value.
> I believe this part of the code should be removed;
> unless @element_name
>         raise UnknownFrameException, "Unable to locate a frame using #{@how} 
> and #{@what}. "
>       end    
> Thank-you
> Brian

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.openqa.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to