Skip to content

ssainis/selenium_web_automation_tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Selenium Web Automation Tools

A Python package for creating Selenium-based web automation workflows using PocketFlow.

Created by Antigravity

Installation

pip install selenium_web_automation_tools

Usage

This package provides CustomScraper and CustomInputter nodes that can be used in PocketFlow workflows.

Example

from pocketflow import Flow
from selenium_web_automation_tools.custom_scraper import CustomScraper

# Create a flow
flow = Flow("My Automation Flow")

# Create a scraper node
scraper = CustomScraper(
    name="MyScraper",
    url="https://example.com",
    description="Scrape the main title"
)

# Add to flow
flow.add_node(scraper)

# Run
flow.run(shared={})

CustomInputter Example

from pocketflow import Flow
from selenium_web_automation_tools.custom_inputter import CustomInputter

# Create a flow
flow = Flow("Login Automation")

# Create an inputter node
inputter = CustomInputter(
    name="LoginForm",
    url="https://example.com/login",
    input_data={
        "username": "myuser",
        "password": "mypassword"
    }
)

# Set as start node
flow = Flow(start=inputter)

# Run
flow.run(shared={})

Demo

See the demo/ directory for a complete example using a YAML configuration.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages