Class ActionSequenceBuilder

java.lang.Object
io.github.jspinak.brobot.fluent.ActionSequenceBuilder

public class ActionSequenceBuilder extends Object
Fluent API builder for creating DSL-compatible action sequences.

This builder allows developers to programmatically create automation sequences that are fully compatible with the Brobot DSL. Each method call creates ActionStep objects that are added to an internal TaskSequence.

Example usage:

 // Assuming userField, passwordField, submitButton are StateImage objects
 // and username, password are StateString objects
 InstructionSet loginSequence = Brobot.buildSequence()
     .withName("login")
     .find(userField)
     .thenClick()
     .thenType(username)
     .find(passwordField)
     .thenClick()
     .thenType(password)
     .find(submitButton)
     .thenClick()
     .build();
 
  • Constructor Details

    • ActionSequenceBuilder

      public ActionSequenceBuilder()
  • Method Details