butterbee
Values
pub fn goto(
driver: webdriver.WebDriver(state),
url: String,
) -> webdriver.WebDriver(navigate.NavigateResult)
Navigates to the given url
pub fn init() -> Nil
Initialize butterbee,
Call this in the main function of your test, before calling gleeunit.main.
Then call butterbee.run in your test
to start using butterbee.
pub fn run(
browsers: List(config.BrowserType),
run: fn(webdriver.WebDriver(info.Info)) -> a,
) -> Nil
Start a new webdriver session connect to the browser session, using the configuration in the gleam.toml file. WebDriver holds the browsing context info in its state
pub fn run_with_config(
browsers: List(config.BrowserType),
config: config.ButterbeeConfig,
run: fn(webdriver.WebDriver(info.Info)) -> a,
) -> Nil
Start a new webdriver session connect to the browser session, using the ButterbeeConfig type
pub fn url(
driver: webdriver.WebDriver(state),
) -> webdriver.WebDriver(String)
Returns the url of the current page
pub fn value(
driver: webdriver.WebDriver(state),
) -> Result(state, @internal ButterbeeError)
Returns the state of the test without closing the webdriver session