Skip to content

Commit d419e22

Browse files
author
NikolayAvramov
committed
Do not wait when finding multiple elements
1 parent e8fa6d3 commit d419e22

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bellatrix.web/src/main/java/solutions/bellatrix/web/components/WebComponent.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ protected <TComponent extends WebComponent, TFindStrategy extends FindStrategy>
816816

817817
protected <TComponent extends WebComponent, TFindStrategy extends FindStrategy> List<TComponent> createAll(Class<TComponent> componentClass, TFindStrategy findStrategy) {
818818
CREATING_ELEMENTS.broadcast(new ComponentActionEventArgs(this));
819-
findElement();
819+
// findElement();
820820

821821
List<TComponent> componentList = new ArrayList<>();
822822

bellatrix.web/src/main/java/solutions/bellatrix/web/components/shadowdom/ShadowDomService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ private static String[] getCss(Callable<String[]> callable, String locator) {
126126
}
127127

128128
if (foundElements == null || foundElements.length == 0) {
129-
throw new IllegalArgumentException();
129+
// continue
130130
}
131131
}, Duration.ofSeconds(ConfigurationService.get(WebSettings.class).getTimeoutSettings().getElementWaitTimeout()), Duration.ofSeconds(1), false)) {
132132
try {

0 commit comments

Comments
 (0)