Exemplo n.º 1
0
        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 PreencherMatricula()
        {
            bool _result = false;

            try
            {
                util.WaitForElementVisible(InputMatricula, 15);
                if (InputMatricula.Displayed)
                {
                    InputMatricula.Click();
                    Thread.Sleep(300);
                    InputMatricula.SendKeys(massa.percentual);
                    Thread.Sleep(300);
                    //InputPerc.Click();
                    //Thread.Sleep(300);
                    //InputPerc.SendKeys(massa.percentual);
                    //Thread.Sleep(300);
                    _result = true;
                }
            }
            catch
            {
            }
            return(_result);
        }