rtomac/robotframework-selenium2library — Issue #36: the keyword  "select frame " dose not work well
Author: lucasliu
Created: 2012-03-02 01:26:41+00:00
State: open

The key word 'select frame' can't recoginze iframes which are dynamic genrerated by Ajax.

I tried selenium2 python binding it works fine.

so I checked source code (_browsermanagement.py) and made some change，then， It worked.
I wonder the function of the two lines ( I can't find the realizition of _element_find.)
#element = self._element_find(locator, True, True, tag='frame')
#self._current_browser().switch_to_frame(element)

---------------------------------------------------------------------------------------------------------------------------

def select_frame(self, locator):
"""Sets frame identified by `locator` as current frame.

Key attributes for frames are `id` and `name.` See `introduction` for
details about locating elements.
"""
self._info("Selecting frame '%s'." % locator)
#element = self._element_find(locator, True, True, tag='frame')
#self._current_browser().switch_to_frame(element)
self._current_browser().switch_to_frame(locator)