Simplify native Selenium operations to locate elements in a shorter manner
Project description
[TOC]
CSelenium
作者:LX
开始时间: 2021.12.15
更新时间: 2021.12.20
简化原生selenium操作,以更简短的方式对元素定位 使代码看起来更加清晰.
特点:
代码简洁,
代码具有及联操作
author: LX
Start Time: 2021.12.15
UpdateTime: 2021.12.20
Simplify native Selenium operations to locate elements in a shorter manner Make the code look cleaner.
characteristics:
Clean code,
Code has and associated operations
from Cselenium.CSelenium import ChromeSelenium
def test1():
cs = ChromeSelenium()
cs.get("http://www.baidu.com")
cs.wait(2)
cs.quit()
def test2():
cs = ChromeSelenium()
cs.get("http://www.baidu.com")
cs.id("kw").send_keys("hello world")
cs.wait(2)
cs.quit()
def test3():
cs = ChromeSelenium()
cs.get("http://www.baidu.com")
cs.id("kw").send_keys("hello world")
cs.id("su").click()
cs.wait(2)
cs.quit()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
CSelenium-0.0.4.tar.gz
(10.4 kB
view hashes)
Built Distribution
CSelenium-0.0.4-py3-none-any.whl
(11.2 kB
view hashes)
Close
Hashes for CSelenium-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3332f6aed5360f8bd6ed3e40d3ce29a72e06b53bdb7d20f778768d8efd39fa37 |
|
MD5 | d255595ff55c7f64f15d93022bdd054f |
|
BLAKE2b-256 | 800456300cae5d99196f868f34887a5cae5b4443c9b6715b57a7d54cb34ef03a |