0
我與AndroidViewClient努力尋找的EditText和按鈕推動與monkeyrunner。問題是,AndroidViewClient無法獲取座標,以像素爲單位的論文觀點。AndroidViewClient沒有得到視圖座標
結果說了下:
com.android.launcher.BubbleTextView id/0x80203 Browser (0, 0)
/opt/santoku/AndroidViewClient-master/AndroidViewClient/src/com/dtmilano/android/viewclient.py:488: UserWarning: View id/0x80002 has no 'layout:mLeft' property
warnings.warn("View %s has no '%s' property" % (self.getId(), self.leftProperty))
/opt/santoku/AndroidViewClient-master/AndroidViewClient/src/com/dtmilano/android/viewclient.py:511: UserWarning: View id/0x80002 has no 'layout:mTop' property
warnings.warn("View %s has no '%s' property" % (self.getId(), self.topProperty))
com.android.launcher.BubbleTextView id/0x80002 Messaging (0, 0)
/opt/santoku/AndroidViewClient-master/AndroidViewClient/src/com/dtmilano/android/viewclient.py:488: UserWarning: View id/cell3 has no 'layout:mLeft' property
warnings.warn("View %s has no '%s' property" % (self.getId(), self.leftProperty))
/opt/santoku/AndroidViewClient-master/AndroidViewClient/src/com/dtmilano/android/viewclient.py:511: UserWarning: View id/cell3 has no 'layout:mTop' property
warnings.warn("View %s has no '%s' property" % (self.getId(), self.topProperty))
com.android.launcher.CellLayout id/cell3 None (0, 0)
/opt/santoku/AndroidViewClient-master/AndroidViewClient/src/com/dtmilano/android/viewclient.py:488: UserWarning: View id/drawer has no 'layout:mLeft' property
warnings.warn("View %s has no '%s' property" % (self.getId(), self.leftProperty))
/opt/santoku/AndroidViewClient-master/AndroidViewClient/src/com/dtmilano/android/viewclient.py:511: UserWarning: View id/drawer has no 'layout:mTop' property
warnings.warn("View %s has no '%s' property" % (self.getId(), self.topProperty))
android.widget.SlidingDrawer id/drawer None (0, 0)
/opt/santoku/AndroidViewClient-master/AndroidViewClient/src/com/dtmilano/android/viewclient.py:488: UserWarning: View id/all_apps has no 'layout:mLeft' property
warnings.warn("View %s has no '%s' property" % (self.getId(), self.leftProperty))
/opt/santoku/AndroidViewClient-master/AndroidViewClient/src/com/dtmilano/android/viewclient.py:511: UserWarning: View id/all_apps has no 'layout:mTop' property
warnings.warn("View %s has no '%s' property" % (self.getId(), self.topProperty))
com.android.launcher.HandleView id/all_apps None (0, 0)
com.android.launcher.AllAppsGridView id/content None (0, 0)
/opt/santoku/AndroidViewClient-master/AndroidViewClient/src/com/dtmilano/android/viewclient.py:488: UserWarning: View id/name has no 'layout:mLeft' property
warnings.warn("View %s has no '%s' property" % (self.getId(), self.leftProperty))
/opt/santoku/AndroidViewClient-master/AndroidViewClient/src/com/dtmilano/android/viewclient.py:511: UserWarning: View id/name has no 'layout:mTop' property
warnings.warn("View %s has no '%s' property" % (self.getId(), self.topProperty))
android.widget.TextView id/name Alarm Clock (0, 0)
android.widget.TextView id/name API Demos (0, 0)
android.widget.TextView id/name Browser (0, 0)
android.widget.TextView id/name Calculator (0, 0)
android.widget.TextView id/name Camera (0, 0)
android.widget.TextView id/name Contacts (0, 0)
android.widget.TextView id/name Custom Locale (0, 0)
android.widget.TextView id/name Dev Tools (0, 0)
android.widget.TextView id/name Email (0, 0)
android.widget.TextView id/name Gallery (0, 0)
android.widget.TextView id/name Gestures Builder (0, 0)
android.widget.TextView id/name Messaging (0, 0)
android.widget.TextView id/name Music (0, 0)
android.widget.TextView id/name Phone (0, 0)
android.widget.TextView id/name Settings (0, 0)
android.widget.TextView id/name Spare Parts (0, 0)
com.android.launcher.DeleteZone id/delete_zone None (0, 0)
有沒有辦法解決這個問題?這些觀點是否有必要確定這些屬性?
感謝您的幫助。
模擬器?設備? android api級別? androidviewclient版本?用於獲取轉儲的命令? –
模擬器的Nexus One,與Android API級別7(安卓2.1)和androidviewclient的最後一個版本,我昨天下載了它從https://github.com/dtmilano/AndroidViewClient和我所用的自卸例如:VC = ViewClient(* ViewClient .connectToDeviceOrExit(** kwargs1),** kwargs2) vc.dump(窗口=選項[窗口]) vc.traverse(變換=變換) – user2366903