-
- All Implemented Interfaces:
-
com.kaspersky.kaspresso.compose.ComposeProvider
public final class ComposeProviderImpl implements ComposeProvider
The implementation of the ComposeProvider interface.
-
-
Constructor Summary
Constructors Constructor Description ComposeProviderImpl(Kaspresso kaspresso)
-
Method Summary
Modifier and Type Method Description Unitcompose(Long timeoutMs, Long intervalMs, Set<Class<Out Throwable>> allowedExceptions, Function1<ActionsOnElementsPack, Unit> block)Composes a block of actions with their views to invoke on in one composite action that succeeds if at least one of it's parts succeeds. <Type extends BaseActions, BaseAssertions, Interceptable<ViewInteraction, ViewAssertion, ViewAction>> Unitcompose(Type $self, Long timeoutMs, Long intervalMs, Set<Class<Out Throwable>> allowedExceptions, Function1<ActionsPack<Type>, Unit> block)Composes a block of actions on the given view of type Type in one composite action that succeeds if at least one of it's parts succeeds. <Type extends UiBaseActions, UiBaseAssertions, UiInterceptable<UiObjectInteraction, UiOperation<UiObject2>, UiOperation<UiObject2>>> Unitcompose(Type $self, Long timeoutMs, Long intervalMs, Set<Class<Out Throwable>> allowedExceptions, Function1<ActionsPack<Type>, Unit> block)Composes a block of actions on the given view of type Type in one composite action that succeeds if at least one of it's parts succeeds. UnitunsafeCompose(Function1<ActionsOnElementsPack, Unit> block)Composes a block of actions with their views to invoke on in one composite action that succeeds if at least one of it's parts succeeds. <Type extends BaseActions, BaseAssertions, Interceptable<ViewInteraction, ViewAssertion, ViewAction>> UnitunsafeCompose(Type $self, Function1<ActionsPack<Type>, Unit> block)Composes a block of actions with their views to invoke on in one composite action that succeeds if at least one of it's parts succeeds. <Type extends UiBaseActions, UiBaseAssertions, UiInterceptable<UiObjectInteraction, UiOperation<UiObject2>, UiOperation<UiObject2>>> UnitunsafeCompose(Type $self, Function1<ActionsPack<Type>, Unit> block)Composes a block of actions with their views to invoke on in one composite action that succeeds if at least one of it's parts succeeds. -
-
Constructor Detail
-
ComposeProviderImpl
ComposeProviderImpl(Kaspresso kaspresso)
-
-
Method Detail
-
compose
Unit compose(Long timeoutMs, Long intervalMs, Set<Class<Out Throwable>> allowedExceptions, Function1<ActionsOnElementsPack, Unit> block)
Composes a block of actions with their 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
<Type extends BaseActions, BaseAssertions, Interceptable<ViewInteraction, ViewAssertion, ViewAction>> Unit compose(Type $self, Long timeoutMs, Long intervalMs, Set<Class<Out Throwable>> allowedExceptions, Function1<ActionsPack<Type>, Unit> block)
Composes a block of actions on the given view of type Type 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
<Type extends UiBaseActions, UiBaseAssertions, UiInterceptable<UiObjectInteraction, UiOperation<UiObject2>, UiOperation<UiObject2>>> Unit compose(Type $self, Long timeoutMs, Long intervalMs, Set<Class<Out Throwable>> allowedExceptions, Function1<ActionsPack<Type>, Unit> block)
Composes a block of actions on the given view of type Type 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(Function1<ActionsOnElementsPack, Unit> block)
Composes a block of actions with their 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
<Type extends BaseActions, BaseAssertions, Interceptable<ViewInteraction, ViewAssertion, ViewAction>> Unit unsafeCompose(Type $self, Function1<ActionsPack<Type>, Unit> block)
Composes a block of actions with their 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
<Type extends UiBaseActions, UiBaseAssertions, UiInterceptable<UiObjectInteraction, UiOperation<UiObject2>, UiOperation<UiObject2>>> Unit unsafeCompose(Type $self, Function1<ActionsPack<Type>, Unit> block)
Composes a block of actions with their 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.
-
-
-
-