File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff 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
121121Patchright 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
Original file line number Diff line number Diff line change 44
55import toml
66
7- patchright_version = os .environ .get ('playwright_version' )
7+ patchright_version = "1.51.3" # os.environ.get('playwright_version')
88
99def patch_file (file_path : str , patched_tree : ast .AST ) -> None :
1010 with open (file_path , "w" ) as f :
You can’t perform that action at this time.
0 commit comments