2525class Selectors :
2626 def __init__ (self , loop : asyncio .AbstractEventLoop , dispatcher_fiber : Any ) -> None :
2727 self ._loop = loop
28- self ._contextsForSelectors : Set [BrowserContext ] = set ()
29- self ._selectorEngines : List [Dict ] = []
28+ self ._contexts_for_selectors : Set [BrowserContext ] = set ()
29+ self ._selector_engines : List [Dict ] = []
3030 self ._dispatcher_fiber = dispatcher_fiber
31- self ._testIdAttributeName : Optional [str ] = None
31+ self ._test_id_attribute_name : Optional [str ] = None
3232
3333 async def register (
3434 self ,
@@ -44,16 +44,16 @@ async def register(
4444 engine : Dict [str , Any ] = dict (name = name , source = script )
4545 if contentScript :
4646 engine ["contentScript" ] = contentScript
47- for context in self ._contextsForSelectors :
47+ for context in self ._contexts_for_selectors :
4848 await context ._channel .send (
49- "registerSelectorEngine" , dict ( selectorEngine = engine )
49+ "registerSelectorEngine" , { " selectorEngine" : engine }
5050 )
51- self ._selectorEngines .append (engine )
51+ self ._selector_engines .append (engine )
5252
5353 def set_test_id_attribute (self , attributeName : str ) -> None :
5454 set_test_id_attribute_name (attributeName )
55- self ._testIdAttributeName = attributeName
56- for context in self ._contextsForSelectors :
55+ self ._test_id_attribute_name = attributeName
56+ for context in self ._contexts_for_selectors :
5757 context ._channel .send_no_reply (
5858 "setTestIdAttributeName" , {"testIdAttributeName" : attributeName }
5959 )
0 commit comments