@@ -177,8 +177,8 @@ private BrowserContextImpl newContextImpl(NewContextOptions options) {
177177 if (options .acceptDownloads != null ) {
178178 params .addProperty ("acceptDownloads" , options .acceptDownloads ? "accept" : "deny" );
179179 }
180- params .add ("selectorEngines" , gson ().toJsonTree (browserType .playwright .sharedSelectors .selectorEngines ));
181- params .addProperty ("testIdAttributeName" , browserType .playwright .sharedSelectors .testIdAttributeName );
180+ params .add ("selectorEngines" , gson ().toJsonTree (browserType .playwright .selectors .selectorEngines ));
181+ params .addProperty ("testIdAttributeName" , browserType .playwright .selectors .testIdAttributeName );
182182 JsonElement result = sendMessage ("newContext" , params );
183183 BrowserContextImpl context = connection .getExistingObject (result .getAsJsonObject ().getAsJsonObject ("context" ).get ("guid" ).getAsString ());
184184 context .initializeHarFromOptions (harOptions );
@@ -278,7 +278,7 @@ protected void connectToBrowserType(BrowserTypeImpl browserType, Path tracesDir)
278278
279279 for (BrowserContextImpl context : contexts ) {
280280 context .tracing ().setTracesDir (tracesDir );
281- browserType .playwright .sharedSelectors .contextsForSelectors .add (context );
281+ browserType .playwright .selectors .contextsForSelectors .add (context );
282282 }
283283 }
284284
@@ -289,7 +289,7 @@ private void didCreateContext(BrowserContextImpl context) {
289289 // and will be configured later in `ConnectToBrowserType`.
290290 if (browserType != null ) {
291291 context .tracing ().setTracesDir (tracePath );
292- browserType .playwright .sharedSelectors .contextsForSelectors .add (context );
292+ browserType .playwright .selectors .contextsForSelectors .add (context );
293293 }
294294 }
295295
0 commit comments