@@ -332,6 +332,7 @@ def launchBrowser(
332332 baseURL : Optional [str ],
333333 recordVideo : Optional [channels .AndroidDeviceLaunchBrowserParamsRecordVideo ],
334334 strictSelectors : Optional [bool ],
335+ locateOnlyVisible : Optional [bool ],
335336 serviceWorkers : Optional [Literal ["allow" , "block" ]],
336337 selectorEngines : Optional [Sequence [channels .SelectorEngine ]],
337338 testIdAttributeName : Optional [str ],
@@ -369,6 +370,7 @@ def launchBrowser(
369370 "baseURL" : baseURL ,
370371 "recordVideo" : recordVideo ,
371372 "strictSelectors" : strictSelectors ,
373+ "locateOnlyVisible" : locateOnlyVisible ,
372374 "serviceWorkers" : serviceWorkers ,
373375 "selectorEngines" : selectorEngines ,
374376 "testIdAttributeName" : testIdAttributeName ,
@@ -816,6 +818,7 @@ def newContext(
816818 baseURL : Optional [str ],
817819 recordVideo : Optional [channels .BrowserNewContextParamsRecordVideo ],
818820 strictSelectors : Optional [bool ],
821+ locateOnlyVisible : Optional [bool ],
819822 serviceWorkers : Optional [Literal ["allow" , "block" ]],
820823 selectorEngines : Optional [Sequence [channels .SelectorEngine ]],
821824 testIdAttributeName : Optional [str ],
@@ -852,6 +855,7 @@ def newContext(
852855 "baseURL" : baseURL ,
853856 "recordVideo" : recordVideo ,
854857 "strictSelectors" : strictSelectors ,
858+ "locateOnlyVisible" : locateOnlyVisible ,
855859 "serviceWorkers" : serviceWorkers ,
856860 "selectorEngines" : selectorEngines ,
857861 "testIdAttributeName" : testIdAttributeName ,
@@ -894,6 +898,7 @@ def newContextForReuse(
894898 baseURL : Optional [str ],
895899 recordVideo : Optional [channels .BrowserNewContextForReuseParamsRecordVideo ],
896900 strictSelectors : Optional [bool ],
901+ locateOnlyVisible : Optional [bool ],
897902 serviceWorkers : Optional [Literal ["allow" , "block" ]],
898903 selectorEngines : Optional [Sequence [channels .SelectorEngine ]],
899904 testIdAttributeName : Optional [str ],
@@ -930,6 +935,7 @@ def newContextForReuse(
930935 "baseURL" : baseURL ,
931936 "recordVideo" : recordVideo ,
932937 "strictSelectors" : strictSelectors ,
938+ "locateOnlyVisible" : locateOnlyVisible ,
933939 "serviceWorkers" : serviceWorkers ,
934940 "selectorEngines" : selectorEngines ,
935941 "testIdAttributeName" : testIdAttributeName ,
@@ -1804,6 +1810,7 @@ def launchPersistentContext(
18041810 channels .BrowserTypeLaunchPersistentContextParamsRecordVideo
18051811 ],
18061812 strictSelectors : Optional [bool ],
1813+ locateOnlyVisible : Optional [bool ],
18071814 serviceWorkers : Optional [Literal ["allow" , "block" ]],
18081815 selectorEngines : Optional [Sequence [channels .SelectorEngine ]],
18091816 testIdAttributeName : Optional [str ],
@@ -1857,6 +1864,7 @@ def launchPersistentContext(
18571864 "baseURL" : baseURL ,
18581865 "recordVideo" : recordVideo ,
18591866 "strictSelectors" : strictSelectors ,
1867+ "locateOnlyVisible" : locateOnlyVisible ,
18601868 "serviceWorkers" : serviceWorkers ,
18611869 "selectorEngines" : selectorEngines ,
18621870 "testIdAttributeName" : testIdAttributeName ,
@@ -1940,6 +1948,7 @@ def launch(
19401948 offline : Optional [bool ],
19411949 recordVideo : Optional [channels .ElectronLaunchParamsRecordVideo ],
19421950 strictSelectors : Optional [bool ],
1951+ locateOnlyVisible : Optional [bool ],
19431952 timezoneId : Optional [str ],
19441953 tracesDir : Optional [str ],
19451954 artifactsDir : Optional [str ],
@@ -1966,6 +1975,7 @@ def launch(
19661975 "offline" : offline ,
19671976 "recordVideo" : recordVideo ,
19681977 "strictSelectors" : strictSelectors ,
1978+ "locateOnlyVisible" : locateOnlyVisible ,
19691979 "timezoneId" : timezoneId ,
19701980 "tracesDir" : tracesDir ,
19711981 "artifactsDir" : artifactsDir ,
0 commit comments