Skip to content

Commit

Permalink
correcting fail message to corresponding exception that is expected
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeis committed Sep 25, 2016
1 parent adb5938 commit 307874c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py/test/selenium/webdriver/common/frame_switching_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def testShouldEnsureElementIsAFrameBeforeSwitching(self):

try:
self.driver.switch_to.frame(frame)
self.fail("Should have thrown NoSuchElementException")
self.fail("Should have thrown NoSuchFrameException")
except NoSuchFrameException:
# Do nothing.
pass
Expand All @@ -160,7 +160,7 @@ def testFrameSearchesShouldBeRelativeToTheCurrentlySelectedFrame(self):

try:
self.driver.switch_to.frame("second")
self.fail("Should have thrown NoSuchElementException")
self.fail("Should have thrown NoSuchFrameException")
except NoSuchFrameException:
# Do nothing
pass
Expand Down

0 comments on commit 307874c

Please sign in to comment.