Update example tests
This commit is contained in:
parent
8fad700694
commit
bd8deac4de
|
@ -11,13 +11,13 @@ class MyTestClass(BaseCase):
|
|||
|
||||
def test_rate_limited_printing(self):
|
||||
self.open("https://www.saucedemo.com/")
|
||||
self.update_text("#user-name", "standard_user")
|
||||
self.type("#user-name", "standard_user")
|
||||
|
||||
encrypted_password = "$^*ENCRYPT=S3BDTAdCWzMmKEY8Gjg=?&#$"
|
||||
print("\nEncrypted Password = %s" % encrypted_password)
|
||||
password = encryption.decrypt(encrypted_password)
|
||||
print("Decrypted Password = %s" % password)
|
||||
self.update_text("#password", password)
|
||||
self.type("#password", password)
|
||||
|
||||
self.click('input[type="submit"]')
|
||||
self.assert_text("Products", "div.product_label")
|
||||
|
|
|
@ -6,7 +6,7 @@ class Test_UseFixtures():
|
|||
def test_usefixtures_on_class(self):
|
||||
sb = self.sb
|
||||
sb.open("https://google.com/ncr")
|
||||
sb.update_text('input[title="Search"]', 'SeleniumBase\n')
|
||||
sb.type('input[title="Search"]', 'SeleniumBase\n')
|
||||
sb.click('a[href*="github.com/seleniumbase/SeleniumBase"]')
|
||||
sb.assert_text("SeleniumBase", 'strong[itemprop="name"]')
|
||||
sb.assert_text("integrations")
|
||||
|
|
Loading…
Reference in New Issue