calabash / calabash-android

Automated Functional testing for Android using cucumber
Other
1.68k stars 617 forks source link

click_on_screen doesn't working #884

Closed aluckin3 closed 6 years ago

aluckin3 commented 6 years ago

Is there any reason why this function doesn't work (click is not performed and there is no error): perform_action('click_on_screen', x, y) or touch_coordinate doesn't work at all

For click on screen i get this: { "bonusInformation" => [], "message" => "", "success" => true }

For touch_coordinate: 10: from /Users/amar/.rvm/rubies/ruby-2.5.1/bin/irb:11:in <main>' 9: from (irb):8 8: from /Users/amar/.rvm/gems/ruby-2.5.1/gems/calabash-android-0.9.0/lib/calabash-android/operations.rb:93:inperform_action' 7: from /Users/amar/.rvm/gems/ruby-2.5.1/gems/calabash-android-0.9.0/lib/calabash-android/operations.rb:445:in perform_action' 6: from /Users/amar/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:108:intimeout' 5: from /Users/amar/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:33:in catch' 4: from /Users/amar/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:33:incatch' 3: from /Users/amar/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:33:in block in catch' 2: from /Users/amar/.rvm/rubies/ruby-2.5.1/lib/ruby/2.5.0/timeout.rb:93:inblock in timeout' 1: from /Users/amar/.rvm/gems/ruby-2.5.1/gems/calabash-android-0.9.0/lib/calabash-android/operations.rb:456:in `block in perform_action' RuntimeError (Action 'touch_coordinate' unsuccessful: Click can not be completed!)

AndreyMitsyk commented 6 years ago

Hi @aluckin3 , could you please try to use latest calabash-android gem 0.9.5? If this error will be reproduced with latest version, please provide more info about android version where you have test apk.

aluckin3 commented 6 years ago

It doesnt touch on webView, i think, but there is no error on 0.9.5

AndreyMitsyk commented 6 years ago

@aluckin3 In 0.9.5 we have massive changes. So if it's ok with 0.9.5 please close this issue.