Skip to content

Commit

Permalink
modify to fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wmadcc committed Jun 22, 2015
1 parent b5893db commit 2391920
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions appium_uiautomator_homework/src/NormalLoginTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ def testNormalLogin(self):
'resourceId("com.zhangdan.app:id/TextView_User_Name")').click()
time.sleep(1.5)

screen_width = self.driver.get_window_size()['width']
screen_height = self.driver.get_window_size()['height']
self.driver.swipe(screen_width/2, screen_height*3/4, \
screen_width/2, screen_height/4, 1000)

self.driver.implicitly_wait(3)
logoutTv = self.driver.find_element_by_android_uiautomator('new UiSelector().' + \
'resourceId("com.zhangdan.app:id/TextView_Exit")')
Expand Down

0 comments on commit 2391920

Please sign in to comment.