Skip to content

Commit 2972209

Browse files
authored
Merge pull request #675 from seleniumbase/fix-edge-case-with-iframe-switching
Fix edge case with iframe switching
2 parents 04e71ca + 61864e3 commit 2972209

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1687,7 +1687,7 @@ def switch_to_frame(self, frame, timeout=None):
16871687
timeout = settings.SMALL_TIMEOUT
16881688
if self.timeout_multiplier and timeout == settings.SMALL_TIMEOUT:
16891689
timeout = self.__get_new_timeout(timeout)
1690-
if self.is_element_visible(frame):
1690+
if type(frame) is str and self.is_element_visible(frame):
16911691
try:
16921692
self.scroll_to(frame, timeout=1)
16931693
except Exception:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
setup(
5656
name='seleniumbase',
57-
version='1.48.4',
57+
version='1.48.5',
5858
description='Web Automation and Test Framework - https://seleniumbase.io',
5959
long_description=long_description,
6060
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)