摘要:
1.安装Appium Python Client包 输入命令 pip install Appium-Python-Client 2.安装Appium Server 方法一 : node.js & npm 先安装node ,nodejs安装完毕后,需要配置环境变量,在PATH中添加:D:\Progra 阅读全文
摘要:
from selenium import webdriverfrom selenium.webdriver.common.action_chains import ActionChains #鼠标操作driver = webdriver.Chrome()driver.get("http://www. 阅读全文
摘要:
Selenium提供了8种定位方式。 id name class name tag name link text partial link text xpath css selector id name class name tag name link text partial link text 阅读全文
摘要:
#文件的打开#file_object = open(file_name,access_mode='r')# file_name 相对路径或绝对路径 access_mode 参数可不加,那就默认为r# r为了读取文件而打开文件。文件指针在开头fh=open('E:/gitTest/test/abc.t 阅读全文
摘要:
#%s 用str()函数进行字符串转换 一般常用%s较多#%d 转成有符号的十进制数#%f 转成浮点数(小数部分自然截断)name='jcy'height=170print('我叫' + name + ',身高' + str(height) + '厘米')print('我叫%s,身高%scm' % 阅读全文