public void selecionarOpcaoFiltrarPrecoDestino() { var filtro = FiltroVooDestino.ObterCamposFiltroPassagens(FiltroVooDestinoEnum.FILTRAR); WaitAtElementsStayVisible(filtro.Key, filtro.Value); MoveToElementPage(filtro.Key, filtro.Value); ClickObject(filtro.Key, filtro.Value); }
public void SelecionarPrecoAteDestino(int indice) { var filtro = FiltroVooDestino.ObterCamposFiltroPassagens(FiltroVooDestinoEnum.PRECOS_ATE); MoveToElementPage(filtro.Key, filtro.Value); WaitAtElementsStayVisible(filtro.Key, filtro.Value); var objElement = GetIWebElement(filtro.Key, filtro.Value); List <IWebElement> opcoes = objElement.FindElements(By.TagName("option")).ToList(); if (opcoes.Count <= indice) { ClickDropDownIndex(filtro.Key, filtro.Value, indice); } }