File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed
Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 33from setuptools import setup , find_packages
44
55setup (name = 'androidviewclient' ,
6- version = '4.8 .0' ,
6+ version = '4.9 .0' ,
77 description = '''AndroidViewClient is a 100% pure python tool that
88 simplifies test script creation providing higher level operations and the ability of
99 obtaining the tree of Views present at any given moment on the device or emulator screen.
Original file line number Diff line number Diff line change 1818@author: Diego Torres Milano
1919'''
2020
21- __version__ = '4.4.3 '
21+ __version__ = '4.9.0 '
2222
2323import sys
2424import warnings
@@ -943,13 +943,11 @@ class EditText(TextView):
943943
944944 def type (self , text ):
945945 self .touch ()
946- time .sleep (1 )
947- for c in text :
948- if c != ' ' :
949- self .device .type (c )
950- else :
951- self .device .press ('KEYCODE_SPACE' , adbclient .DOWN_AND_UP )
952- time .sleep (1 )
946+ time .sleep (0.5 )
947+ escaped = text .replace ('%s' , '\\ %s' )
948+ encoded = escaped .replace (' ' , '%s' )
949+ self .device .type (encoded )
950+ time .sleep (0.5 )
953951
954952 def backspace (self ):
955953 self .touch ()
You can’t perform that action at this time.
0 commit comments