Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

209
Visualizações
I can't select the same component in different stages of the flow

I have a problem with webdriverIO v7, i'm trying to select the same component in different stages of the flow. The first time i can click on the button, but the second time i can't, have you any idea about this issue I'm using an application developed in React

First click

Second click

This is the spec

await DiscoverPage.clickOnTakeALook();
await PropertyDetailsPage.switchToTab();
await PropertyDetailsPage.clickOnBtnReservePropertyDetails();
await CheckoutPage.selectTypeOfStay();
await CheckoutPage.selectGuest();
await CheckoutPage.clickOnBtnContinue();
await CheckoutPage.setValueInStayRequeriments();
await CheckoutPage.clickOnBtnContinue();
const textPaymentMethods = await 
CheckoutPage.getTextPaymentsMethods();
expect(textPaymentMethods).toEqual('Payment Methods');
});  

This is the button and the function where i use it

get btnContinue() {
return $('[data-testid="btnContinue"]');
}

async clickOnBtnContinue() {
await this.btnContinue.waitForDisplayed({ timeout: 30000 });
await this.btnContinue.waitForClickable({ timeout: 30000 });
await this.btnContinue.click();
}
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda