public void VincularDocumento( string AE, DateTime DtInicial, DateTime DtFinal, string CNPJ) { var ConfigPaginas = new ConfigPaginas(driver); driver.FindElement(byNumeroAE).SendKeys(AE); driver.FindElement(byNumeroAE).SendKeys(Keys.Tab); Thread.Sleep(3000); driver.FindElement(byNovoDocumento).Click(); ConfigPaginas.Frame3(); ConfigPaginas.Frame5(); driver.FindElement(byDtInicial).SendKeys(DtInicial.ToString("dd,MM,yyyy")); driver.FindElement(byDtFinal).SendKeys(DtFinal.ToString("dd,MM,yyyy, HH, mm")); driver.FindElement(byCNPJDestinatario).SendKeys(CNPJ); driver.FindElement(byPesquisarDoc).Click(); driver.FindElement(bySelecionarDoc).Click(); driver.FindElement(byInserirDoc).Click(); ConfigPaginas.Frame3(); ConfigPaginas.Frame(); driver.FindElement(byGravar).Click(); Thread.Sleep(5000); }