glendam/browser_utils

Preserves the Glendam 5 browser utility API.

New code should import glendam/page. This compatibility facade delegates to that domain module so packages can support both Glendam 5 and 6 while migrating without duplicating browser behavior.

Values

pub fn await_visible(
  page browser_page: glendam.Page,
  selector selector: String,
  time_out timeout_milliseconds: Int,
) -> Result(Bool, chrome.RequestError)

Deprecated: Import glendam/page and use page.await_visible instead.

Waits until a selected element becomes visible.

pub fn get_url(
  page browser_page: glendam.Page,
) -> Result(String, chrome.RequestError)

Deprecated: Import glendam/page and use page.get_url instead.

Returns the current page URL.

pub fn is_visible(
  page browser_page: glendam.Page,
  selector selector: String,
) -> Result(Bool, chrome.RequestError)

Deprecated: Import glendam/page and use page.is_visible instead.

Reports whether a selected element is visible.

pub fn wait_for_url(
  page browser_page: glendam.Page,
  matching predicate: fn(String) -> Bool,
  time_out timeout_milliseconds: Int,
) -> Result(String, chrome.RequestError)

Deprecated: Import glendam/page and use page.wait_for_url instead.

Waits until the page URL satisfies a predicate.

Search Document