Update an example test

This commit is contained in:
Michael Mintz 2020-01-07 00:35:42 -05:00
parent 5ecfb281e0
commit 7e358d7d32
1 changed files with 4 additions and 4 deletions

View File

@ -1,17 +1,17 @@
from seleniumbase import BaseCase
class MyTestClass(BaseCase):
class DoubleClickTestClass(BaseCase):
def test_double_click_and_switch_to_frame(self):
def test_switch_to_frame_and_double_click(self):
self.open("https://www.w3schools.com/jsref"
"/tryit.asp?filename=tryjsref_ondblclick")
self.ad_block()
self.switch_to_frame("#iframeResult")
self.switch_to_frame("iframe#iframeResult")
self.double_click('[ondblclick="myFunction()"]')
self.assert_text("Hello World", "#demo")
def test_double_click_and_switch_to_frame_of_element(self):
def test_switch_to_frame_of_element_and_double_click(self):
self.open("https://www.w3schools.com/jsref"
"/tryit.asp?filename=tryjsref_ondblclick")
self.ad_block()