Ejemplo n.º 1
0
 public void AcceptAlert(String alertText)
 {
     RetriableRunner.Run(() => {
         var alert = Web.PortalDriver.SwitchTo().Alert();
         Assert.AreEqual(alertText, alert.Text);
         alert.Accept();
     });
 }
Ejemplo n.º 2
0
 public void AcceptAlert()
 {
     RetriableRunner.Run(() => Web.PortalDriver.SwitchTo().Alert().Accept());
 }
 public static T Execute <T>(string script, params object[] args)
 {
     return(RetriableRunner.Run(() => (T)((IJavaScriptExecutor)Web.PortalDriver).ExecuteScript(script, args)));
 }
 public static void Until(Func <IWebDriver, bool> func)
 {
     Thread.Sleep(500);
     RetriableRunner.Run(() => Pause.Until(func));
 }
 public static void Execute(string script, params object[] args)
 {
     RetriableRunner.Run(() => ((IJavaScriptExecutor)Web.PortalDriver).ExecuteScript(script, args));
 }