I am trying to use fluent wait
@Component
@Scope(SCOPE_CUCUMBER_GLUE)
public class UserCreationPageImpl extends BaseBinariosPage implements UserCreationPage {
Wait<WebDriver> wait = new FluentWait<WebDriver>( driver )
.withTimeout(Duration.ofSeconds(30))
.pollingEvery(Duration.ofSeconds(5))
.ignoring(NoSuchElementException.class);
but when I debug I got drive=null
here is where I am instanciate the driver
@Page
public abstract class BaseBinariosPage {
@Autowired
protected WebDriver driver;
@Autowired
private QAStarterConfigProperties qaStarterConfigProperties;
public BaseBinariosPage() {
}
@Init
public void init() {
this.driver.get(this.qaStarterConfigProperties.getAppUrl() + this.getPageEndPoint());
PageFactory.initElements(this.driver, this);
}
protected abstract String getPageEndPoint();
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…