Skip to content

Commit a381c35

Browse files
committed
Update documentation in migration examples
1 parent 377c3d2 commit a381c35

File tree

6 files changed

+10
-8
lines changed

6 files changed

+10
-8
lines changed

examples/migration/raw_selenium/to_playwright/01_hybrid_approach/ReadMe.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class RawSeleniumTestCase(TestCase):
9898
From here, instead of having to convert the entire script over to Playwright at once, you could swap out partitions to get to this:
9999

100100
```python
101-
"""Hybrid Fixture TestCase Example"""
101+
"""Hybrid Fixture Example. Uses Selenium, Playwright, and SeleniumBase."""
102102
from playwright.sync_api import sync_playwright, expect
103103
from selenium.webdriver.common.by import By
104104
from selenium.webdriver.support import expected_conditions as EC
@@ -163,7 +163,8 @@ Now that you've included Playwright in your script, you can utilize some of its
163163

164164
```python
165165
"""
166-
Hybrid Fixture TestCase Example with Playwright Tracing.
166+
Hybrid Fixture Example with Playwright Tracing.
167+
Uses Selenium, Playwright, and SeleniumBase.
167168
Trace logs are saved to: `latest_logs/[MODULE.CLASS.METHOD]/trace.zip`
168169
To open Trace Viewer: `playwright show-trace [PATH_TO_LOGS]/trace.zip`
169170
"""
@@ -241,7 +242,7 @@ class HybridFixtureWithTracing(BaseCase):
241242
Note that this hybrid mode gives you some flexibility in how you structure your test class. You could do it without the `setUp()` and `tearDown()` methods by using a context manager for Playwright like this:
242243

243244
```python
244-
"""Hybrid TestCase Example"""
245+
"""Hybrid TestCase Example. Uses Selenium, Playwright, and SeleniumBase."""
245246
from playwright.sync_api import sync_playwright, expect
246247
from selenium.webdriver.common.by import By
247248
from selenium.webdriver.support import expected_conditions as EC

examples/migration/raw_selenium/to_playwright/01_hybrid_approach/non_test_scripts/ReadMe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This folder contains examples for users who need to perform web automation **wit
77
By using the hybrid approach seen in [raw_hybrid_script.py](./raw_hybrid_script.py), SeleniumBase has effectively bridged the gap between raw Selenium and Playwright in order to ease the migration process.
88

99
```python
10-
"""Hybrid Script Example"""
10+
"""Hybrid Script Example. Uses Selenium, Playwright, and SeleniumBase."""
1111
from playwright.sync_api import sync_playwright, expect
1212
from selenium.webdriver.common.by import By
1313
from selenium.webdriver.support import expected_conditions as EC

examples/migration/raw_selenium/to_playwright/01_hybrid_approach/non_test_scripts/raw_hybrid_script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Hybrid Script Example"""
1+
"""Hybrid Script Example. Uses Selenium, Playwright, and SeleniumBase."""
22
from playwright.sync_api import sync_playwright, expect
33
from selenium.webdriver.common.by import By
44
from selenium.webdriver.support import expected_conditions as EC

examples/migration/raw_selenium/to_playwright/01_hybrid_approach/raw_hybrid_case.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Hybrid TestCase Example"""
1+
"""Hybrid TestCase Example. Uses Selenium, Playwright, and SeleniumBase."""
22
from playwright.sync_api import sync_playwright, expect
33
from selenium.webdriver.common.by import By
44
from selenium.webdriver.support import expected_conditions as EC

examples/migration/raw_selenium/to_playwright/01_hybrid_approach/raw_hybrid_fixture.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Hybrid Fixture TestCase Example"""
1+
"""Hybrid Fixture Example. Uses Selenium, Playwright, and SeleniumBase."""
22
from playwright.sync_api import sync_playwright, expect
33
from selenium.webdriver.common.by import By
44
from selenium.webdriver.support import expected_conditions as EC

examples/migration/raw_selenium/to_playwright/01_hybrid_approach/raw_hybrid_fixture_tracing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""
2-
Hybrid Fixture TestCase Example with Playwright Tracing.
2+
Hybrid Fixture Example with Playwright Tracing.
3+
Uses Selenium, Playwright, and SeleniumBase.
34
Trace logs are saved to: `latest_logs/[MODULE.CLASS.METHOD]/trace.zip`
45
To open Trace Viewer: `playwright show-trace [PATH_TO_LOGS]/trace.zip`
56
"""

0 commit comments

Comments
 (0)