App运行类 1.current_activity current_activity(self): 2. start_activity start_activity(self, app_package, app_activity, **opts): 3. wait_activity wait_act ...
分类:
移动开发 时间:
2017-09-27 00:45:41
阅读次数:
316
索引 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z B glBeginConditionalRender 3.0 开始条件渲染 GLuint queryid GLenu mode: GL_QUERY_WAIT|GL_QUERY_NOWAIT| ...
分类:
其他好文 时间:
2017-09-26 22:26:06
阅读次数:
287
有些菜单是悬浮菜单,鼠标点上去下级元素才会显示。比如在第一个菜单中选择后会触发二级菜单的某事件,触发二级菜单又去点三级菜单。。 最开始就用click element去点击了,可是菜单会缩回去,就有时候点的到有时候点不到。。 后来使用Wait Until Element Is Enabled 、mou ...
分类:
其他好文 时间:
2017-09-25 22:56:07
阅读次数:
563
在UI自动化测试中,必然会遇到环境不稳定,网络慢的情况,这时如果你不做任何处理的话,代码会由于没有找到元素,而报错。这时我们就要用到wait(等待),而在Selenium中,我们可以用到一共三种等待,没一种等待都有自己的优点或缺点,如果选择最优的等待方式呢。来看下这三种等待方式吧。 time(固定等 ...
分类:
其他好文 时间:
2017-09-25 19:04:15
阅读次数:
113
安装glide [INFO] Loading mirrors from mirrors.yaml file[INFO] Downloading dependencies. Please wait...[INFO] --> Fetching updates for github.com/jinzhu/ ...
分类:
其他好文 时间:
2017-09-25 16:09:17
阅读次数:
195
【await】 The await operator is used to wait for a Promise. It can only be used inside an async function. Returns the resolved value of the promise, or ...
分类:
其他好文 时间:
2017-09-25 16:05:13
阅读次数:
195
Python事件机制 事件机制:这是线程间最简单的通信机制:一个线程发送事件,其他线程等待事件事件机制使用一个内部的标志,使用set方法进行使能为True,使用clear清除为falsewait方法将会阻塞当前线程知道标记为True 结果: ...
分类:
编程语言 时间:
2017-09-24 15:22:47
阅读次数:
283
#!/usr/bin/env python# -*- coding: utf-8 -*-import threadingimport timedef customer(cond): t = threading.currentThread() with cond: # wait()方法创建了一个名为w ...
分类:
编程语言 时间:
2017-09-24 12:54:46
阅读次数:
209
TFTP 简单文件传输协议 安装 sudo apt-get install tftp tftpd openbsd-inetd 需要tftp tftpd openbsd-inetd 3个应用组件 配置 在/etc/inetd.conf tftp dgram udp wait nobody /usr/s ...
分类:
其他好文 时间:
2017-09-24 11:34:38
阅读次数:
209
String mProjectName = doCommand("cat /proc/version").trim(); Log.d(TAG, "mProjectName =" + mProjectName); ...
分类:
移动开发 时间:
2017-09-24 09:53:46
阅读次数:
197