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)
Release files for envuitest 0.0.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| envuitest-0.0.15.tar.gz | 11.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| envuitest-0.0.15-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.9 kB
Release files / envuitest-0.0.15.tar.gz
| Download URL | envuitest-0.0.15.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
caad9d2c08136cb6c34930b01036a84ae0e21740652ae1e2afbf6a38b58c9402
|
|
BLAKE2b-256 checksum How to use checksums |
d9925f4d888c17a934f2d5c83287d4dfc5c77158b9ec391c355b3ffd36b76482
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / envuitest-0.0.15-py3-none-any.whl
| Download URL | envuitest-0.0.15-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
47d430b97293f3acad654d30fb2eab45829fed33b7011edc8f6bd5b2cb089a5e
|
|
BLAKE2b-256 checksum How to use checksums |
704422648a8f9614f6de3136422b6607744821ce653dae3aea6835acf56243ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|