A Python-based automation tool for browser testing and web interaction using LangChain and OpenAI's GPT models.
This project provides a framework for automated browser testing and web interaction using AI-powered agents. It leverages LangChain and OpenAI's GPT models to perform intelligent web testing and interaction tasks.
- Automated browser testing using AI agents
- Integration with OpenAI's GPT models via LangChain
- Environment variable management with python-dotenv
- Asynchronous operation support
- Python 3.7+
- OpenAI API key
- pip (Python package manager)
- Clone the repository:
git clone <repository-url>
cd browser_use_use- Create and activate a virtual environment:
python -m venv .venv
source .venv/bin/activate # On Windows, use: .venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Create a
.envfile in the project root and add your OpenAI API key:
OPENAI_API_KEY=your_api_key_here
- Modify the
taskvariable inmain.pyto specify your testing requirements - Run the script:
python main.pyThe script will use an AI agent to perform the specified testing tasks on the target website.
See examples for Testing and QA tasks/prompts here: https://github.com/browser-use/awesome-prompts?tab=readme-ov-file#testing-and-qa-prompts
- browser-use: Browser automation library
- langchain_openai: OpenAI integration for LangChain
- asyncio: Asynchronous I/O support
- python-dotenv: Environment variable management
[Add your license information here]