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.6.9.tar.gz (12.1 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.6.9-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for robotframework_domretrylibrary-2.6.9.tar.gz
Algorithm Hash digest
SHA256 3b3ec4a62908b308f2251eb5ec1867248f79847b59e3db04995e24e14360ef35
MD5 b4166be1123741d87b8e94d5e931633c
BLAKE2b-256 7bc58f6270bf67391d3661843da1a23f6495a8f2cf9e8eef93cf935e2212e44f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for robotframework_domretrylibrary-2.6.9-py3-none-any.whl
Algorithm Hash digest
SHA256 7a5b9c191c436a906be2f37ee42b1f85ca4eff224ae0214dabf64e46ef51191e
MD5 74cc87aca9e27d67a0f98c91ed9e2778
BLAKE2b-256 3ca47efe348542e5f54bb34503dec3a8ca051b8cf6e246a930f6c468f6e24246

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