@@ -40,40 +40,40 @@ def __init__(self, scope: ConnectionScope, guid: str, initializer: Dict) -> None
4040def create_remote_object (
4141 scope : ConnectionScope , type : str , guid : str , initializer : Dict
4242) -> Any :
43- if type == "bindingCall " :
43+ if type == "BindingCall " :
4444 return BindingCall (scope , guid , initializer )
45- if type == "browser " :
45+ if type == "Browser " :
4646 return Browser (scope , guid , initializer )
47- if type == "browserServer " :
47+ if type == "BrowserServer " :
4848 return BrowserServer (scope , guid , initializer )
49- if type == "browserType " :
49+ if type == "BrowserType " :
5050 return BrowserType (scope , guid , initializer )
51- if type == "context " :
51+ if type == "BrowserContext " :
5252 return BrowserContext (scope , guid , initializer )
53- if type == "consoleMessage " :
53+ if type == "ConsoleMessage " :
5454 return ConsoleMessage (scope , guid , initializer )
55- if type == "dialog " :
55+ if type == "Dialog " :
5656 return Dialog (scope , guid , initializer )
57- if type == "download " :
57+ if type == "Download " :
5858 return Download (scope , guid , initializer )
59- if type == "elementHandle " :
59+ if type == "ElementHandle " :
6060 return ElementHandle (scope , guid , initializer )
61- if type == "frame " :
61+ if type == "Frame " :
6262 return Frame (scope , guid , initializer )
63- if type == "jsHandle " :
63+ if type == "JSHandle " :
6464 return JSHandle (scope , guid , initializer )
65- if type == "page " :
65+ if type == "Page " :
6666 return Page (scope , guid , initializer )
67- if type == "playwright " :
67+ if type == "Playwright " :
6868 return Playwright (scope , guid , initializer )
69- if type == "request " :
69+ if type == "Request " :
7070 return Request (scope , guid , initializer )
71- if type == "response " :
71+ if type == "Response " :
7272 return Response (scope , guid , initializer )
73- if type == "route " :
73+ if type == "Route " :
7474 return Route (scope , guid , initializer )
75- if type == "worker " :
75+ if type == "Worker " :
7676 return Worker (scope , guid , initializer )
77- if type == "selectors " :
77+ if type == "Selectors " :
7878 return Selectors (scope , guid , initializer )
7979 return DummyObject (scope , guid , initializer )
0 commit comments