Skip to content

Commit 6416133

Browse files
committed
https://github.com/adwu73/robotframework-selenium2library/blob/c126cef041df22114f7c3a0d3e5e314ced35ad54/src/Selenium2Library/keywords/_browsermanagement.py
1 parent 836b58c commit 6416133

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Selenium2Library/keywords/_browsermanagement.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,10 @@ def select_frame(self, locator):
154154
details about locating elements.
155155
"""
156156
self._info("Selecting frame '%s'." % locator)
157-
element = self._element_find(locator, True, True, tag='frame')
157+
try:
158+
element = self._element_find(locator, True, True, tag='iframe')
159+
except ValueError:
160+
element = self._element_find(locator, True, True, tag='frame')
158161
self._current_browser().switch_to_frame(element)
159162

160163
def select_window(self, locator=None):
@@ -366,4 +369,3 @@ def _make_browser(self, browser_name):
366369
browser.set_script_timeout(self._timeout_in_secs)
367370

368371
return browser
369-

0 commit comments

Comments
 (0)