Skip to content

Commit bd8deac

Browse files
committed
Update example tests
1 parent 8fad700 commit bd8deac

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/decryption_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ class MyTestClass(BaseCase):
1111

1212
def test_rate_limited_printing(self):
1313
self.open("https://www.saucedemo.com/")
14-
self.update_text("#user-name", "standard_user")
14+
self.type("#user-name", "standard_user")
1515

1616
encrypted_password = "$^*ENCRYPT=S3BDTAdCWzMmKEY8Gjg=?&#$"
1717
print("\nEncrypted Password = %s" % encrypted_password)
1818
password = encryption.decrypt(encrypted_password)
1919
print("Decrypted Password = %s" % password)
20-
self.update_text("#password", password)
20+
self.type("#password", password)
2121

2222
self.click('input[type="submit"]')
2323
self.assert_text("Products", "div.product_label")

examples/test_usefixtures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class Test_UseFixtures():
66
def test_usefixtures_on_class(self):
77
sb = self.sb
88
sb.open("https://google.com/ncr")
9-
sb.update_text('input[title="Search"]', 'SeleniumBase\n')
9+
sb.type('input[title="Search"]', 'SeleniumBase\n')
1010
sb.click('a[href*="github.com/seleniumbase/SeleniumBase"]')
1111
sb.assert_text("SeleniumBase", 'strong[itemprop="name"]')
1212
sb.assert_text("integrations")

0 commit comments

Comments
 (0)