Package 

Interface WebComposeProvider


  • 
    public interface WebComposeProvider
    
                        

    The interface to provide the composing actions and assertions on web views functionality.

    • Method Summary

      Modifier and Type Method Description
      abstract 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.
      abstract 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.
      abstract 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.
      abstract 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.
      • Methods inherited from class com.kaspersky.kaspresso.compose.WebComposeProvider

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • compose

         abstract 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 or sections are executing flakySafely!

        Parameters:
        timeoutMs - the timeout during which attempts to execute or sections will be made.
        intervalMs - the interval at which attempts to execute or sections will be made.
        allowedExceptions - the set of exceptions that allow to continue an attempt of or sections execution.
        block - the actions to compose.
      • compose

         abstract 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 or sections are executing flakySafely!

        Parameters:
        timeoutMs - the timeout during which attempts to execute or sections will be made.
        intervalMs - the interval at which attempts to execute or sections will be made.
        allowedExceptions - the set of exceptions that allow to continue an attempt of or sections execution.
        block - the actions to compose.
      • unsafeCompose

         abstract 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 or sections are executing without flakySafely mechanism even though there may be flakySafely interceptors in your Kaspresso settings!

        Parameters:
        block - the actions to compose.
      • unsafeCompose

         abstract 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 or sections are executing without flakySafely mechanism even though there may be flakySafely interceptors in your Kaspresso settings!

        Parameters:
        block - the actions to compose.