MCPcopy Index your code
hub / github.com/reactive-python/reactpy / goto

Method goto

src/py/reactpy/reactpy/testing/display.py:48–55  ·  view source on GitHub ↗
(
        self, path: str, query: Any | None = None, add_url_prefix: bool = True
    )

Source from the content-addressed store, hash-verified

46 await self.root_element() # check that root element is attached
47
48 async def goto(
49 self, path: str, query: Any | None = None, add_url_prefix: bool = True
50 ) -> None:
51 await self.page.goto(
52 self.backend.url(
53 f"{self.url_prefix}{path}" if add_url_prefix else path, query
54 )
55 )
56
57 async def root_element(self) -> ElementHandle:
58 element = await self.page.wait_for_selector("#app", state="attached")

Callers 3

showMethod · 0.95
test_use_locationFunction · 0.80
test_runFunction · 0.80

Calls 1

urlMethod · 0.80

Tested by 2

test_use_locationFunction · 0.64
test_runFunction · 0.64