摘要: from selenium import webdriverdriver = webdriver.Chrome()#前提,在当前页面当中,不管用哪种定位方式,一定要是唯一的#八种定位方式:#id、#name、#class_name、#input3(tag_name、link_text、partial 阅读全文
posted @ 2018-08-10 18:07 简单の自我 阅读(1017) 评论(0) 推荐(0) 编辑
摘要: # 模块,导包,引用# importprint("import ...-----------")import time#print(help(time))print(time.ctime())# from ... import ...print("from ... import ...-----------")from time import ctime,sleep#print(help(time... 阅读全文
posted @ 2018-07-31 18:10 简单の自我 阅读(147) 评论(0) 推荐(0) 编辑
摘要: # 函数:不创建类的情况下定义一个语句体print("def函数 ")def add(a,b): return a + bc = add("3","5")print(c)def add(a=1,b=1): return a + bc = add()print(c)# 函数,对a传参def add(a 阅读全文
posted @ 2018-07-31 14:34 简单の自我 阅读(169) 评论(0) 推荐(0) 编辑
摘要: print("Hello World")s = "tom"i = "22"print("name:" + s + ",age:" + i)ss = "tom"ii = 22print("name:" + ss + ",age:" +str(ii) )print("name:%s,age:%d" %( 阅读全文
posted @ 2018-07-27 19:14 简单の自我 阅读(331) 评论(0) 推荐(1) 编辑
摘要: python+selenium安装 python下载地址:https:www.python.org 安装完成进入cmd,输入python 如果cmd找不到,需要添加环境变量 selenium安装地址:https://pypi.org 添加环境变量python/Scripts https://pypi 阅读全文
posted @ 2018-07-24 17:59 简单の自我 阅读(889) 评论(0) 推荐(1) 编辑
摘要: selenium1.0 =IDE+grid+RCselenium IDE firefox浏览器插件selenium grid 分布式selenium RC Remote Control 远程控制,selenium的核心 工作原理:python (selenium api) >selenium ser 阅读全文
posted @ 2018-07-23 10:27 简单の自我 阅读(198) 评论(0) 推荐(1) 编辑