diff --git a/src/main/java/com/sdl/selenium/web/Editor.java b/src/main/java/com/sdl/selenium/web/Editor.java index 4be3e279..1b0f09ec 100644 --- a/src/main/java/com/sdl/selenium/web/Editor.java +++ b/src/main/java/com/sdl/selenium/web/Editor.java @@ -2,7 +2,6 @@ import com.sdl.selenium.extjs6.form.*; import com.sdl.selenium.web.form.Field; -import com.sdl.selenium.web.utils.Result; import com.sdl.selenium.web.utils.RetryUtils; import org.slf4j.Logger; @@ -37,11 +36,7 @@ default T getDoEditor(WebLocator parent) { input = new WebLocator(container).setTag("iframe"); } WebLocator finalInput = input; - Result result = RetryUtils.retryUntilOneIs(2, - () -> finalInput.getAttribute("data-componentid", true), - () -> finalInput.getAttribute("data-columnid", true) - ); - String type = result.result(); + String type = RetryUtils.retry(2, () -> finalInput.getAttribute("data-componentid", true)); if (type == null) { log.error("active editor type: 'null'"); return null;