public class InTheBrowser extends Object implements Performable, CanBeSilent
actor.attemptsTo(
InTheBrowser.perform(
browser -> browser.evaluateJavascript("window.localStorage.clear()")
)
);
You can access the Driver instance directly using browser.getDriver().Constructor and Description |
---|
InTheBrowser(Consumer<BrowseTheWeb> action) |
Modifier and Type | Method and Description |
---|---|
boolean |
isSilent() |
static InTheBrowser |
perform(Consumer<BrowseTheWeb> action) |
<T extends Actor> |
performAs(T actor) |
Performable |
withNoReporting() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
then
public InTheBrowser(Consumer<BrowseTheWeb> action)
public static InTheBrowser perform(Consumer<BrowseTheWeb> action)
public <T extends Actor> void performAs(T actor)
performAs
in interface Performable
public boolean isSilent()
isSilent
in interface CanBeSilent
public Performable withNoReporting()
Copyright © 2022. All rights reserved.