1、BasePage,所有Page类的父类,主要分装find元素查找方法,配合显示等待,不用每个元素查找都使用一次显示等待,driver初始化 #coding=utf-8 import os from datetime import datetime import allure from appiu ...
分类:
移动开发 时间:
2020-06-09 00:03:25
阅读次数:
163
一、浏览器驱动 1、将webdriver驱动放到python安装目录的根目录下,不需要指定驱动路径 from selenium import webdriver driver = webdriver.Chrome() # webdriver驱动放到python安装目录的根目录下就不需要指定驱动路径 ...
分类:
Web程序 时间:
2020-06-08 23:51:55
阅读次数:
105
1、基本操作 1.1 cd (change directory) 格式:cd <路径> 功能:cd指令后面跟一个路径,有于切换到当前用户所在的路径,其中路径可以是绝对路径,也可以是相对路径。 使用示例: cd /system/bin 表示切换到/system/bin路径下 cd logs 表示切换到 ...
分类:
系统相关 时间:
2020-06-08 23:21:53
阅读次数:
89
以百度搜索首页为例,我们要定位到搜索输入框的话,应该如何写呢? 单属性查找 # 1.用 标签名 定位查找 driver.find_element_by_css_selector("input") # 2.用 id 属性定位查找 driver.find_element_by_css_selector( ...
分类:
Web程序 时间:
2020-06-08 20:54:04
阅读次数:
303
datasource.properties数据源 #数据源 datasource.peoperties jdbc.driver=com.mysql.jdbc.Driver jdbc.url=jdbc:mysql://localhost:3306/ssmbuild?useSSL=true&useUni ...
分类:
数据库 时间:
2020-06-08 19:27:00
阅读次数:
75
WebDriver操作Cookie的方法如下: get_cookies():获得所有Cookie get_cookie(name):返回字典中key为“name”的Cookie from selenium import webdriver driver = webdriver.Chrome() dr ...
分类:
其他好文 时间:
2020-06-08 17:29:00
阅读次数:
102
从FFmpeg 3.0 开始 , 使用了很多新接口, 在一些基本用法上,编译会看见很多的warning,类似 “ warning: ‘AVStream::codec’ is deprecated (declared at /usr/local/ffmpeg/include/libavformat/a ...
1、配置文件 spring.second-datasource.driver-class-name= spring.second-datasource.jdbc-url= spring.second-datasource.username= spring.second-datasource.pass ...
分类:
数据库 时间:
2020-06-08 14:51:33
阅读次数:
360
1. 判断字符串是否由字母、数字、空格组成 Boolean isNo = "abc".matches("^[a-z0-9A-Z\\s]+$") 2. 判断字符串是否包含浮点数+”未支付“ Boolean isNo = Pattern.compile("\\d+\\.{0,1}\\d+未支付").ma ...
分类:
其他好文 时间:
2020-06-08 14:22:50
阅读次数:
47
Given a string s and a non-empty string p, find all the start indices of p's anagrams in s. Strings consists of lowercase English letters only and the ...
分类:
其他好文 时间:
2020-06-08 11:06:25
阅读次数:
76