摘要: 1 class MobileCommand(object): 2 CONTEXTS = 'getContexts', 3 GET_CURRENT_CONTEXT = 'getCurrentContext', 4 SWITCH_TO_CONTEXT = 'switchToCo... 阅读全文
posted @ 2015-05-08 22:04 Mr.Dantes 阅读(543) 评论(0) 推荐(0) 编辑
摘要: 1 def find_element_by_ios_uiautomation(self, uia_string): 2 """Finds an element by uiautomation in iOS. 3 4 :Args: 5 - uia_... 阅读全文
posted @ 2015-05-08 22:03 Mr.Dantes 阅读(859) 评论(0) 推荐(0) 编辑
摘要: 1 from selenium.webdriver.remote.switch_to import SwitchTo 2 3 from .mobilecommand import MobileCommand 4 5 6 class MobileSwitchTo(SwitchTo): 7 ... 阅读全文
posted @ 2015-05-08 22:00 Mr.Dantes 阅读(971) 评论(0) 推荐(0) 编辑
摘要: 1 #各位客官,虽然今天是周末,我还是奋斗到工作的第一线 2 #研究python-client,也就是api,哈哈,大家自己翻译吧,我把代码贴出来 3 @property 4 def contexts(self): 5 """ 6 Returns... 阅读全文
posted @ 2015-05-08 21:58 Mr.Dantes 阅读(2231) 评论(7) 推荐(1) 编辑
摘要: 本人翻译,翻版必究,觉得好请点赞本人qq:79523822~Appium Windows的GUI如果你是新Appium然后请参阅入门指南关于这个项目的更多信息。Pre-req:所需要.NET Framework 4.5可再发行的库如何安装:从Appium.io下载最新版本。提取的ZIP文件。启动ap... 阅读全文
posted @ 2015-05-08 17:11 Mr.Dantes 阅读(1279) 评论(2) 推荐(0) 编辑
摘要: 原文地址:http://blog.csdn.net/roenfun/article/details/44087997A Windows GUI for AppiumIf you are new to Appium then please see theGetting startedguide for... 阅读全文
posted @ 2015-05-08 16:59 Mr.Dantes 阅读(427) 评论(0) 推荐(0) 编辑
摘要: 提问:appium怎么打开手机的功能菜单和后退键?回答:driver.execute_script('mobile: keyevent', :keycode => 4)附录 keycode:原文:http://testerhome.com/topics/799电话键KEYCODE_CALL 拨号键 ... 阅读全文
posted @ 2015-05-08 16:38 Mr.Dantes 阅读(6509) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://blog.sina.com.cn/s/blog_68f262210102v536.html 阅读全文
posted @ 2015-05-08 16:10 Mr.Dantes 阅读(1142) 评论(0) 推荐(0) 编辑
摘要: desired_caps = {} desired_caps['platformName'] = 'Android' desired_caps['platformVersion'] = '4.3' desired_caps['deviceName'] = '... 阅读全文
posted @ 2015-05-08 15:32 Mr.Dantes 阅读(1340) 评论(0) 推荐(0) 编辑
摘要: 在运行app的过程,如果我想一个个模块单独的运行并产生测试报告。那么该怎么做呢? 我可以把公共的部分,如登录功能放在setup()里面,那么每次运行你定义的一个个函数,都会调用这个setup()中的数据。 还是贴一下代码的思路 #coding=utf-8import osimport un... 阅读全文
posted @ 2015-05-08 14:11 Mr.Dantes 阅读(752) 评论(0) 推荐(1) 编辑