I write some automation code in Selenide for practice.
I have following problem: i don't know whats going on, but sometimes on method clickFillExpertsApplication Selenide clicks on localized button, loading of new page is starting, but after 1 sec loading of new page is terminated, page stops on view with the element I wanted to click and program gives me exception (element from next step (on next page) not found). Do You have any experience with 'terminated' clicks?
I tried to avoid it by adding second click in function, but probably this is not the perfect solution it sometimes fails
fillExpertsApplication.shouldBe(enabled).click();
Thread.sleep(100);
if (fillExpertsApplication.isDisplayed()){
log.info("retry fill experts click");
fillExpertsApplication.click();
}
Maybe problem is in my project, maybe I wrote something silly out there, i dont know