k8s部署管理docker镜像
参考: K8S deployment.yml配置详解: https://blog.csdn.net/random_w/article/details/80612881 minikube安装详解: https://mp.weixin.qq.com/s/QIsQoWmuZbmhXViLXxBN9A k8s中文网站: https://www.kubernetes.org.cn/docs
Done is better than perfect...
参考: K8S deployment.yml配置详解: https://blog.csdn.net/random_w/article/details/80612881 minikube安装详解: https://mp.weixin.qq.com/s/QIsQoWmuZbmhXViLXxBN9A k8s中文网站: https://www.kubernetes.org.cn/docs
https://hub.docker.com/r/markadams/chromium-xvfb-py3 https://www.cnblogs.com/xiao-xue-di/p/11474669.html https://my.oschina.net/jamesview/blog/2994112
python调用 jenkins动态build服务
Google Chrome 77.0.3865.75configure
ChromeDriver 77.0.3865.40
安装Xvfb后启动虚拟显示器
Xvfb -ac :0 -screen 0 1920x1080x24
export DISPLAY=:0
Q: NOTE: You must install tkinter on Linux to use MouseInfo. Run the following: sudo apt-get install python3-tk python3-dev
A: python3.6安装tk/tcl:
1.下载tcl包和tk包 https://www.tcl.tk/software/tcltk/download.html
2.安装包https://blog.csdn.net/and_december/article/details/71178539
# coding:utf-8
from selenium import webdriver
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--headless')
chrome_options.add_argument('--no-sandbox')
chrome_options.add_argument('--disable-dev-shm-usage')
chrome_options.add_argument('--remote-debugging-port=9222')
browser = webdriver.Chrome(chrome_options=chrome_options)
driver.get("https://www.baidu.com")
https://stackoverflow.com/questions/3235013/how-to-use-jquery-in-selenium
https://stackoverflow.com/questions/21764770/typeerror-got-multiple-values-for-argument
sudo yum install postgresql postgresql-devel
#libkml Support
##---------This part is depending on prebuilt libraries. In the future we may replace this by compiling them from source.
wget http://s3.amazonaws.com/etc-data.koordinates.com/gdal-travisci/install-libkml-r864-64bit.tar.gz
tar xzf install-libkml-r864-64bit.tar.gz
#Copy these required files to /usr/local
sudo cp -r install-libkml/include/* /usr/local/include
sudo cp -r install-libkml/lib/* /usr/local/lib
sudo ldconfig
#download GDAL
wget http://download.osgeo.org/gdal/2.2.3/gdal-2.2.3.tar.gz
#Untar
tar xzf gdal-2.2.3.tar.gz
cd gdal-2.2.3
#Compile from source
./configure --with-libkml
make
make install
runner = HTMLTestRunner.HTMLTestRunner(*****)
runResult = runner.run(suite)
passCount = runResult.success_count
errorCount = runResult.error_count
failureCount = runResult.failure_count``
把csv_file = open('result.csv', 'wb')改成
csv_file = open('result.csv', 'w', newline='')
http://blog.usetrace.com/selenium-how-to-automate-html5-input-range-element-on-webdriver/