Esempio n. 1
0
 async def uncheck(self,
                   timeout: float = None,
                   force: bool = None,
                   noWaitAfter: bool = None) -> None:
     await self._channel.send("uncheck", locals_to_params(locals()))
Esempio n. 2
0
 async def query_selector(self,
                          selector: str,
                          strict: bool = None) -> Optional[ElementHandle]:
     return from_nullable_channel(await self._channel.send(
         "querySelector", locals_to_params(locals())))
Esempio n. 3
0
 async def focus(self,
                 selector: str,
                 strict: bool = None,
                 timeout: float = None) -> None:
     await self._channel.send("focus", locals_to_params(locals()))
Esempio n. 4
0
 async def is_hidden(self, selector: str, timeout: float = None) -> bool:
     return await self._channel.send("isHidden", locals_to_params(locals()))
Esempio n. 5
0
 async def get_attribute(self,
                         selector: str,
                         name: str,
                         timeout: float = None) -> Optional[str]:
     return await self._channel.send("getAttribute",
                                     locals_to_params(locals()))
 async def setGeolocation(
     self, latitude: float, longitude: float, accuracy: Optional[float]
 ) -> None:
     await self._channel.send(
         "setGeolocation", {"geolocation": locals_to_params(locals())}
     )
Esempio n. 7
0
 async def fill(self,
                selector: str,
                value: str,
                timeout: float = None,
                noWaitAfter: bool = None) -> None:
     await self._channel.send("fill", locals_to_params(locals()))
Esempio n. 8
0
 async def is_visible(self, selector: str, timeout: float = None) -> bool:
     return await self._main_frame.is_visible(**locals_to_params(locals()))
Esempio n. 9
0
 async def dispatch_event(
     self, selector: str, type: str, eventInit: Dict = None, timeout: float = None
 ) -> None:
     return await self._main_frame.dispatch_event(**locals_to_params(locals()))
 async def select_text(self, force: bool = None, timeout: float = None) -> None:
     await self._channel.send("selectText", locals_to_params(locals()))
 async def input_value(self, timeout: float = None) -> str:
     return await self._channel.send("inputValue", locals_to_params(locals()))
 async def scroll_into_view_if_needed(self, timeout: float = None) -> None:
     await self._channel.send("scrollIntoViewIfNeeded", locals_to_params(locals()))
Esempio n. 13
0
 async def emulate_media(
     self,
     media: Literal["print", "screen"] = None,
     colorScheme: ColorScheme = None,
 ) -> None:
     await self._channel.send("emulateMedia", locals_to_params(locals()))
 async def set_geolocation(self, geolocation: Geolocation = None) -> None:
     await self._channel.send("setGeolocation", locals_to_params(locals()))
Esempio n. 15
0
 async def get_attribute(
     self, selector: str, name: str, timeout: float = None
 ) -> Optional[str]:
     return await self._main_frame.get_attribute(**locals_to_params(locals()))
Esempio n. 16
0
 async def add_style_tag(
     self, url: str = None, path: Union[str, Path] = None, content: str = None
 ) -> ElementHandle:
     return await self._main_frame.add_style_tag(**locals_to_params(locals()))
 async def grantPermissions(
     self, permissions: List[str], origin: str = None
 ) -> None:
     await self._channel.send("grantPermissions", locals_to_params(locals()))
Esempio n. 18
0
 async def wait_for_load_state(
     self, state: DocumentLoadState = None, timeout: float = None
 ) -> None:
     return await self._main_frame.wait_for_load_state(**locals_to_params(locals()))
Esempio n. 19
0
 async def start(self,
                 name: str = None,
                 snapshots: bool = None,
                 screenshots: bool = None) -> None:
     params = locals_to_params(locals())
     await self._channel.send("tracingStart", params)
Esempio n. 20
0
 async def set_viewport_size(self, viewportSize: ViewportSize) -> None:
     self._viewport_size = viewportSize
     await self._channel.send("setViewportSize", locals_to_params(locals()))
Esempio n. 21
0
 async def is_enabled(self, selector: str, timeout: float = None) -> bool:
     return await self._channel.send("isEnabled",
                                     locals_to_params(locals()))
Esempio n. 22
0
 async def fill(
     self, selector: str, value: str, timeout: float = None, noWaitAfter: bool = None
 ) -> None:
     return await self._main_frame.fill(**locals_to_params(locals()))
Esempio n. 23
0
 async def inner_html(self, selector: str, timeout: float = None) -> str:
     return await self._channel.send("innerHTML",
                                     locals_to_params(locals()))
Esempio n. 24
0
 async def focus(self, selector: str, timeout: float = None) -> None:
     return await self._main_frame.focus(**locals_to_params(locals()))
Esempio n. 25
0
 async def abort(self, errorCode: str = None) -> None:
     await self._channel.send("abort", locals_to_params(locals()))
Esempio n. 26
0
 async def text_content(self, selector: str, timeout: float = None) -> Optional[str]:
     return await self._main_frame.text_content(**locals_to_params(locals()))
Esempio n. 27
0
 async def is_visible(self,
                      selector: str,
                      strict: bool = None,
                      timeout: float = None) -> bool:
     return await self._channel.send("isVisible",
                                     locals_to_params(locals()))
Esempio n. 28
0
 async def inner_html(self, selector: str, timeout: float = None) -> str:
     return await self._main_frame.inner_html(**locals_to_params(locals()))
Esempio n. 29
0
 async def text_content(self,
                        selector: str,
                        strict: bool = None,
                        timeout: float = None) -> Optional[str]:
     return await self._channel.send("textContent",
                                     locals_to_params(locals()))
Esempio n. 30
0
 async def innerHTML(self, selector: str, timeout: int = None) -> str:
     return await self._main_frame.innerHTML(**locals_to_params(locals()))