Frank "type_into_keyboard()" function showing unexpected behaviour
32 views
Skip to first unread message
usman....@wemotech.com
unread,
May 24, 2013, 11:43:00 AM5/24/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to frank-...@googlegroups.com
Hi,
I am working on an application. Focus is auto set on different fields for function "type_into_keyboard()". Following is my code.
Code: When /^I touch the text edit button$/ do touch "view:'UIView' view:'CaptureMediaToolbar' button marked:'camera text edit'" end
Then /^I can see "([^\"]*)"$/ do |expected_mark| sleep 1 Timeout::timeout(WAIT_TIMEOUT) do until view_with_mark_exists( expected_mark ) sleep 1 end end end
When /^I touch text view$/ do touch "view:'UIView' view:'MSDraggableView' view:'UIView' view:'WMTextView'" end
Then /^I can see the keyboard$/ do sleep 1 end
When /^I enter some text$/ do type_into_keyboard("Test") sleep 1 end
On touch function focus is set on "WMTextView" and keyboard popup. As mention in the attached screen shot "Auto Focus". When "type_into_keyboard" function run. Focus change to "To" field. As mention in attached screen shot "1st Focus". After it automatically focus set to Cross button in Navigation bar(As mention in attached screen shot "2nd Focus") and Close the screen. Takes to home screen.
On running "type_into_keyboard" function. Test word should be write in Text View and Save button is enable. But it is behaving differently.
Please look into code and let us know why its behaving in that way.