Answer the question
In order to leave comments, you need to log in
How to properly get data when automating testing using webdriverio mocha?
here is the full url https://the-internet.herokuapp.com/dynamic_loading/1
describe('Dynamic Loading Page', () => {
it('wait for the hidden element to show', () => {
const btnStart = $("#start button");
const textFinish = $("#finish h4");
const elLoading = $("#loading");
browser.url('/dynamic_loading/1');
btnStart.click();
// browser.pause(5000);
elLoading.waitForDisplayed();
elLoading.waitForDisplayed({reverse: true});
// textFinish.waitForDisplayed();
expect(textFinish.getText()).toEqual("Hello World!");
});
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question