Open Jacobvu84 opened 5 years ago
package com.asksqa; import net.serenitybdd.screenplay.Actor; import net.serenitybdd.screenplay.abilities.BrowseTheWeb; import net.thucydides.core.webdriver.WebDriverFacade; public abstract class ProxiedDriver<T> { @SuppressWarnings("unchecked") public T getDriver(Actor actor) { return (T) ((WebDriverFacade) BrowseTheWeb.as(actor).getDriver()).getProxiedDriver(); } }
AndroidDriver<AndroidElement>
IOSDriver<IOSElement>
AppiumDriver<MobileElement>