Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

213
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!