No project description provided
Project description
Description
Python library writed by Blues Liu.
Install
// first installation
pip install blues-lib==1.1.1
// upgrade to the newest version
pip install --upgrade blues-lib
sele
BluesDebugChrome
reliant env variables
$env:CHROME_EXE
: the chrome's .exe file path - * required
- such as
C:\Users\creep\AppData\Local\Google\Chrome\Application\chrome.exe
$env:CHROME_DRIVER_EXE
: the chromedriver's .exe file path - * recommended
- such as
D:\devsoftware\Python38\webdriver\chrome\128.0.6613.86\chromedriver.exe
$env.LOGINER_EXECUTOR
: the loginer program path
- dated setting:
D:\devapp\seleniumapp\loginer\Starter.py
input
config = {
'url':'http://deepbluenet.com',
}
arguments = {
'--user-data-dir':'"c:/sele/test3"',
'--remote-debugging-address':'localhost:8003',
}
util
from blues_lib.util.BluesFiler import BluesFiler
print(BluesFiler.exists('dir'))
set/get env variables
// set
[Environment]::SetEnvironmentVariable('LOGINER_EXECUTOR', 'D:\devapp\seleniumapp\loginer\Starter.py','machine')
// get
[Environment]::GetEnvironmentVariable('LOGINER_EXECUTOR','machine')
QA
Selenium Wire CA error
ERROR:cert_verify_proc_builtin.cc(766)] CertVerifyProcBuiltin for at.alicdn.com failed:
----- Certificate i=1 (CN=Selenium Wire CA) -----
Resolve:
- download ca.crt from selenium-wire library
https://github.com/wkeeling/selenium-wire/blob/master/seleniumwire/ca.crt
Execute by powershell scheduled task
task
unRegister-ScheduledTask -TaskName 'naps'
Get-ScheduledTask -TaskName 'naps'
Start-ScheduledTask -TaskName 'naps'
Get-ScheduledTaskInfo -TaskName 'naps'
enable-ScheduledTask -TaskName 'naps'
disable-ScheduledTask -TaskName 'naps'
develop
$arg='-NoProfile -command "& {set-location -path D:\devapp\pyapp\blues-lib-py\test\naps; python .\NAPSTest.py}"' ; $action = New-ScheduledTaskAction -Execute 'powershell.exe' -Argument $arg ; $now = Get-Date ; $interval = New-TimeSpan -Hours 2; $trigger = New-ScheduledTaskTrigger -Once -RepetitionInterval $interval -At $now ; Register-ScheduledTask -Action $action -Trigger $trigger -TaskName 'naps'
exe
$chrome="'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'" ; $arg='-NoProfile -command "& { set-location -path D:\datacross\dist\App; .\App.exe '+$chrome+' }"' ; $action = New-ScheduledTaskAction -Execute 'powershell.exe' -Argument $arg ; $now = Get-Date ; $interval = New-TimeSpan -Hours 1; $trigger = New-ScheduledTaskTrigger -Once -RepetitionInterval $interval -At $now ; Register-ScheduledTask -Action $action -Trigger $trigger -TaskName 'datacross'
install
This develop pc will push pip to officail reigstry ,can't set the mirros
pip install -i https://mirrors.aliyun.com/pypi/simple selenium
pip install -i https://mirrors.aliyun.com/pypi/simple --upgrade selenium
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
blues_lib-1.2.1.tar.gz
(88.0 kB
view details)
Built Distribution
blues_lib-1.2.1-py3-none-any.whl
(178.2 kB
view details)
File details
Details for the file blues_lib-1.2.1.tar.gz
.
File metadata
- Download URL: blues_lib-1.2.1.tar.gz
- Upload date:
- Size: 88.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6507479b8d62eb1d9673937c02da282bb9e0dc877a04d173e881ce18d2071141 |
|
MD5 | 99cbdbbe3ef4d09a6591e7ccc138daaa |
|
BLAKE2b-256 | e9e10e7c05edb293a7d118fced7c4de7703cd957114aa1339cbee448ac8bd1cb |
File details
Details for the file blues_lib-1.2.1-py3-none-any.whl
.
File metadata
- Download URL: blues_lib-1.2.1-py3-none-any.whl
- Upload date:
- Size: 178.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c874ad8d80719c9cf301edfbf9f282d265d1beb448e713259cf85d7d11f06e55 |
|
MD5 | 3078036299c230efca531508e0953b2c |
|
BLAKE2b-256 | 7a2400d6fce7877d337b9b1703fb24eeb031a7c1129695bd04344f4e5f8b9339 |