摘要:
layer.msg 是layer所提供的一种弹窗形式 实现过程: 首先要在浏览器中确定好要用来定位的标签,且因为msg模块自带的延时几秒就消失的功能,用chrome测试时记得出现弹窗按下F8暂停网页程序的加载,方便定位信息。 1 driver.implicitly_wait(10) 2 a = dr 阅读全文
posted @ 2019-09-11 16:39
阿宅gogo
阅读(528)
评论(0)
推荐(0)
摘要:
获取元素:by_xpath 页面元素等待:WebDriverWait 1 from selenium import webdriver 2 from selenium.webdriver.common.by import By 3 from selenium.webdriver.support.ui 阅读全文
posted @ 2019-09-11 16:38
阿宅gogo
阅读(150)
评论(0)
推荐(0)
该文被密码保护。 阅读全文
posted @ 2019-09-11 16:36
阿宅gogo
阅读(1)
评论(0)
推荐(0)
摘要:
1. 绝对定位: 此方法最为简单,具体格式为 xxx.find_element_by_xpath("绝对路径") 具体例子: xxx.find_element_by_xpath("/html/body/div[x]/form/input") x 代表第x个 div标签,注意,索引从1开始而不是0 此 阅读全文
posted @ 2019-09-11 16:35
阿宅gogo
阅读(1167)
评论(0)
推荐(0)
摘要:
https://blog.csdn.net/huilan_same/article/details/52246012 阅读全文
posted @ 2019-09-11 16:34
阿宅gogo
阅读(134)
评论(0)
推荐(0)
摘要:
1 import cx_Oracle 2 #conn = cx_Oracle.connect('payment_sx/payment_sx0703@172.16.39.8/ecom') 3 4 conn = cx_Oracle.connect('paymentmrl/paymentmrl0528@1 阅读全文
posted @ 2019-09-11 16:27
阿宅gogo
阅读(97)
评论(0)
推荐(0)
摘要:
1. 打印字符串 print ("His name is %s"%("Aviad")) 效果: 2.打印整数 print ("He is %d years old"%(25)) 效果: 3.打印浮点数 print ("His height is %f m"%(1.83)) 效果: 4.打印浮点数(指 阅读全文
posted @ 2019-09-11 16:26
阿宅gogo
阅读(123)
评论(0)
推荐(0)
摘要:
http://www.runoob.com/python3/python3-data-structure.html 列表 Python中列表是可变的,这是它区别于字符串和元组的最重要的特点,一句话概括即:列表可以修改,而字符串和元组不能。 以下是 Python 中列表的方法: 方法描述 list.a 阅读全文
posted @ 2019-09-11 16:23
阿宅gogo
阅读(211)
评论(0)
推荐(0)
摘要:
1 import xlrd 2 #导入Excel库 3 4 class xls: 5 6 def __init__(self,url,row,col,num = 0): 7 self.url = url 8 self.row = row 9 self.col = col 10 self.num = 阅读全文
posted @ 2019-09-11 16:22
阿宅gogo
阅读(163)
评论(0)
推荐(0)
摘要:
logging.basicConfig函数各参数: filename:指定日志文件名; filemode:和file函数意义相同,指定日志文件的打开模式,'w'或者'a'; format:指定输出的格式和内容,format可以输出很多有用的信息, 参数:作用 %(levelno)s:打印日志级别的数 阅读全文
posted @ 2019-09-11 16:20
阿宅gogo
阅读(80)
评论(0)
推荐(0)
浙公网安备 33010602011771号