Update the test for the Demo Page
This commit is contained in:
parent
baceaef68c
commit
1311be7853
|
@ -1,3 +1,4 @@
|
|||
from selenium.webdriver.common.keys import Keys
|
||||
from seleniumbase import BaseCase
|
||||
|
||||
|
||||
|
@ -28,6 +29,11 @@ class MyTestClass(BaseCase):
|
|||
self.hover_and_click("#myDropdown", "#dropOption2")
|
||||
self.assert_text("Link Two Selected", "h3")
|
||||
|
||||
# Verify that moving a "slider" updates a progrss bar
|
||||
self.assert_element('progress[value="50"]')
|
||||
self.send_keys("#myslider", Keys.RIGHT + Keys.RIGHT)
|
||||
self.assert_element('progress[value="100"]')
|
||||
|
||||
# Verify that the "select" option updates a meter bar
|
||||
self.assert_element('meter[value="0.25"]')
|
||||
self.select_option_by_text("#mySelect", "Set to 75%")
|
||||
|
|
Loading…
Reference in New Issue