Skip to content

Commit 5e7013d

Browse files
authored
Merge pull request #699 from seleniumbase/update-the-page-objects-generator
Update the console scripts' tools for generating page objects
2 parents 292786c + 3d93343 commit 5e7013d

File tree

9 files changed

+379
-60
lines changed

9 files changed

+379
-60
lines changed

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
displayName: 'Check the console scripts interface'
5353
5454
- script: |
55-
seleniumbase install chromedriver
55+
seleniumbase install chromedriver latest
5656
displayName: 'Install chromedriver'
5757
5858
- script: |

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

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ brython==3.8.10
5959
pyotp==2.4.0
6060
boto==2.49.0
6161
cffi==1.14.2
62-
rich==6.2.0;python_version>="3.6" and python_version<"4.0"
62+
rich==7.0.0;python_version>="3.6" and python_version<"4.0"
6363
flake8==3.7.9;python_version<"3.5"
6464
flake8==3.8.3;python_version>="3.5"
6565
pyflakes==2.1.1;python_version<"3.5"

seleniumbase/console_scripts/ReadMe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Creates a new SeleniumBase test file with boilerplate code.
7373
If the file already exists, an error is raised.
7474
By default, uses English mode and creates a
7575
boilerplate with the 5 most common SeleniumBase
76-
methods, which are "open", "click", "update_text",
76+
methods, which are "open", "type", "click",
7777
"assert_element", and "assert_text". If using the
7878
basic boilerplate option, only the "open" method
7979
is included.

0 commit comments

Comments
 (0)