[Challenging] How to click on Three dot button present next to recent tab?

Hi,

How to press on the button shown in attached file…
I tried by sending key event 82…
But its not working.

Please help me out on this…

Thanks in advance…

Regards,
Sudhanva
.

@willosser @Appium_Master @rgonalo @bhaskar

If 82 doesn’t work, perhaps that’s not the menu. All I can come up with right now is brute force. Playing with adb shell input, I managed to figure out where that approximate location was on my device:

adb shell input swipe 550 1200 550 1270
adb shell input tap 550 1235

I turned on Show Touches and Pointer Location to see where it was and to verify that I could use adb to click that part of the screen.

Since you likely want this to run on all devices, you could get the device screen dimensions and click at max_x * 0.98, max_y * 0.98 using your favorite appium tap call.

Hi @willosser

I am getting following error When i tried to tap on that button ,

The coordinates provided to an interactions operation are invalid.",“origValue”:“Coordinate [x=690.0, y=1225.0] is outside of element rect: [0,0][720,1184]”},

Any suggestions??

Hi @sudhanvam ,

I thought it might works, when you give x and y coordinates. But you were mentioned it didn’t happen.
So, please have a try with driver.tap(int fingers, int x,int y);

Hi @bhaskar
It works anywhere on the app… but it doesnt works outside the app.

Hi @sudhanvam

If you are only testing locally, you could invoke adb directly. Using Ruby this would be

adb shelll input tap 690 1225

Such use of adb will prevent you from running your tests on a grid provider.

It looks like a related issue was reported 8 days ago on github: https://github.com/appium/appium/issues/4739