Skip to content

Commit 8d2511f

Browse files
committed
Update for v1.51.0 (->v1.51.3 for version matching)
1 parent 9ea462e commit 8d2511f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ patchright install chromium
4949
## Usage
5050
#### Just change the import and use it like playwright. Patchright is a drop-in-replacement for Playwright!
5151

52-
> [!WARNING]
52+
> [!IMPORTANT]
5353
> Patchright only patches CHROMIUM based browsers. Firefox and Webkit are not supported.
5454
5555
```py
@@ -120,6 +120,11 @@ Patchright tweaks the Playwright Default Args to avoid detection by Command Flag
120120
### General Leaks
121121
Patchright patches some general leaks in the Playwright codebase. This mainly includes poor setups and obvious detection points.
122122

123+
### Closed Shadow Roots
124+
Patchright is able to interact with elements in Closed Shadow Roots. Just use normal locators and Patchright will do the rest.
125+
<br/>
126+
Patchright is now also able to use XPaths in Closed Shadow Roots.
127+
123128
---
124129

125130
## Stealth

patch_python_package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import toml
66

7-
patchright_version = os.environ.get('playwright_version')
7+
patchright_version = "1.51.3" # os.environ.get('playwright_version')
88

99
def patch_file(file_path: str, patched_tree: ast.AST) -> None:
1010
with open(file_path, "w") as f:

0 commit comments

Comments
 (0)