Update the docs

This commit is contained in:
Michael Mintz 2021-04-10 13:24:19 -04:00
parent 0d20968ed8
commit a401b37d7b
5 changed files with 11 additions and 11 deletions

View File

@ -94,4 +94,4 @@ nosetests test_suite.py --report
--------
<div><a href="https://github.com/seleniumbase/SeleniumBase"><img src="https://seleniumbase.io/img/sb_logo_7.png" alt="SeleniumBase" width="240" /></a></div>
<div><a href="https://github.com/seleniumbase/SeleniumBase"><img src="https://seleniumbase.io/img/sb_logo_10.png" alt="SeleniumBase" width="240" /></a></div>

View File

@ -113,6 +113,6 @@
--------
<p align="center"><a href="https://github.com/seleniumbase/SeleniumBase/">
<img src="https://seleniumbase.io/img/sb_logo_7.png" alt="SeleniumBase" width="260" />
<img src="https://seleniumbase.io/img/sb_logo_10.png" alt="SeleniumBase" width="260" />
</a></p>
<!-- View on GitHub -->

View File

@ -1,13 +1,13 @@
<meta property="og:site_name" content="SeleniumBase | Docs">
<meta property="og:title" content="SeleniumBase | Reliable Test Automation" />
<meta property="og:description" content="Simple browser automation and testing with Python." />
<meta property="og:image" content="https://seleniumbase.io/img/sb_logo_7.png" />
<meta property="og:image" content="https://seleniumbase.io/img/sb_logo_10.png" />
<link rel="icon" href="https://seleniumbase.io/img/logo3a.png" />
<section align="center"><div align="center">
<h2>✅ 可靠的测试自动化</h2>
</div></section>
<p align="center"><a href="https://github.com/seleniumbase/SeleniumBase/">
<img src="https://seleniumbase.io/img/sb_logo_7.png" alt="SeleniumBase" width="260" />
<img src="https://seleniumbase.io/img/sb_logo_10.png" alt="SeleniumBase" width="260" />
</a></p>
<p align="center"><div align="center"><b>测试框架 </b><a href="https://github.com/seleniumbase/SeleniumBase"><img src="https://img.shields.io/badge/✅%20💛%20查看代码-在GitHub%20🌎%20🚀-02A79E.svg" alt="SeleniumBase on GitHub" /></a></div></p>
<section align="center"><div align="center"><h3>中文文件 <=> <a href="https://seleniumbase.io/">English Docs</h3></div></section>

View File

@ -119,7 +119,7 @@ from seleniumbase import BaseCase
class LoginPage():
def login_to_swag_labs(self, sb, username):
sb.open("https://www.saucedemo.com/v1")
sb.open("https://www.saucedemo.com")
sb.type("#user-name", username)
sb.type("#password", "secret_sauce")
sb.click('input[type="submit"]')
@ -129,7 +129,7 @@ class MyTests(BaseCase):
def test_swag_labs_login(self):
LoginPage().login_to_swag_labs(self, "standard_user")
self.assert_element("#inventory_container")
self.assert_text("Products", "div.product_label")
self.assert_element('div:contains("Sauce Labs Backpack")')
```
(See <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/boilerplates/samples/swag_labs_test.py">examples/boilerplates/samples/swag_labs_test.py</a> for the full test.)
@ -142,7 +142,7 @@ This is similar to the classic Page Object Model with <code>BaseCase</code> inhe
class LoginPage():
def login_to_swag_labs(self, sb, username):
sb.open("https://www.saucedemo.com/v1")
sb.open("https://www.saucedemo.com")
sb.type("#user-name", username)
sb.type("#password", "secret_sauce")
sb.click('input[type="submit"]')
@ -152,7 +152,7 @@ class MyTests():
def test_swag_labs_login(self, sb):
LoginPage().login_to_swag_labs(sb, "standard_user")
sb.assert_element("#inventory_container")
sb.assert_text("Products", "div.product_label")
sb.assert_element('div:contains("Sauce Labs Backpack")')
```
(See <a href="https://github.com/seleniumbase/SeleniumBase/blob/master/examples/boilerplates/samples/sb_swag_test.py">examples/boilerplates/samples/sb_swag_test.py</a> for the full test.)

View File

@ -1,12 +1,12 @@
[<img src="https://seleniumbase.io/cdn/img/super_logo_sb.png" title="SeleniumBase" width="290">](https://github.com/seleniumbase/SeleniumBase/blob/master/README.md)
### Thank you for choosing SeleniumBase!
### Thank you for flying with SeleniumBase!
--------
<p><div><a align="center" href="https://github.com/seleniumbase/SeleniumBase/"><img align="center" src="https://seleniumbase.io/img/sb_logo_7.png" alt="SeleniumBase" width="260"></a></div></p>
<p><div><a align="center" href="https://github.com/seleniumbase/SeleniumBase/"><img align="center" src="https://seleniumbase.io/img/sb_logo_10.png" alt="SeleniumBase" width="260"></a></div></p>
<p><div><b>Follow us somewhere:</b></div></p>
<p><div><b>Follow us on social media:</b></div></p>
<p><div><span><a href="https://github.com/seleniumbase/SeleniumBase"><img src="https://seleniumbase.io/img/social/share_github.svg" title="SeleniumBase on GitHub" alt="SeleniumBase on GitHub" width="56" /></a></span>
<span><a href="https://gitter.im/seleniumbase/SeleniumBase"><img src="https://seleniumbase.io/img/social/share_gitter.svg" title="SeleniumBase on Gitter" alt="SeleniumBase on Gitter" width="44" /></a></span>