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_dev-0.0.97.tar.gz (39.9 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_dev-0.0.97-py3-none-any.whl (54.2 kB view details)

Uploaded Python 3

File details

Details for the file je_web_runner_dev-0.0.97.tar.gz.

File metadata

  • Download URL: je_web_runner_dev-0.0.97.tar.gz
  • Upload date:
  • Size: 39.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for je_web_runner_dev-0.0.97.tar.gz
Algorithm Hash digest
SHA256 74c33b6a0dfa7de3859dd8f71ad1043b446f87b751c7d63d15ebf1eed1053701
MD5 6b4bf63ec0ad50b71fb1073025d31ddf
BLAKE2b-256 898c09be8f1f823e96fee16250abd559520f3e1ea49a668ccd221664486a16ff

See more details on using hashes here.

File details

Details for the file je_web_runner_dev-0.0.97-py3-none-any.whl.

File metadata

File hashes

Hashes for je_web_runner_dev-0.0.97-py3-none-any.whl
Algorithm Hash digest
SHA256 07130f2d8ed9b393d6ca0bd145cee5d2a0580244ca78a3ff71d759fa7d9ad13e
MD5 766e1097fc8defe2d6f33959cdff713e
BLAKE2b-256 79181f3f7bf8ed070b76bcdd4e5e2a2b3d39a2114c17268578400bdf9ed3b0ba

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