@@ -65,7 +65,6 @@ def __init__(
6565 self , parent : "BrowserType" , type : str , guid : str , initializer : Dict
6666 ) -> None :
6767 super ().__init__ (parent , type , guid , initializer )
68- self ._browser_type = parent
6968 self ._is_connected = True
7069 self ._should_close_connection_on_close = False
7170 self ._cr_tracing_path : Optional [str ] = None
@@ -86,13 +85,13 @@ def __repr__(self) -> str:
8685
8786 def _connect_to_browser_type (
8887 self ,
89- browserType : "BrowserType" ,
90- tracesDir : Optional [str ] = None ,
88+ browser_type : "BrowserType" ,
89+ traces_dir : Optional [str ] = None ,
9190 ) -> None :
9291 # Note: when using connect(), `browserType` is different from `this.parent`.
9392 # This is why browser type is not wired up in the constructor, and instead this separate method is called later on.
94- self ._browser_type = browserType
95- self ._traces_dir = tracesDir
93+ self ._browser_type = browser_type
94+ self ._traces_dir = traces_dir
9695 for context in self ._contexts :
9796 self ._setup_browser_context (context )
9897
0 commit comments