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.9.tar.gz
(10.2 kB
view hashes)
Built Distribution
envuitest-0.0.9-py3-none-any.whl
(10.8 kB
view hashes)
Close
Hashes for envuitest-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae13973426c1e810ddec47f41c1193a57806c9529c9a57a13819fec484170215 |
|
MD5 | cd41b8f5539d7c269c9e6b165d3e2951 |
|
BLAKE2b-256 | 8f3428f9748ec2c714bdefd7d0884bfb1e8a62f717edd3a5b2a8c5c1d554a100 |