Jacobvu84 / serenity-screenplay-junit-webdriver

Quản lý giáo trình cho khoá học
0 stars 2 forks source link

ProxiedDriver #26

Open Jacobvu84 opened 5 years ago

Jacobvu84 commented 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();
    }

}
Jacobvu84 commented 5 years ago

T are