Skip to content

Reference

Browser Support

Alumnium works by building an accessibility tree of the webpage. Unfortunately, there is no standard API in browsers to provide this tree. Due to this limitation, the current version of Alumnium only works in Chromium-based browsers such as Google Chrome, Microsoft Edge, Opera, and others.

Flakiness

Alumnium provides some basic handling of flakiness in the tests, it will be improved over time:

  1. retry upon an exception when doing;
  2. retry upon an assertion error if the page contents are loading when checking.

These two mechanisms are enough for simple scenarions but will be improved over time.

Environment Variables

The following environment variables can be used to control the behavior of Alumnium.

ALUMNIUM_DEBUG

Set to 1 to enable debug logs and print them to stdout.

ALUMNIUM_MODEL

Select AI provider and model to use.

ValueLLMNotes
anthropicclaude-3-haiku-20240307Anthropic API.
azure_openaigpt-4o-miniSelf-hosted Azure OpenAI API. Recommended model version is 2024-07-18.
aws_anthropicanthropic.claude-3-haiku-20240307-v1:0Serverless Amazon Bedrock API.
aws_metaus.meta.llama3-2-90b-instruct-v1:0Serverless Amazon Bedrock API.
googlegemini-1.5-flash-002Google AI Studio API.
openaigpt-4o-mini-2024-07-18OpenAI API.

ALUMNIUM_RPM_LIMIT

Delay each request to the LLM to avoid exceeding the rate limit for requests.

For instance, if the limit is 10 requests per minute, Alumnium will delay each request for 6 seconds (60 seconds / 10 requests = 6 seconds/request) to ensure the system stays within the allowed usage.