-
- All Implemented Interfaces:
-
com.kaspersky.kaspresso.compose.WebComposeProvider
public final class WebComposeProviderImpl implements WebComposeProvider
The implementation of the WebComposeProvider interface.
-
-
Constructor Summary
Constructors Constructor Description WebComposeProviderImpl(Kaspresso kaspresso)
-
Method Summary
Modifier and Type Method Description Unitcompose(WebElementBuilder $self, Long timeoutMs, Long intervalMs, Set<Class<Out Throwable>> allowedExceptions, Function1<ActionsOnWebElementsPack, Unit> block)Composes a block of actions with their web views to invoke on in one composite action that succeeds if at least one of it's parts succeeds. Unitcompose(WebElementBuilder.KWebInteraction $self, WebElementBuilder webElementBuilder, Long timeoutMs, Long intervalMs, Set<Class<Out Throwable>> allowedExceptions, Function1<ActionsPack<WebElementBuilder.KWebInteraction>, Unit> block)Composes a block of actions with their web views to invoke on in one composite action that succeeds if at least one of it's parts succeeds. UnitunsafeCompose(WebElementBuilder $self, Function1<ActionsOnWebElementsPack, Unit> block)Composes a block of actions with their web views to invoke on in one composite action that succeeds if at least one of it's parts succeeds. UnitunsafeCompose(WebElementBuilder.KWebInteraction $self, WebElementBuilder webElementBuilder, Function1<ActionsPack<WebElementBuilder.KWebInteraction>, Unit> block)Composes a block of actions with their web views to invoke on in one composite action that succeeds if at least one of it's parts succeeds. -
-
Constructor Detail
-
WebComposeProviderImpl
WebComposeProviderImpl(Kaspresso kaspresso)
-
-
Method Detail
-
compose
Unit compose(WebElementBuilder $self, Long timeoutMs, Long intervalMs, Set<Class<Out Throwable>> allowedExceptions, Function1<ActionsOnWebElementsPack, Unit> block)
Composes a block of actions with their web views to invoke on in one composite action that succeeds if at least one of it's parts succeeds. Please, be aware of
orsections are executing flakySafely!- Parameters:
timeoutMs- the timeout during which attempts to executeorsections will be made.intervalMs- the interval at which attempts to executeorsections will be made.allowedExceptions- the set of exceptions that allow to continue an attempt oforsections execution.block- the actions to compose.
-
compose
Unit compose(WebElementBuilder.KWebInteraction $self, WebElementBuilder webElementBuilder, Long timeoutMs, Long intervalMs, Set<Class<Out Throwable>> allowedExceptions, Function1<ActionsPack<WebElementBuilder.KWebInteraction>, Unit> block)
Composes a block of actions with their web views to invoke on in one composite action that succeeds if at least one of it's parts succeeds. Please, be aware of
orsections are executing flakySafely!- Parameters:
timeoutMs- the timeout during which attempts to executeorsections will be made.intervalMs- the interval at which attempts to executeorsections will be made.allowedExceptions- the set of exceptions that allow to continue an attempt oforsections execution.block- the actions to compose.
-
unsafeCompose
Unit unsafeCompose(WebElementBuilder $self, Function1<ActionsOnWebElementsPack, Unit> block)
Composes a block of actions with their web views to invoke on in one composite action that succeeds if at least one of it's parts succeeds. Please, be aware of
orsections are executing without flakySafely mechanism even though there may be flakySafely interceptors in your Kaspresso settings!- Parameters:
block- the actions to compose.
-
unsafeCompose
Unit unsafeCompose(WebElementBuilder.KWebInteraction $self, WebElementBuilder webElementBuilder, Function1<ActionsPack<WebElementBuilder.KWebInteraction>, Unit> block)
Composes a block of actions with their web views to invoke on in one composite action that succeeds if at least one of it's parts succeeds. Please, be aware of
orsections are executing without flakySafely mechanism even though there may be flakySafely interceptors in your Kaspresso settings!- Parameters:
block- the actions to compose.
-
-
-
-