From bd8deac4de77dfd0220bddd4e072c236bf6b87ce Mon Sep 17 00:00:00 2001 From: Michael Mintz Date: Fri, 18 Sep 2020 16:51:53 -0400 Subject: [PATCH] Update example tests --- examples/decryption_test.py | 4 ++-- examples/test_usefixtures.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/decryption_test.py b/examples/decryption_test.py index 81c27a8a..09fcc9e6 100755 --- a/examples/decryption_test.py +++ b/examples/decryption_test.py @@ -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") diff --git a/examples/test_usefixtures.py b/examples/test_usefixtures.py index f4d71095..f456f4e9 100644 --- a/examples/test_usefixtures.py +++ b/examples/test_usefixtures.py @@ -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")