原创 Python requests--include post files and proxy

https://blog.csdn.net/qq_37616069/article/details/80376776 0. install requests pip install requests 1. Get request re

原创 Selenium遇到的問題3 Frame定位不到163的元素

Selenium定位不到元素 報錯:selenium.common.exceptions.NoSuchElementException 原代碼: #coding:utf-8 from selenium import webdriver

原创 Selenium遇到的問題2 下載了chromedriver,並放在Path目錄下,還是顯示錯誤

Selenium遇到的問題2——下載了chromedriver,並放在Path目錄下,還是顯示錯誤 如下: 用Selenium打開谷歌瀏覽器(版本59),需要對應的chromedriver, 我下載了對應的chromedriver

原创 數據庫的基本操作

數據庫的基本操作 數據庫的操作: #增加數據庫 create database database_name; #查看數據庫 show databases; use database_name; #刪除數據庫 drop databa

原创 JMeter配置client、server過程

JMeter配置client、server過程: 1. 下載apache-jmeter.4.0 for linux 2. 存到 /usr/jmeter下解壓,unzip *.zip 3. 修改properties文件,避免Caused b

原创 BaiduMap基礎

BaiduMap baiduMap; MapView mapView=(MapView)findViewById(R.id.mapView); ba

原创 Python--spark job--linux

Just for recording Mission: Make python project as a spark job,  triggered by upstream spark job. python run spark job:

原创 BaiduMap編程前準備工作

要開始一個百度地圖app,可參考百度地圖提供的官方文檔進行學習 http://lbsyun.baidu.com/index.php?title=%E9%A6%96%E9%A1%B5 開發前的步驟: 1、申請密鑰 地址:http://lb

原创 Windows遇到的一些小問題

Ques1: windows 運行pip install出錯 Solu: cmd中敲命令:python -m ensurepip 得到pip的setuptools 然後就可以用:easy_install pip pip install p

原创 Selenium遇到的問題1 Pycharm不支持中文編碼

Selenium處於剛學習階段,剛開始使用Pycharm這個Python的IDE 出現不支持中文編碼的問題 解決步驟: 1、Default Setting-File Encoding-編碼格式變爲UTF-8 2、在.py文件最上方加

原创 Selenium學習一——批量操作句柄切換頁面

#創建工作簿 wbk = xlwt.Workbook(encoding='utf-8', style_compression=0) #創建工作表 sheet = wbk.add_sheet('sheet 1', cell_overwrit

原创 自動化重啓JMeter Server

使用paramiko類 import paramiko try: s = paramiko.SSHClient() s.set_missing_host_key_policy(paramiko.AutoAddPolicy(

原创 JMeter分佈式壓力測試遇到的問題彙總

Ques1: client 連接server失敗   Ping server ip 成功 Ping server ip+port 失敗 Solu: 防火牆禁止訪問端口,在每個server上運行 iptables -F Ques2: jm

原创 Selenium學習五——Java獲取SVG元素

最近有個項目做網頁自動化測試,遇到了SVG元素定位的問題,總共算三個問題,記錄一下。 問題一:SVG元素定位 String xpath = "//.../*[name()='svg']"; String text = driver.fi

原创 Python:爲logging加點顏色

代碼原理很簡單,在需要加顏色的地方加上控制顏色顯示的語義即可。 第三方模塊 coloredlogs # Create a logger object. import logging logger = logging.getLogger(