enviroment:
1-windows10-64bits
2-python-2.7.14
3-appium-desktop-1.2.6
4-android7.0(huawei honorv9)
problem:
after tap the sign in button from app, the screen go to the webpage which require me to log in.
but I am not able to switch to the [webview] or [webapp].
code pieces:
#find the sign_in btn
amazon_sign_in = self.driver.find_element_by_android_uiautomator(‘new UiSelector().text(“Sign in with Amazon”)’)
#click the sign_in btn and it will direct me to the amazon log in page
amazon_sign_in.click()
#wait for 20 seconds so that the full log in page loaded
sleep(20)
#print the current activity
print (self.driver.current_activity)
#print the list of all the contexts
print (self.driver.contexts)
#print the current context
print (self.driver.current_context)
what I got from the command line by the print:
com.tencent.mtt.MainActivity
[u’NATIVE_APP’]
NATIVE_APP
which seems that I do not have the webview from the printed result.
anyone who have experience for this issue, please help me out and appreciated very much in advance.