Skip to content

Commit 307874c

Browse files
committed
correcting fail message to corresponding exception that is expected
1 parent adb5938 commit 307874c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

py/test/selenium/webdriver/common/frame_switching_tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def testShouldEnsureElementIsAFrameBeforeSwitching(self):
139139

140140
try:
141141
self.driver.switch_to.frame(frame)
142-
self.fail("Should have thrown NoSuchElementException")
142+
self.fail("Should have thrown NoSuchFrameException")
143143
except NoSuchFrameException:
144144
# Do nothing.
145145
pass
@@ -160,7 +160,7 @@ def testFrameSearchesShouldBeRelativeToTheCurrentlySelectedFrame(self):
160160

161161
try:
162162
self.driver.switch_to.frame("second")
163-
self.fail("Should have thrown NoSuchElementException")
163+
self.fail("Should have thrown NoSuchFrameException")
164164
except NoSuchFrameException:
165165
# Do nothing
166166
pass

0 commit comments

Comments
 (0)