Class ActionComposerBuilder

java.lang.Object
org.kquiet.browser.ActionComposerBuilder

public class ActionComposerBuilder extends Object
ActionComposerBuilder is resposible to build a ActionComposer in a fluent way. New ActionComposerBuilder instance is required before building a ActionComposer.

Below example constructs an ActionComposer that searches for the link to source code of ActionComposerBuilder, and then click it:

 ActionComposer actionComposer = new ActionComposerBuilder()
    .prepareActionSequence()
        .getUrl("https://github.com/kquiet/auto-browser/find/main")
        .waitUntil(ExpectedConditions.elementToBeClickable(By.id("tree-finder-field")), 3000)
        .sendKey(By.id("tree-finder-field"), "ActionComposerBuilder")
        .waitUntil(ExpectedConditions.elementToBeClickable(
            By.xpath("//mark[text()='ActionComposerBuilder']")), 3000)
        .click(By.xpath("//mark[text()='ActionComposerBuilder']"))
        .returnToComposerBuilder()
    .buildBasic();
 

More complicated ActionComposer can be built through built-in actions. ActionComposerBuilder includes inner builders for these actions as well.

Author:
Kimberly