Skip to content

siddhart3000/Web-Agent-Automation-Playwright

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Semi-Autonomous Web Interaction Agent

This repository contains a semi-autonomous web interaction agent built using Python and Playwright.

Overview

The agent opens a real website, observes page elements at runtime, makes decisions based on what it sees, and logs its actions and reasoning.

The goal of this project is not full automation, but to demonstrate decision-making and reasoning in uncertain web environments.

How the Agent Works

  • Launches a browser using Playwright
  • Observes page elements such as headings, links, and buttons
  • Applies simple heuristic rules to decide next actions
  • Logs observations, decisions, and failures with timestamps

Flipkart Analysis

A separate script (flipkart_agent.py) demonstrates how the agent behaves on a highly dynamic, real-world website like Flipkart.

Due to login popups and dynamic DOM updates, some interactions may fail. These failures are logged as insights rather than treated as errors.

Design Choices

  • Heuristic-based decision making instead of hard-coded flows
  • Focus on transparency and debuggability
  • No LLM usage to keep behavior predictable and explainable

Limitations

  • Does not handle login or checkout flows
  • Designed for analysis and reasoning, not full website automation

Future Improvements

  • LLM-based reasoning for complex decision-making
  • Improved recovery strategies for dynamic content

About

Semi-autonomous web interaction agent using Python and Playwright

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages