摘要: python的介绍 1、python是一个编程语言; 2、python的版本:2.0版本,3.0版本 ,python中最新版本 3.1263、python下载地址:https://www.python.org/downloads/ 4、下载后得到安装包,我们已经下载好了 点击安装之前,我们在盘符下新 阅读全文
posted @ 2024-09-20 19:09 wu33169 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 9 8+1 0000 1001 4 0000 0100 print(a&b) 真真都取 其他不取 0000 0000 0 print(a|b) 都取 假假不取 0000 1101 13 print(a^b) 都取 真真假假不取 0000 1101 13 print(~a) -10 a=13 8+4+ 阅读全文
posted @ 2024-09-20 19:08 wu33169 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 函数 函数是组织好的,可重复使用,用来实现单一,或相关联功能的代码段 def 函数名() 1无参数 def hs1(): print(1) hs1() #1 2有单个参数 def hs1(a): print(a+1) hs1(2) #3 3有多个参数 def hs1(a,b): print(a+b) 阅读全文
posted @ 2024-09-20 19:08 wu33169 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 自动化用例 案例:http://cms.duoceshi.cn/manage/login.do 一、编写用例 (1)登录 from selenium import webdriver from time import * from selenium.webdriver.common.keys imp 阅读全文
posted @ 2024-09-20 19:07 wu33169 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 一、alert 弹框 from selenium import webdriver from time import * dx=webdriver.Chrome() url=r"file:///E:/dcs/two/selenium/%E5%BC%B9%E6%A1%86/alert%E5%BC%B9 阅读全文
posted @ 2024-09-20 19:06 wu33169 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 1、文本框、密码框、输入、点击、 按钮 网址:http://cms.duoceshi.cn/manage/login.do from selenium import webdriver from time import * dx=webdriver.Chrome() dx.get("http://c 阅读全文
posted @ 2024-09-20 19:06 wu33169 阅读(2) 评论(0) 推荐(0) 编辑
摘要: css定位 一、css中的id定位 (1)id简写定位(#) from selenium import webdriver from time import * dx=webdriver.Chrome() dx.get("https://www.baidu.com/") dx.find_elemen 阅读全文
posted @ 2024-09-20 19:05 wu33169 阅读(4) 评论(0) 推荐(0) 编辑
摘要: selenium之定位元素 id、name、class、xpath、css、link_text、partial_link_text、tag_name 一、查看元素的属性 (1)通过f12+fn 或f12 或者更多工具-开发工具 根居属性进行定位 二、定位实战 1、id定位 from selenium 阅读全文
posted @ 2024-09-20 19:05 wu33169 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 一、打开浏览器 (get) 案例1:打开一个浏览器 from selenium import webdriver import time dx=webdriver.Chrome() dx.get("https://www.baidu.com/") 案例2:打开两个网址(覆盖) from seleni 阅读全文
posted @ 2024-09-20 19:05 wu33169 阅读(2) 评论(0) 推荐(0) 编辑
摘要: selenium 一、selenium 1、selenium是python中的一个第三方库(讲课3.141.0版本) 2、通过python中的webdriver+selenium进行二次封装的库selenium2 3、特点:免费、安装简单、支持多语言、多平台、多浏览器 4、selenium安装:两种 阅读全文
posted @ 2024-09-20 19:04 wu33169 阅读(28) 评论(0) 推荐(0) 编辑