-
- All Implemented Interfaces:
-
io.github.kakaocup.kakao.intercept.Interceptable
public final class WebElementBuilder implements Interceptable<Web.WebInteraction<?>, WebAssertion<?>, Atom<?>>
Class for building WebView element matchers
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classWebElementBuilder.KWebInteraction
-
Field Summary
Fields Modifier and Type Field Description private final WebInteractionDelegateview
-
Constructor Summary
Constructors Constructor Description WebElementBuilder(WebInteractionDelegate view)
-
Method Summary
Modifier and Type Method Description WebInteractionDelegategetView()final UnitwithElement(Locator locator, String value, Function1<WebElementBuilder.KWebInteraction, Unit> interaction)Looks up web view element and performs actions/assertions on it -
-
Constructor Detail
-
WebElementBuilder
WebElementBuilder(WebInteractionDelegate view)
-
-
Method Detail
-
getView
WebInteractionDelegate getView()
-
withElement
final Unit withElement(Locator locator, String value, Function1<WebElementBuilder.KWebInteraction, Unit> interaction)
Looks up web view element and performs actions/assertions on it
- Parameters:
locator- Locator of web view elementvalue- Value to be searched for in web viewinteraction- Tail lambda where you can perform actions/assertions
-
-
-
-