@@ -9615,7 +9615,8 @@ async def new_context(
96159615 record_video_dir : typing .Union [str , pathlib .Path ] = None ,
96169616 record_video_size : ViewportSize = None ,
96179617 storage_state : typing .Union [StorageState , str , pathlib .Path ] = None ,
9618- base_url : str = None
9618+ base_url : str = None ,
9619+ strict_selectors : bool = None
96199620 ) -> "BrowserContext" :
96209621 """Browser.new_context
96219622
@@ -9709,6 +9710,10 @@ async def new_context(
97099710 Examples:
97109711 - baseURL: `http://localhost:3000` and navigating to `/bar.html` results in `http://localhost:3000/bar.html`
97119712 - baseURL: `http://localhost:3000/foo/` and navigating to `./bar.html` results in `http://localhost:3000/foo/bar.html`
9713+ strict_selectors : Union[bool, NoneType]
9714+ It specified, enables strict selectors mode for this context. In the strict selectors mode all operations on selectors
9715+ that imply single target DOM element will throw when more than one element matches the selector. See `Locator` to learn
9716+ more about the strict mode.
97129717
97139718 Returns
97149719 -------
@@ -9747,6 +9752,7 @@ async def new_context(
97479752 recordVideoSize = record_video_size ,
97489753 storageState = storage_state ,
97499754 baseURL = base_url ,
9755+ strictSelectors = strict_selectors ,
97509756 ),
97519757 )
97529758 )
@@ -9781,7 +9787,8 @@ async def new_page(
97819787 record_video_dir : typing .Union [str , pathlib .Path ] = None ,
97829788 record_video_size : ViewportSize = None ,
97839789 storage_state : typing .Union [StorageState , str , pathlib .Path ] = None ,
9784- base_url : str = None
9790+ base_url : str = None ,
9791+ strict_selectors : bool = None
97859792 ) -> "Page" :
97869793 """Browser.new_page
97879794
@@ -9870,6 +9877,10 @@ async def new_page(
98709877 Examples:
98719878 - baseURL: `http://localhost:3000` and navigating to `/bar.html` results in `http://localhost:3000/bar.html`
98729879 - baseURL: `http://localhost:3000/foo/` and navigating to `./bar.html` results in `http://localhost:3000/foo/bar.html`
9880+ strict_selectors : Union[bool, NoneType]
9881+ It specified, enables strict selectors mode for this context. In the strict selectors mode all operations on selectors
9882+ that imply single target DOM element will throw when more than one element matches the selector. See `Locator` to learn
9883+ more about the strict mode.
98739884
98749885 Returns
98759886 -------
@@ -9908,6 +9919,7 @@ async def new_page(
99089919 recordVideoSize = record_video_size ,
99099920 storageState = storage_state ,
99109921 baseURL = base_url ,
9922+ strictSelectors = strict_selectors ,
99119923 ),
99129924 )
99139925 )
@@ -10218,7 +10230,8 @@ async def launch_persistent_context(
1021810230 record_har_omit_content : bool = None ,
1021910231 record_video_dir : typing .Union [str , pathlib .Path ] = None ,
1022010232 record_video_size : ViewportSize = None ,
10221- base_url : str = None
10233+ base_url : str = None ,
10234+ strict_selectors : bool = None
1022210235 ) -> "BrowserContext" :
1022310236 """BrowserType.launch_persistent_context
1022410237
@@ -10345,6 +10358,10 @@ async def launch_persistent_context(
1034510358 Examples:
1034610359 - baseURL: `http://localhost:3000` and navigating to `/bar.html` results in `http://localhost:3000/bar.html`
1034710360 - baseURL: `http://localhost:3000/foo/` and navigating to `./bar.html` results in `http://localhost:3000/foo/bar.html`
10361+ strict_selectors : Union[bool, NoneType]
10362+ It specified, enables strict selectors mode for this context. In the strict selectors mode all operations on selectors
10363+ that imply single target DOM element will throw when more than one element matches the selector. See `Locator` to learn
10364+ more about the strict mode.
1034810365
1034910366 Returns
1035010367 -------
@@ -10397,6 +10414,7 @@ async def launch_persistent_context(
1039710414 recordVideoDir = record_video_dir ,
1039810415 recordVideoSize = record_video_size ,
1039910416 baseURL = base_url ,
10417+ strictSelectors = strict_selectors ,
1040010418 ),
1040110419 )
1040210420 )
0 commit comments