public override Element Now() { if (_element != null) { return(_element.Now()); } return(timingStrategy.Synchronise(new ElementQuery(this, options))); }
public bool longClickElement(Coypu.ElementScope clickThis, int waitSeconds = 30, int retrySeconds = 5) { DateTime quitTime = DateTime.Now.AddSeconds(waitSeconds); while (DateTime.Now <= quitTime) { try { clickThis.Click(); clickThis.Now(); } catch (Exception) { System.Threading.Thread.Sleep(retrySeconds * 1000); } } return(false); }
internal FillInWith(ElementScope element, Driver driver, RobustWrapper robustWrapper, DriverScope scope, Options options) : this(element.Now(),driver,robustWrapper,scope,options) { }
internal FillInWith(ElementScope element, Driver driver, RobustWrapper robustWrapper, DriverScope scope, Options options) : this(element.Now(), driver, robustWrapper, scope, options) { }