Beispiel #1
0
        public void ValidarPDF()
        {
            Thread.Sleep(2000);
            var BtnPDF = Element.Css("a[ng-click='BaixarPDF()']");

            MouseActions.ClickATM(Browser, BtnPDF);

            Thread.Sleep(60000);

            AutoItHelper.CancelarImpressao();

            Browser.SwitchToLastWindow();
            CamposPDF();
        }
        public void ValidarArquivoPDF(string InpApInicial)
        {
            Thread.Sleep(2000);
            var ClickInpAPInicial = Element.Xpath("//div[text()='" + InpApInicial + "']");

            MouseActions.ClickATM(Browser, ClickInpAPInicial);
            Thread.Sleep(3000);
            var ClickPDF = Element.Css("a[ng-click='GerarEspelhoPDF()']");

            MouseActions.ClickATM(Browser, ClickPDF);

            Thread.Sleep(25000);

            AutoItHelper.CancelarImpressao();

            Thread.Sleep(2000);
            Browser.SwitchToLastWindow();
            ValidarPDFEspelho();
        }
Beispiel #3
0
 public void Login()
 {
     Thread.Sleep(1500);
     AutoItHelper.LoginWindows();
 }