会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
itheima186
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
···
12
下一页
2020年5月16日
selenium常用的定位方法, ActionChains和TouchAchtion的区别
摘要: # 通过标签的id属性定位, 如 <div id='id'>xxxx<div/> driver.find_element_by_id('id') # 通过标签的name属性定位,如 <div name='name'>xxxx<div/> driver.find_element_by_name('na
阅读全文
posted @ 2020-05-16 21:06 ilovetesting
阅读(555)
评论(0)
推荐(0)
2020年5月15日
appium如何在app内定为H5元素
摘要: 1. pc端安装chrome浏览器 2.安装adb扩展 3.pc端通过adb能识别出手机 4.使用adb扩展, 点击View inspection Targets进入chrome://inspect/#devices 5. 点击inspect 点击后出现如下页面
阅读全文
posted @ 2020-05-15 21:37 ilovetesting
阅读(226)
评论(0)
推荐(0)
appium常见问题
摘要: 1、如何处理 android 权限弹窗 # 处理 android 权限弹窗 while True: for i in range(6): if '允许' in driver.page_source: driver.switch_to.alert.accept() time.sleep(1) brea
阅读全文
posted @ 2020-05-15 14:38 ilovetesting
阅读(314)
评论(0)
推荐(0)
2020年5月14日
appium环境搭建
摘要: 1. 安装Node.js 2.使用npm安装appium,npm install -g appium 3. 安装appium client 端, pip install Appium-Python-Client ( python 版) 4. 命令行启动 appium https://www.cnbl
阅读全文
posted @ 2020-05-14 22:37 ilovetesting
阅读(119)
评论(0)
推荐(0)
2020年4月28日
python链表2
摘要: class Node: def __init__(self, value=None, next=None): self.value = value self.next = next class LinkedList(object): def __init__(self): # 初始化链表时, 创建一
阅读全文
posted @ 2020-04-28 08:46 ilovetesting
阅读(281)
评论(0)
推荐(0)
2020年4月19日
排序算法
摘要: 归并排序 归并 假设现在有一个列表分两段有序, 如何将其合成为一个有序列 思路: 双指针i, j 1.分别从两段从左到右进行比较, 谁小则移动指针, 并把这个较小的数存入一个临时list中 2.遍历完成后可能存在有个有序段未到末端, 需要再使用一个while 3.将排好序的temp写后原list中
阅读全文
posted @ 2020-04-19 21:41 ilovetesting
阅读(160)
评论(0)
推荐(0)
2020年4月12日
算法之dict
摘要: 字典的本质: 其内部是一个数组 将 key 通过一个hash function 计算出一个整数, 让后将计算出一个整数%数组长度求余 得出index, 将value存入该index对应的地址中 set 只有key, 没有value的dict. 对于dict, 所有的操作的时间复杂度都是O(1), 但
阅读全文
posted @ 2020-04-12 22:42 ilovetesting
阅读(258)
评论(0)
推荐(0)
2020年4月8日
算法之字符串
摘要: 1. 偶数字串的数量 给定一串0-9的数字字符串, 计算在将整数转换为偶数时的字串数量 input: str = ‘1234’ output:6 有2 12 34 234 1234 这6个字符串,他们是偶数 题解: 找出偶数所在的位置, 则之前的字符都能和字符可以构成偶数, 有 i + 1 个 注意
阅读全文
posted @ 2020-04-08 09:09 ilovetesting
阅读(219)
评论(0)
推荐(0)
2020年3月29日
linux环境无界面运行selenium
摘要: 以sentos为例 安装chrome yum install https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm -y 安装chromedriver https://npm.taobao.org/mir
阅读全文
posted @ 2020-03-29 22:17 ilovetesting
阅读(1255)
评论(0)
推荐(0)
2020年3月24日
用猴子补丁的方式解决 python unittest按定义的顺序执行用例
摘要: import unittest # 用猴子补丁的方式解决 testcase 按定义的顺序执行用例 from unittest.loader import TestLoader # 自定义一个getTestCaseNames方法, 替换TestLoader中的getTestCaseNames方法 de
阅读全文
posted @ 2020-03-24 20:16 ilovetesting
阅读(219)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
12
下一页
公告