watir/watir-webdriver — pull request #299 by titusfortner (2014-12-06 07:47:22+00:00)
Title: Allow frame collections to properly handle selectors

Current implementation for FrameCollection & IFrameCollection uses ElementCollection#elements to obtain a subset of frames. This is being done properly, but #to_a takes the indexes of this subset and applies it to the overall list of frames it finds on the page. So, the current implementation only works if the matching frames are the first ones.