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.99.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_dev-0.0.99-py3-none-any.whl (54.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: je_web_runner_dev-0.0.99.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_dev-0.0.99.tar.gz
Algorithm Hash digest
SHA256 91ac64b6ddf8d2f0cfb346bd586abe7549f937e309b7a111f702a8f1f70e4609
MD5 4a99e7c1fff2227cb01f6382e381a73c
BLAKE2b-256 13772b97d1580ba4bd0912a1698734d0354680f153488e9c81f703ab39e1b1e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for je_web_runner_dev-0.0.99-py3-none-any.whl
Algorithm Hash digest
SHA256 8def969e1ef817f26343c1f4ed8119c4e4375690109b18015d9fa46865954f84
MD5 de76e69b2e6222d78e8ae9c9ccc5e645
BLAKE2b-256 78de3314141995272c9d3b769bcddc3fe9dce91a04c71dbf4ca41acec50c7600

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