@Test
public void clickWithRetriesSuccess() throws Exception {

    when(browser.clickOn(any())).thenThrow(NoSuchElementException.class).thenThrow(NoSuchElementException.class).thenReturn(webel);
    Operations.doWithRetries(() -> browser.clickOn(div), 5, 10);
    verify(browser, times(3)).clickOn(div);
}