Update example tests

This commit is contained in:
Michael Mintz 2020-09-18 16:51:53 -04:00
parent 8fad700694
commit bd8deac4de
2 changed files with 3 additions and 3 deletions

View File

@ -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")

View File

@ -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")