兄弟 我越来越感觉 应该是手机的问题
'chromeOptions': {
'androidProcess': 'com.android.chrome:sandboxed_process0'
}
兄弟这个 androidProcess 你是怎么获取的?
把代码,和 log 贴出来 大兄弟
哥们 你也发帖了~
Traceback (most recent call last):
File "E:\pyworkspace\demos\webview_test\webview_tests.py", line 70, in <module>
switch_context(driver)
File "E:\pyworkspace\demos\webview_test\webview_tests.py", line 23, in switch_context
driver.switch_to.context(context)
File "D:\Program Files\Python\Python36\lib\site-packages\appium\webdriver\switch_to.py", line 31, in context
self._driver.execute(MobileCommand.SWITCH_TO_CONTEXT, {'name': context_name})
File "D:\Program Files\Python\Python36\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 314, in execute
self.error_handler.check_response(response)
File "D:\Program Files\Python\Python36\lib\site-packages\appium\webdriver\errorhandler.py", line 29, in check_response
raise wde
File "D:\Program Files\Python\Python36\lib\site-packages\appium\webdriver\errorhandler.py", line 24, in check_response
super(MobileErrorHandler, self).check_response(response)
File "D:\Program Files\Python\Python36\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Failed to start Chromedriver session: An error occurred (Original error: chrome not reachable
(Driver info: chromedriver=2.30.477700 (0057494ad8732195794a7b32078424f92a5fce41),platform=Windows NT 6.1.7601 SP1 x86_64))
怎么解决的? 我就是小米的手机 不过刷的是别的 rom
我 window 用 appium 1.46 那个版本 想往上升级 怎么都是失败。。我都怀疑人生了 现在只好用 appium desktop
同样的问题解决了,确实是有地方调了 adb 命令 没有加 -s
def swipe(self, start_x, start_y, end_x, end_y, count=1):
"""
滑动
:param start_x: 起始x
:param start_y: 起始y
:param end_x: 结束x
:param end_y: 结束y
:param count: 次数
"""
# self.driver.swipe(start_x, start_y, end_x, end_y)
for i in range(count):
AdbUtils.exe_adb(" shell input swipe %s %s %s %s 300" % (start_x, start_y, end_x, end_y))
time.sleep(2)
我是用的 adb 命令滑动 自带的 swipe 不知道为什么 反正是没用~
无人化 有群吗? 能进去吗?
带上 log 和截图
想请教下,你们有没有做失败重测这块的工作,如果做了 是怎么做的 给点思路
我也遇到了这个问题
兄弟 你解决了么?
没有解决 很蛋疼
逝者安息
是这个 API : driver.find_element_by_android_uiautomator('new UiSelector().text("Custom View")').click()
我真的是蠢死了 多谢老哥
python 呢?python 里面怎么拿啊?
每次都去装 ui2 的两个 apk,源码注释 但我找不到源码。。 - -
楼主 能帮忙解决这个问题吗? https://testerhome.com/topics/14775
国产的四大厂 哪能说放弃就放弃啊~ 还是找找原因吧 应该可以解决
楼主 我是 W7 得系统也出现了那种情况
C:\Users\DELL\AppData\Roaming\npm\node_modules\appium\node_modules\heapdump>if not defined npm_confi
g_node_gyp (node "D:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\
....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "D:\Program Files\nodejs\node_mod
ules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
在此解决方案中一次生成一个项目。若要启用并行生成,请添加 “/m” 开关。
MSBUILD : error MSB3428: 未能加载 Visual C++ 组件 “VCBuild.exe”。要解决此问题,1) 安装 .NET Framewo
rk 2.0 SDK;2) 安装
Microsoft Visual Studio 2005;或 3) 如果将该组件安装到了其他位置,请将其位置添加到系统路径中。 [C:\U
sers\DELL\AppData\Roaming\npm\
node_modules\appium\node_modules\heapdump\build\binding.sln]
gyp ERR! build error
gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
failed with exit c
ode: 1
gyp ERR! stack at ChildProcess.onExit (D:\Program Files\nodejs\node_modules\npm\node_modules\nod
e-gyp\lib\build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "D:\Program Files\nodejs\node.exe" "D:\Program Files\nodejs\node_modules\npm
\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\DELL\AppData\Roaming\npm\node_modules\appium\node_modules\heapdump
gyp ERR! node -v v8.11.3
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\appium\node_modules\fse
vents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":
"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: heapdump@0.3.9 (node_modules\appium\node_modules\hea
pdump):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: heapdump@0.3.9 install: node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
求解答~
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.x (node_modules\appiu
m\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@
1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}
)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: heapdump@0.3.9 (node_modules\app
ium\node_modules\heapdump):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: heapdump@0.3.9 install: node-gy
p rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
这个能直接用命令启动吗?
可惜在成都