def METHOD_NAME(self, path):
    file_locator = self.nav.page.get_by_text("File", exact=True)
    file_locator.wait_for(
        timeout=self.nav.wait_for_server_spinup,
        state="attached",
    )
    file_locator.click()
    self.nav.page.get_by_role("menuitem", name="Open from Path…").get_by_text(
        "Open from Path…"
    ).click()
    self.nav.page.get_by_placeholder("/path/relative/to/jlab/root").fill(path)
    self.nav.page.get_by_role("button", name="Open", exact=True).click()
    # give the page a second to open, otherwise the options in the kernel
    # menu will be disabled.
    self.nav.page.wait_for_load_state("networkidle")
    if self.nav.page.get_by_text(
        "Could not find path:",
        exact=False,
    ).is_visible():
        logger.debug("Path to notebook is invalid")
        raise RuntimeError("Path to notebook is invalid")