Skip to main content

AI-powered smart locator with retry functionality for Robot Framework using OpenAI

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

Robot Framework DomRetryLibrary

A Robot Framework library with AI-powered fallback for locator variables, enhancing test reliability by using OpenAI to dynamically generate element locators when primary locators fail.

Installation

Install the library using pip:

pip install robotframework-domretrylibrary

Usage

Import the library in your Robot Framework test file:

*** Settings ***
Library           SeleniumLibrary
Library           DomRetryLibrary

Define your locators and AI fallback descriptions:

*** Variables ***
${USERNAME_FIELD}      css=#username_id
${AI_USERNAME_FIELD}   the username input field

Use the AI fallback in your tests:

*** Test Cases ***
Login Test
    Open Browser    https://example.com    chrome
    AI Fallback Locator    Input Text    USERNAME_FIELD    myusername
    Close Browser

API Key Setup

Store your OpenAI API key in a .env file or provide it when initializing the library:

*** Settings ***
Library    DomRetryLibrary    api_key=${OPENAI_API_KEY}

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

robotframework_domretrylibrary-2.8.0.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

robotframework_domretrylibrary-2.8.0-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file robotframework_domretrylibrary-2.8.0.tar.gz.

File metadata

File hashes

Hashes for robotframework_domretrylibrary-2.8.0.tar.gz
Algorithm Hash digest
SHA256 25d530a10c829b912bec0229f866c5937e4ba98d27b5daa14c29be7d2c647a22
MD5 b693ea145e3811e977d5a116cd129898
BLAKE2b-256 20d46335f7ffa057941eafef2d61ef5eaa5a595795f0a1b1bc30d4c9fc8d56fb

See more details on using hashes here.

File details

Details for the file robotframework_domretrylibrary-2.8.0-py3-none-any.whl.

File metadata

File hashes

Hashes for robotframework_domretrylibrary-2.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a9341cac5d04b85866e94e4a6fbc88918d5f45c0b6a503995af5e56e2e23dc59
MD5 687e791c8f3f94e48f1d5f48818c8fdc
BLAKE2b-256 28db7829a88a0c8e03fa8d7af9a4e93486cad48ec67d34f13030aa536a84c8c4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page