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.7.3.tar.gz (13.4 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.7.3-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for robotframework_domretrylibrary-2.7.3.tar.gz
Algorithm Hash digest
SHA256 0611767318d33e25651997623ad6f88ce0106ec4a893aeca041a281e644b6f61
MD5 e3a29112f9c2f2de625e22814f216220
BLAKE2b-256 d89c2526f35bb4a539bd35a3a6888eb55806e2350de29324902d481a4722ee76

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for robotframework_domretrylibrary-2.7.3-py3-none-any.whl
Algorithm Hash digest
SHA256 68329b3c96a9af07b2350ee18484c24884d1f2c8b5b8a3ea2f9319bb60c1f72c
MD5 380f0dc97ab8e187300f27eaae420d5f
BLAKE2b-256 b38cf9ad40abd2f19eeb447a1544ebcdbc602c230598177a0e1f477098ae016d

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