
com.automationrockstars.gir.ui.context.WebdriverSearchContextProvider Maven / Gradle / Ivy
The newest version!
/*
*
*/
package com.automationrockstars.gir.ui.context;
import com.automationrockstars.design.gir.webdriver.DriverFactory;
import org.openqa.selenium.SearchContext;
import java.lang.annotation.Annotation;
public class WebdriverSearchContextProvider implements SearchContextProvider {
@Override
public boolean canProvide(Class extends Annotation> context) {
return Web.class.equals(context);
}
@Override
public SearchContext provide() {
return DriverFactory.getDriver();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy