Skip to content

Commit 83faa23

Browse files
authored
Merge pull request #868 from seleniumbase/the-big-one
New methods and lots of optimizations
2 parents f4ca116 + 2b60aac commit 83faa23

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+438
-147
lines changed

docs/img/dash_pie.png

33 Bytes
Loading

docs/img/dash_pie_2.png

-15 Bytes
Loading

docs/img/dash_pie_3.png

3.49 KB
Loading

docs/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<title>SeleniumBase</title>
66
</head>
77
<body>
8-
<p<a href="https://github.com/seleniumbase/SeleniumBase/"><img src="https://seleniumbase.io/img/sb_logo_7.png" alt="SeleniumBase" width="275" /></a></p>
9-
<h1><img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" width="30" /> Docs Home Page:</h1>
8+
<p<a href="https://github.com/seleniumbase/SeleniumBase/"><img src="https://seleniumbase.io/img/sb_logo_10.png" alt="SeleniumBase" width="275" /></a></p>
9+
<h1><img src="https://seleniumbase.io/img/logo6.png" title="SeleniumBase" width="32" /> Docs Home Page:</h1>
1010

11-
<h2><img src="https://seleniumbase.io/img/sb_icon.png" title="SeleniumBase" width="30" /> <a href="https://seleniumbase.io">https://seleniumbase.io</a></h2>
11+
<h2><img src="https://seleniumbase.io/img/logo6.png" title="SeleniumBase" width="32" /> <a href="https://seleniumbase.io">https://seleniumbase.io</a></h2>
1212
</body>
1313
</html>

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pymdown-extensions==8.1.1
1010
importlib-metadata==3.10.0;python_version>="3.6"
1111
lunr==0.5.8
1212
mkdocs==1.1.2
13-
mkdocs-material==7.1.0
13+
mkdocs-material==7.1.1
1414
mkdocs-exclude-search==0.4.0
1515
mkdocs-simple-hooks==0.1.3
1616
mkdocs-material-extensions==1.0.1

examples/boilerplates/samples/sb_swag_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
class LoginPage():
55

66
def login_to_swag_labs(self, sb, username):
7-
sb.open("https://www.saucedemo.com/v1")
7+
sb.open("https://www.saucedemo.com")
88
sb.type("#user-name", username)
99
sb.type("#password", "secret_sauce")
1010
sb.click('input[type="submit"]')
@@ -15,4 +15,4 @@ class MyTests():
1515
def test_swag_labs_login(self, sb):
1616
LoginPage().login_to_swag_labs(sb, "standard_user")
1717
sb.assert_element("#inventory_container")
18-
sb.assert_text("Products", "div.product_label")
18+
sb.assert_element('div:contains("Sauce Labs Backpack")')

examples/boilerplates/samples/swag_labs_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
class LoginPage():
77

88
def login_to_swag_labs(self, sb, username):
9-
sb.open("https://www.saucedemo.com/v1")
9+
sb.open("https://www.saucedemo.com")
1010
sb.type("#user-name", username)
1111
sb.type("#password", "secret_sauce")
1212
sb.click('input[type="submit"]')
@@ -17,4 +17,4 @@ class MyTests(BaseCase):
1717
def test_swag_labs_login(self):
1818
LoginPage().login_to_swag_labs(self, "standard_user")
1919
self.assert_element("#inventory_container")
20-
self.assert_text("Products", "div.product_label")
20+
self.assert_element('div:contains("Sauce Labs Backpack")')

examples/boilerplates/samples/test_page_objects.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ def click_seleniumbase_io_link(self, sb):
2121
link = '#readme article a[href*="seleniumbase.io"]'
2222
sb.wait_for_element_visible(link)
2323
sb.js_click(link)
24-
sb.wait_for_ready_state_complete()
25-
current_url = sb.get_current_url()
26-
if "seleniumbase.io" not in current_url:
27-
sb.switch_to_window(1) # GitHub probably opened a new window
24+
sb.switch_to_newest_window()
2825

2926

3027
class SeleniumBaseIOPage():

examples/decryption_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
This test demonstrates the use of encryption/decryption.
3-
(Technically, obfuscation/unobfuscation.)
3+
(Technically, obfuscation/unobfuscation of passwords.)
44
"""
55

66
from seleniumbase import BaseCase
@@ -10,7 +10,7 @@
1010
class DecryptionTests(BaseCase):
1111

1212
def test_decrypt_password(self):
13-
self.open("https://www.saucedemo.com/v1")
13+
self.open("https://www.saucedemo.com")
1414
self.type("#user-name", "standard_user")
1515

1616
encrypted_password = "$^*ENCRYPT=S3BDTAdCWzMmKEY8Gjg=?&#$"
@@ -20,5 +20,5 @@ def test_decrypt_password(self):
2020
self.type("#password", password)
2121

2222
self.click('input[type="submit"]')
23-
self.assert_text("Products", "div.product_label")
2423
self.assert_element("#inventory_container")
24+
self.assert_element('div:contains("Sauce Labs Backpack")')

examples/example_logs/ReadMe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,4 @@ nosetests test_suite.py --report
9494

9595
--------
9696

97-
<div><a href="https://github.com/seleniumbase/SeleniumBase"><img src="https://seleniumbase.io/img/sb_logo_7.png" alt="SeleniumBase" width="240" /></a></div>
97+
<div><a href="https://github.com/seleniumbase/SeleniumBase"><img src="https://seleniumbase.io/img/sb_logo_10.png" alt="SeleniumBase" width="240" /></a></div>

0 commit comments

Comments
 (0)