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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file robotframework_domretrylibrary-2.6.5.tar.gz.
File metadata
- Download URL: robotframework_domretrylibrary-2.6.5.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83788a6d39fe766bd672aa0d04dff7c623ac3a7692302664a60703df28a15c79
|
|
| MD5 |
aaf6cc69f3db96beef8455671f3435bd
|
|
| BLAKE2b-256 |
1bf7e60a01a599034e5585744aa48630b9445463784db7312530ba851d636e58
|
File details
Details for the file robotframework_domretrylibrary-2.6.5-py3-none-any.whl.
File metadata
- Download URL: robotframework_domretrylibrary-2.6.5-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c8dee987bfa665abd68e3cbd9d648f70f08c6830770e78f46ed1932291f5f17
|
|
| MD5 |
f114786d675038b1fa5f2bb152bcf003
|
|
| BLAKE2b-256 |
074a3e8537b8f09266abb990c842af040586cb8607e074b93dd5322a66544612
|