Web Auto Test Framework with Selenium
Project description
Salesforce Web Driver
Web Auto Test Framework with Selenium For Salesforce Lightning App
Function APIS:
- login: login Salesforce's Scratch Org
- open_url: open target url
- click_element: click element by visibility text
- set_value: set value to element by it's label or visibility text
- check_table_value: check table data by record data and row_index
Example:
from selenium import webdriver
chrome_options = webdriver.ChromeOptions()
prefs = {"profile.default_content_setting_values.notifications" : 2}
chrome_options.add_experimental_option("prefs",prefs)
driver = webdriver.Chrome('/your path/chrome_driver/chromedriver', chrome_options=chrome_options)
login(driver, 'test@example.com', 'password')
open_url(driver, 'https://builder-playground-4380-dev-ed.lightning.force.com/lightning/n/PC_DivisionTab')
record = {'体系编号': 'DIV007'}
check_table_value(driver, record, False)
click_element(driver, '新建体系', '')
check_table_value(driver, record, True)
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
envuitest-0.0.15.tar.gz
(11.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file envuitest-0.0.15.tar.gz.
File metadata
- Download URL: envuitest-0.0.15.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
caad9d2c08136cb6c34930b01036a84ae0e21740652ae1e2afbf6a38b58c9402
|
|
| MD5 |
3444ffaad4dec476425a2fb7848ad5bb
|
|
| BLAKE2b-256 |
d9925f4d888c17a934f2d5c83287d4dfc5c77158b9ec391c355b3ffd36b76482
|
File details
Details for the file envuitest-0.0.15-py3-none-any.whl.
File metadata
- Download URL: envuitest-0.0.15-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47d430b97293f3acad654d30fb2eab45829fed33b7011edc8f6bd5b2cb089a5e
|
|
| MD5 |
416fdef691ceac4d196fd69069fc1c0e
|
|
| BLAKE2b-256 |
704422648a8f9614f6de3136422b6607744821ce653dae3aea6835acf56243ad
|