Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tencent/FAutoTest
/ functions
Functions
285 in github.com/Tencent/FAutoTest
⨍
Functions
285
◇
Types & classes
32
Method
getElementByXpath
:param:目标的xpath :return:返回lxml包装过的element对象,可以使用lxml语法获得对象的信息 例如:可以使用element.get("attrs")来拿到属性的数据 可以用element.text拿到它的
fastAutoTest/core/qq/qqEngine.py:191
Method
getElementClassNameByXpath
(self, xpath)
fastAutoTest/core/h5/h5PageOperator.py:149
Method
getElementClassNameByXpath
:param xpath:目标的xpath :return: 目标的className
fastAutoTest/core/h5/h5Engine.py:444
Method
getElementCoordinateByXpath
获得Element的坐标 :param elementXpath:待获取坐标的元素的xpath :return:element相对于整个屏幕的x、y坐标,单位为px
fastAutoTest/core/h5/h5Engine.py:246
Method
getElementCoordinateByXpath
获得Element的坐标 :param elementXpath:待获取坐标的元素的xpath :return:element相对于整个屏幕的x、y坐标,单位为px
fastAutoTest/core/wx/wxEngine.py:300
Method
getElementCoordinateByXpath
获得Element的坐标 :param elementXpath:待获取坐标的元素的xpath :return:element相对于整个屏幕的x、y坐标,单位为px
fastAutoTest/core/qq/qqEngine.py:266
Method
getElementSrcByXpath
(self, xpath)
fastAutoTest/core/h5/h5PageOperator.py:144
Method
getElementSrcByXpath
:param xpath: 目标的xpath :return: 获取到的目标src内容
fastAutoTest/core/h5/h5Engine.py:430
Method
getElementSrcByXpath
(self, xpath)
fastAutoTest/core/wx/wxEngine.py:192
Method
getElementSrcByXpath
(self, xpath)
fastAutoTest/core/wx/wxPageOperator.py:47
Method
getElementSrcByXpath
(self, xpath)
fastAutoTest/core/qq/qqEngine.py:179
Method
getElementTextByXpath
(self, xpath)
fastAutoTest/core/h5/h5PageOperator.py:139
Method
getElementTextByXpath
(self, xpath)
fastAutoTest/core/wx/wxEngine.py:180
Method
getElementTextByXpath
(self, xpath)
fastAutoTest/core/wx/wxPageOperator.py:42
Method
getElementTextByXpath
(self, xpath)
fastAutoTest/core/qq/qqEngine.py:167
Method
getExpression
(self, actionType, default=None)
fastAutoTest/core/wx/wxCommandManager.py:90
Method
getForwardPort
(self)
fastAutoTest/core/h5/h5WebSocketDebugUrlFetcher.py:44
Method
getForwardPort
(self)
fastAutoTest/core/wx/wxWebSocketDebugUrlFetcher.py:70
Method
getForwardPort
(self)
fastAutoTest/core/qq/qqWebSocketDebugUrlFetcher.py:56
Method
getHtml
(self, nodeId)
fastAutoTest/core/h5/h5PageOperator.py:100
Method
getHtml
(self, nodeId)
fastAutoTest/core/wx/wxPageOperator.py:66
Method
getIFrameContextId
当body标签中只存在一个IFrame调用 :return:ContextId
fastAutoTest/core/h5/h5Engine.py:557
Method
getIFrameElementByXpath
:param xpath:element的Xpath :param nodeId: element所在页面的nodeId :return: lxml的ELement对象
fastAutoTest/core/h5/h5Engine.py:674
Method
getIFrameElementCoordinateByXpath
获得IFrame中元素的坐标 :param elementXpath:待获取坐标的元素的xpath :param iFrameXpath: 外层iFrame的xpath :param contextId: iFrame的Context
fastAutoTest/core/h5/h5Engine.py:620
Method
getJsAction
(self, actionType, default=None)
fastAutoTest/core/wx/wxCommandManager.py:81
Method
getMemoryInfo
获得H5进程占用内存信息 :return: H5进程占用内存信息
fastAutoTest/core/h5/h5Engine.py:689
Method
getMemoryInfo
获得小程序进程占用内存信息 :return: 小程序进程占用内存信息
fastAutoTest/core/wx/wxEngine.py:406
Method
getMemoryInfo
获得小程序进程占用内存信息 :return: 小程序进程占用内存信息
fastAutoTest/core/qq/qqEngine.py:369
Method
getMethod
(self, actionType, default=None)
fastAutoTest/core/wx/wxCommandManager.py:84
Method
getPageHeight
(self)
fastAutoTest/core/h5/h5PageOperator.py:80
Method
getPageHeight
(self)
fastAutoTest/core/h5/h5Engine.py:410
Method
getPageHeight
(self)
fastAutoTest/core/wx/wxEngine.py:430
Method
getPageHeight
(self)
fastAutoTest/core/wx/wxPageOperator.py:33
Method
getPageHeight
(self)
fastAutoTest/core/qq/qqEngine.py:393
Method
getParams
(self, actionType, default=None)
fastAutoTest/core/wx/wxCommandManager.py:87
Method
getType
(self)
fastAutoTest/core/qq/qqWebSocketDebugUrlFetcher.py:208
Method
getValue
(dict, key, defaultValue=None)
fastAutoTest/utils/common.py:21
Method
getWindowHeight
(self)
fastAutoTest/core/h5/h5PageOperator.py:162
Method
getWindowHeight
(self)
fastAutoTest/core/wx/wxPageOperator.py:56
Method
getWindowWidth
(self)
fastAutoTest/core/h5/h5PageOperator.py:165
Method
getWindowWidth
(self)
fastAutoTest/core/wx/wxPageOperator.py:59
Method
incrementAndGet
(self)
fastAutoTest/utils/atomicinteger.py:25
Method
init
()
fastAutoTest/utils/vmhook.py:41
Method
initDriver
(self)
fastAutoTest/core/wx/wxEngine.py:40
Method
initDriver
(self)
fastAutoTest/core/qq/qqEngine.py:39
Method
isCallable
(obj)
fastAutoTest/utils/common.py:15
Method
isConnected
(self)
fastAutoTest/core/common/network/websocketdatatransfer.py:55
Method
isElementExist
(self, xpath, contextId=None)
fastAutoTest/core/h5/h5PageOperator.py:84
Method
isElementExist
(self, xpath)
fastAutoTest/core/wx/wxPageOperator.py:37
Method
longClickElementByXpath
(self, xpath, visibleItemXpath=None, duration=2000, tapCount=1)
fastAutoTest/core/h5/h5Engine.py:176
Method
navigateToPage
(self, url)
fastAutoTest/core/h5/h5PageOperator.py:127
Method
navigateToPage
跳转到指定url,在某些微信版本上不生效 :param url: 要跳转的url
fastAutoTest/core/h5/h5Engine.py:488
Method
needSwitchNextPage
(self)
fastAutoTest/core/wx/wxWebSocketDebugUrlFetcher.py:334
Method
needSwitchNextPage
(self)
fastAutoTest/core/qq/qqEngine.py:90
Method
needSwitchNextPage
(self)
fastAutoTest/core/qq/qqWebSocketDebugUrlFetcher.py:196
Method
onMessage
(self, message)
fastAutoTest/core/common/network/shortLiveWebSocket.py:181
Method
onMessage
(self, message)
fastAutoTest/core/common/network/websocketdatatransfer.py:21
Method
receive
(self)
fastAutoTest/core/common/network/shortLiveWebSocket.py:100
Method
receive
(self)
fastAutoTest/core/common/network/websocketdatatransfer.py:51
Method
repeatedClickElementByXpath
(self, xpath, visibleItemXpath=None, duration=50, tapCount=2)
fastAutoTest/core/h5/h5Engine.py:179
Method
requestChildNodes
(self, nodeId=5)
fastAutoTest/core/h5/h5PageOperator.py:183
Method
returnLastPage
(self)
fastAutoTest/core/h5/h5PageOperator.py:123
Method
returnLastPage
(self)
fastAutoTest/core/wx/wxEngine.py:131
Method
returnLastPage
(self)
fastAutoTest/core/wx/wxPageOperator.py:30
Method
returnLastPage
(self)
fastAutoTest/core/qq/qqEngine.py:123
Method
run
(self)
fastAutoTest/utils/singlethreadexecutor.py:28
Method
runInstrumentationTestForClass
(pkgName, testcaseName, device=None, runnerName=None, printDetails=Fals
fastAutoTest/utils/adbHelper.py:92
Method
runInstrumentationTestForWholePackage
(pkgName, device=None, runnerName=None, printDetails=False, cwd=None)
fastAutoTest/utils/adbHelper.py:77
Method
screenOn
(device=None, printDetails=False, cwd=None)
fastAutoTest/utils/adbHelper.py:43
Method
scrollPickerByXpath
滑动选择picker的选项 要获取四个变量,所以发送了四次消息。 1.先定位到要点击的item 2.找到它的parent(即整个picker的content区域),并且获得要点击item的index,和总共item的个数
fastAutoTest/core/h5/h5Engine.py:378
Method
scrollWindow
(self, x, y, xDistance, yDistance, speed=800)
fastAutoTest/core/h5/h5PageOperator.py:96
Method
scrollWindow
(self, x, y, xDistance, yDistance, speed=800)
fastAutoTest/core/wx/wxPageOperator.py:52
Method
send
(self, data)
fastAutoTest/core/common/network/websocketdatatransfer.py:48
Method
setDebugLogMode
(self)
fastAutoTest/utils/logger.py:46
Method
setDebugLogMode
(self)
fastAutoTest/core/h5/h5Engine.py:713
Method
setDebugLogMode
开启debug的日志模式
fastAutoTest/core/wx/wxEngine.py:475
Method
setDebugLogMode
开启debug的日志模式
fastAutoTest/core/qq/qqEngine.py:438
Method
setException
(self, exception)
fastAutoTest/core/common/network/shortLiveWebSocket.py:64
Method
setUrl
(self, url)
fastAutoTest/core/common/network/websocketdatatransfer.py:33
Method
textElementByXpath
模拟硬件输入分为三个步骤 1.发送消息模拟点击 2.发送消息模拟输入(最多只能输入4个字符,因此要对输入的text进行分割 ) 3.发送消息模拟抬起
fastAutoTest/core/h5/h5PageOperator.py:40
Method
textElementByXpath
先获取输入框的焦点, 再使用Chrome debug协议的输入api,再输入文字内容 :param xpath:输入框的xpath :parm text:要输入的文字
fastAutoTest/core/h5/h5Engine.py:316
Method
textElementByXpath
:param needClick:如果为true,会先对控件进行一次点击,以获得焦点 输入前会先保存当前默认的输入法 然后将输入法切换到adb插件 输入中文,输入后讲输入法转换回默认输入发 needClick代表是否
fastAutoTest/core/wx/wxEngine.py:227
Method
textElementByXpath
先获取输入框的焦点, 再使用Chrome debug协议的输入api,再输入文字内容 :param xpath:输入框的xpath :parm text:要输入的文字
fastAutoTest/core/qq/qqEngine.py:214
Method
unLockScreen
(device=None, fromX=None, fromY=None, toX=None, toY=None, printDetails=False, cwd=None)
fastAutoTest/utils/adbHelper.py:51
Method
unregisterCallback
(self, callback)
fastAutoTest/core/common/network/websocketdatatransfer.py:65
← previous
201–285 of 285, ranked by callers