public bool InserirDadosPendentes() { bool _result = false; try { util.WaitForElementVisible(InputMatricula, 30); if (InputMatricula.Displayed) { InputMatricula.Click(); Thread.Sleep(300); InputMatricula.SendKeys("000000"); SelectSemestre.Click(); Thread.Sleep(750); var selectElement = new SelectElement(SelectSemestre); selectElement.SelectByIndex(3); _result = true; if (InputPercentual.Displayed) { InputPercentual.Click(); Thread.Sleep(300); InputPercentual.SendKeys("85"); _result = true; } } } catch { } return(_result); }
public bool PreencherAnoSemestre() { bool _result = false; try { util.WaitForElementVisible(SelectAno, 15); if (SelectAno.Displayed) { SelectAno.Click(); Thread.Sleep(300); var ano = new SelectElement(SelectAno); ano.SelectByIndex(2); Thread.Sleep(300); SelectSemestre.Click(); Thread.Sleep(300); var semestre = new SelectElement(SelectSemestre); semestre.SelectByIndex(1); Thread.Sleep(300); _result = true; } } catch { } return(_result); }