Interface BrowserSessionStream.Builder

  • Method Details

    • automationStream

      BrowserSessionStream.Builder automationStream(AutomationStream automationStream)

      The stream that enables programmatic control of the browser. This stream allows agents to perform actions such as navigating to URLs, clicking elements, and filling forms.

      Parameters:
      automationStream - The stream that enables programmatic control of the browser. This stream allows agents to perform actions such as navigating to URLs, clicking elements, and filling forms.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • automationStream

      default BrowserSessionStream.Builder automationStream(Consumer<AutomationStream.Builder> automationStream)

      The stream that enables programmatic control of the browser. This stream allows agents to perform actions such as navigating to URLs, clicking elements, and filling forms.

      This is a convenience method that creates an instance of the AutomationStream.Builder avoiding the need to create one manually via AutomationStream.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to automationStream(AutomationStream).

      Parameters:
      automationStream - a consumer that will call methods on AutomationStream.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • liveViewStream

      BrowserSessionStream.Builder liveViewStream(LiveViewStream liveViewStream)

      The stream that provides a visual representation of the browser content. This stream allows agents to observe the current state of the browser, including rendered web pages and visual elements.

      Parameters:
      liveViewStream - The stream that provides a visual representation of the browser content. This stream allows agents to observe the current state of the browser, including rendered web pages and visual elements.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • liveViewStream

      default BrowserSessionStream.Builder liveViewStream(Consumer<LiveViewStream.Builder> liveViewStream)

      The stream that provides a visual representation of the browser content. This stream allows agents to observe the current state of the browser, including rendered web pages and visual elements.

      This is a convenience method that creates an instance of the LiveViewStream.Builder avoiding the need to create one manually via LiveViewStream.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to liveViewStream(LiveViewStream).

      Parameters:
      liveViewStream - a consumer that will call methods on LiveViewStream.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: