Now my tests look like this
wait.until(ExpectedConditions.elementToBeClickable(webSite.mainPage().PlusInsideSection)); webSite.mainPage().PlusInsideSection.click(); wait.until(ExpectedConditions.elementToBeClickable(webSite.mainPage().ElementParagraph)); webSite.mainPage().ElementParagraph.click(); wait.until(ExpectedConditions.elementToBeClickable(webSite.mainPage().Plus)); webSite.mainPage().Plus.click(); wait.until(ExpectedConditions.elementToBeClickable(webSite.mainPage().AddPrebuilt)); webSite.mainPage().AddPrebuilt.click(); wait.until(ExpectedConditions.elementToBeClickable(webSite.mainPage().AddBanner)); webSite.mainPage().AddBanner.click(); That is, waiting has to write before each action. Is there a way to somehow wrap / override the click () method so that you do not have to manually set the wait each time? If so, how to implement it?