Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

206
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda