Skip to content

Commit

Permalink
revert getDoEditor(WebLocator parent) method
Browse files Browse the repository at this point in the history
  • Loading branch information
vculea committed Aug 22, 2024
1 parent ac020fc commit 5a0dcdc
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/main/java/com/sdl/selenium/web/Editor.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -37,11 +36,7 @@ default <T extends Field> T getDoEditor(WebLocator parent) {
input = new WebLocator(container).setTag("iframe");
}
WebLocator finalInput = input;
Result<String> 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;
Expand Down

0 comments on commit 5a0dcdc

Please sign in to comment.