Skip to main content

WEB Automation Framework

Project description

Webrunner

WebRunner is a cross‑platform web automation framework designed to simplify browser automation. It supports multiple browsers, parallel execution, automatic driver management, and generates detailed reports. Built on top of Selenium with additional abstractions, WebRunner helps developers write, run, and manage automation scripts with ease.

Key Features

  • Multi‑browser support: Chrome, Edge, Safari
  • Report generation: JSON / HTML / XML
  • Automatic screenshots and window handling
  • Element interaction: locate, input, click, and more
  • Automatic WebDriver download
  • Cross‑platform: Windows, macOS, Ubuntu, Raspberry Pi
  • Remote automation and project template

Installation

pip install je_web_runner

Requires

python 3.9 or later

| All test in test dir

Quick Start

from je_web_runner import TestObject
from je_web_runner import get_webdriver_manager
from je_web_runner import web_element_wrapper
from je_web_runner import webdriver_wrapper_instance

# 取得 WebDriver 管理器 (這裡使用 Firefox)
# Get webdriver manager (using Firefox here)
driver_wrapper = get_webdriver_manager("firefox")

# 前往 Google 首頁
# Navigate to Google main page
driver_wrapper.webdriver_wrapper.to_url("https://www.google.com")

# 建立測試物件,定位方式為 "name",名稱為 "q" (Google 搜尋框)
# Create a test object, locate by "name", value "q" (Google search box)
google_input = TestObject("q", "name")

# 設定隱式等待 2 秒
# Set implicit wait to 2 seconds
driver_wrapper.webdriver_wrapper.implicitly_wait(2)

# 尋找目前的網頁元素 (Google 搜尋框)
# Find the current web element (Google search box)
webdriver_wrapper_instance.find_element(google_input)

# 點擊目前的網頁元素
# Click the current web element
web_element_wrapper.click_element()

# 在目前的網頁元素中輸入文字 "abc_test"
# Input text "abc_test" into the current web element
web_element_wrapper.input_to_element("abc_test")

# 關閉瀏覽器
# Close the browser
driver_wrapper.quit()

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

je_web_runner-0.0.67.tar.gz (39.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

je_web_runner-0.0.67-py3-none-any.whl (54.2 kB view details)

Uploaded Python 3

File details

Details for the file je_web_runner-0.0.67.tar.gz.

File metadata

  • Download URL: je_web_runner-0.0.67.tar.gz
  • Upload date:
  • Size: 39.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for je_web_runner-0.0.67.tar.gz
Algorithm Hash digest
SHA256 c6b2d8022aaf18c7337d95757492897ec203e31607b3beaca73d7aa74ba93925
MD5 f49873617be7831efe7396539a9180a1
BLAKE2b-256 3365ddeaa09664c20e765ec94d378e7cd258a9fa74de18550767606417a065fd

See more details on using hashes here.

File details

Details for the file je_web_runner-0.0.67-py3-none-any.whl.

File metadata

  • Download URL: je_web_runner-0.0.67-py3-none-any.whl
  • Upload date:
  • Size: 54.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for je_web_runner-0.0.67-py3-none-any.whl
Algorithm Hash digest
SHA256 d897b21bc5dc67cd9d7a8ffe7a21aca604754ab3b0b1a51e58d9f3d79c1b4c03
MD5 e8b412b1caca2e4c5b42a3b124f0148d
BLAKE2b-256 c542558607599ddbdd4760841429b483e746838ba076e52acbdd0292315ce1e1

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