Forum Xamarin Test Cloud (Read Only)

Touch or tap_when_elements_exists doesn't work with android.support.v7.widget.AppCompatImageButton ?

I have a layout with some android.support.v7.widget.AppCompatImageButton when i check with the calabash console it returns my object

#

irb(main):047:0> query("android.support.v7.widget.AppCompatImageButton id:'item_1'")

[
[0] {
"class" => "android.support.v7.widget.AppCompatImageButton",
"tag" => nil,
"description" => "android.support.v7.widget.AppCompatImageButton{f781da5 VFED..C.. ........ 182,0-364,112 #7f0e00a4 app:id/item_1}",
"id" => "item_1",
"visible" => true,
"rect" => {
"height" => 112,
"width" => 182,
"y" => 1740,
"x" => 228,
"center_x" => 319,
"center_y" => 1796
},
"enabled" => true,
"contentDescription" => nil
}
]

#

When i try to click on this AppCompatImageButton it returns nil so everything should be fine but nothing happens on the device.

irb(main):048:0> tap_when_element_exists("android.support.v7.widget.AppCompatImageButton id:'item_2'")
nil

or

irb(main):049:0> touch("android.support.v7.widget.AppCompatImageButton id:'item_2'")
nil

If i click with my finger :) it works but not with calabash. Is there an issue using AppCompatImageButton with calabash ?

calabash-android version
0.8.0

Sign In or Register to comment.