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.66.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-0.0.66-py3-none-any.whl (54.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: je_web_runner-0.0.66.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-0.0.66.tar.gz
Algorithm Hash digest
SHA256 c1fed027860f3cb1116ee62359b9086c154a24873c6a77398fea6ec3a14b65bd
MD5 512c08de03e7ea51a0da2db80060957b
BLAKE2b-256 5cd8b92453246abedeaff748d04daf6a69c05e84e041da8e9fdf1613d646c9a6

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for je_web_runner-0.0.66-py3-none-any.whl
Algorithm Hash digest
SHA256 c74fe5f4131426abe5f02b95e3f235c378dc80fe5ef8f40dac57c763bf897e1d
MD5 10777209ba5f11fd28555b82854d98ad
BLAKE2b-256 b9ddb67157bcfef709e607fac7e687fa9dc8af551dcf26fb9588ff781d7dacd7

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