public static WatiN_IE open(this WatiN_IE watinIe, string url, int miliseconds) { if (watinIe.isNull()) { return(watinIe); } "[WatIN] open: {0}".info(url); watinIe.execute( () => { watinIe.IE.GoTo(url); watinIe.wait(miliseconds); }); return(watinIe); }
public static WatiN_IE closeInNSeconds(this WatiN_IE watinIe, int seconds) { if (seconds > 60) { "in WatiN_IE closeInNSeconds, provided value bigger than 60 secs, so changing the delay (before close) to 60".error(); seconds = 60; } "IE instance will be closed in {0} seconds".info(seconds); O2Thread.mtaThread( () => { watinIe.wait(5000); watinIe.close(); }); return(watinIe); }
public static WatiN_IE wait(this WatiN_IE watinIe) { return(watinIe.wait(1000)); }
public static WatiN_IE showMessage(this WatiN_IE ie, string message, int sleepValue) { ie.showMessage(message); ie.wait(sleepValue); return(ie); }