The Appium switch boot page webview successfully prints page element return value is null

appiumversion:1.6.4
Operating system:Mac os 10.12.6

This is the script:
def get_webview_name():
context = driver.contexts
name = context[-1]
if ‘com.onething’ in name:
print(‘当前页面webview=%s’%(context[-1]))
return context[-1]
else:
print(‘获取webviewname失败’)
return ‘’
def get_appview_name():
context = driver.contexts

print(type(context))
if context:
    print('当前页面appview=%s'%(context[0]))
    return context[0]
else:
    print('appview获取失败')
    return ''

def switch_h5():
# temp =driver.switch_to.context(get_webview_name())
temp = driver.execute(MobileCommand.SWITCH_TO_CONTEXT,{‘name’: get_webview_name()})
# print(driver.page_source),temp
print(temp)
# return driver.switch_to(‘WEBVIEW_com.onething.beautify’)
# return driver.execute(MobileCommand.SWITCH_TO_CONTEXT,{‘name’: get_webview_name()})
return temp

Print of the editor after execution:
当前设备名称:ZX1G429XC9
获取apk文件路径:/Users/fangyongteng/Documents/Miu/ApkFile/miu_2.0.0.26-11-debug.apk
当前apk包名:com.onething.beautify
获取apk文件路径:/Users/fangyongteng/Documents/Miu/ApkFile/miu_2.0.0.26-11-debug.apk
当前.apk文件acivity:com.onething.beautify.activity.SplashActivity
获取apk文件路径:/Users/fangyongteng/Documents/Miu/ApkFile/miu_2.0.0.26-11-debug.apk
当前页面webview=WEBVIEW_com.onething.beautify
{‘status’: 0, ‘value’: None, ‘sessionId’: ‘2ba310d8-b822-4015-9959-b6845f4c0dc6’}
{‘status’: 0, ‘value’: None, ‘sessionId’: ‘2ba310d8-b822-4015-9959-b6845f4c0dc6’}

Process finished with exit code 0

Execute the appium window output:

[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/fangyongteng/Library/android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZX1G429XC9”,“shell”,“cat”,"/proc/net/unix"]
[debug] [AndroidDriver] WEBVIEW_6551 mapped to pid 6551
[debug] [AndroidDriver] Getting process name for webview
[debug] [ADB] Getting connected devices…
[debug] [AndroidDriver] WEBVIEW_4549 mapped to pid 4549
[debug] [AndroidDriver] Getting process name for webview
[debug] [ADB] Getting connected devices…
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/fangyongteng/Library/android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZX1G429XC9”,“shell”,“ps”]
[debug] [ADB] 1 device(s) connected
[debug] [ADB] Running ‘/Users/fangyongteng/Library/android/sdk/platform-tools/adb’ with args: ["-P",5037,"-s",“ZX1G429XC9”,“shell”,“ps”]
[debug] [AndroidDriver] Parsed pid: 6551 pkg: com.tencent.android.qqdownloader!
[debug] [AndroidDriver] from: u0_a318,6551,1731,1427252,100568,SyS_epoll_,00000000,S,com.tencent.android.qqdownloader
[debug] [AndroidDriver] returning process name: com.tencent.android.qqdownloader
[debug] [AndroidDriver] Parsed pid: 4549 pkg: com.onething.beautify!
[debug] [AndroidDriver] from: u0_a477,4549,1731,2164344,229360,00000000,S,com.onething.beautify
[debug] [AndroidDriver] returning process name: com.onething.beautify
[debug] [AndroidDriver] Found webviews: [“WEBVIEW_com.tencent.android.qqdownloader”,“WEBVIEW_com.onething.beautify”]
[debug] [AndroidDriver] Available contexts: [“NATIVE_APP”,“WEBVIEW_com.tencent.android.qqdownloader”,“WEBVIEW_com.onething.beautify”]
[debug] [AndroidDriver] Connecting to chrome-backed webview context ‘WEBVIEW_com.onething.beautify’
[debug] [AndroidDriver] A port was not given, using random port: 8000
[debug] [Chromedriver] Changed state to ‘starting’
[Chromedriver] Set chromedriver binary as: /usr/local/lib/node_modules/appium/node_modules/appium-chromedriver/chromedriver/mac/chromedriver
[Chromedriver] Killing any old chromedrivers, running: pkill -15 -f “/usr/local/lib/node_modules/appium/node_modules/appium-chromedriver/chromedriver/mac/chromedriver.*–port=8000”
[Chromedriver] No old chromedrivers seemed to exist
[Chromedriver] Spawning chromedriver with: /usr/local/lib/node_modules/appium/node_modules/appium-chromedriver/chromedriver/mac/chromedriver --url-base=wd/hub --port=8000 --adb-port=5037
[Chromedriver] [STDOUT] Starting ChromeDriver 2.28.455517 (2c6d2707d8ea850c862f04ac066724273981e88f) on port 8000
Only local connections are allowed.
[debug] [JSONWP Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8000/wd/hub/status] with no body
[debug] [JSONWP Proxy] Got response with status 200: “{“sessionId”:”",“status”:0,“value”:{“build”:{“version”:“alpha”},“os”:{“arch”:“x86_64”,“name”:“Mac OS X”,“version”:“10.12.6”}}}"
[debug] [JSONWP Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8000/wd/hub/session] with body: {“desiredCapabilities”:{“chromeOptions”:{“androidPackage”:“com.onething.beautify”,“androidUseRunningApp”:true,“androidDeviceSerial”:“ZX1G429XC9”}}}
[debug] [JSONWP Proxy] Got response with status 200: {“sessionId”:“41beb32812b1cdb3dd1ea2224fc740c5”,“status”:0,“value”:{“acceptSslCerts”:true,“applicationCacheEnabled”:false,“browserConnectionEnabled”:false,“browserName”:“chrome”,“chrome”:{“chromedriverVersion”:“2.28.455517 (2c6d2707d8ea850c862f04ac066724273981e88f)”},“cssSelectorsEnabled”:true,“databaseEnabled”:false,“handlesAlerts”:true,“hasTouchScreen”:true,“javascriptEnabled”:true,“locationContextEnabled”:true,“mobileEmulationEnabled”:false,“nativeEvents”:true,“pageLoadStrategy”:“normal”,“platform”:“ANDROID”,“rotatable”:false,“takesHeapSnapshot”:true,“takesScreenshot”:true,“unexpectedAlertBehaviour”:"",“version”:“56.0.2924.87”,“webStorageEnabled”:true}}
[debug] [Chromedriver] Changed state to ‘online’
[debug] [MJSONWP] Responding to client with driver.setContext() result: null
[HTTP] <-- POST /wd/hub/session/12c252fc-85cc-45fe-b5a3-a16aa3a2a0f9/context 200 4127 ms - 76

Try with latest appium server version and if still exists open new issue in github repo.

Also try to use English only in bug description & title