public bool Entrar() { bool _result = false; try { util.WaitForElementVisible(BtnEntrar, 60); if (BtnEntrar.Displayed && BtnEntrar.Displayed) { BtnEntrar.Click(); Thread.Sleep(4500); ClassDriver.GetInstance().Driver.FindElement(By.XPath("//*[@id='identifierId']")).SendKeys("*****@*****.**"); Thread.Sleep(350); ClassDriver.GetInstance().Driver.FindElement(By.XPath("//*[@id='identifierNext']")).Click(); Thread.Sleep(700); ClassDriver.GetInstance().Driver.FindElement(By.XPath("//*[@id='password']/div[1]/div/div[1]/input")).SendKeys("982701Ll01"); Thread.Sleep(350); ClassDriver.GetInstance().Driver.FindElement(By.XPath("//*[@id='passwordNext']")).Click(); _result = true; } } catch { } return(_result); }
public bool AcessarTelaLogin() { bool _result = false; util.WaitForElementVisible(BtnEntrar, 30); try { if (BtnEntrar.Displayed) { BtnEntrar.Click(); _result = true; } } catch { } return(_result); }
public bool ClicarEmEntrar() { bool _result = false; try { util.WaitForElementVisible(BtnEntrar, 15); if (BtnEntrar.Displayed) { BtnEntrar.Click(); _result = true; } else { } } catch { } return(_result); }