Calabash-android: How can I simulate device home button for calabash-android - calabash-android

I am using system("adb shell input keyevent KEYCODE_HOME") to simulate the home button in calabash-android, my test fails for my next step.As per my app functionality when the relaunch the app from the background it displays with the pin screen,which i am not able to get it with the KEYCODE_HOME. However it works with the KEYCODE_BACK.
Please help me out for the simulation for the home button.

You can try this which was provided from a previous user of the same question.

Related

How to handle Micro Popup in Webdriver.io browser

When starting a website, I find it difficult to click Block button on Microphone popup because I can't query this popup (and also with block btn)
How can I handle this problem with Webdriver.io in browser?
enter image description here
One option is to use chrome command line switches. You can find the list here.
The one you are looking for is use-fake-device-for-media-stream. You can set this in your config file so that every time the chrome is launched, it won't show this popup since it is already set to a fake device.

Need Help on chrome drive run test, everytime i run test I Agree appear and test stops

hello everyone i am new .
last night i was trying to do a test looking at tutorial but when i start run test chrome opens up at the screen "before you continue to Google Search " Customise or I agree screen , test does not go further. i will post screen shot too, i have been looking for answer for few hours on internet but i can not find any. enter image description ,no matter what for test i run test stops when chrome browser pops up .i have downloaded in correct way chrome drive
everytime run test it stops at Customise I Agree screen
everytime run test it stops at Customise I Agree screen
everytime run test it stops at Customise I Agree screen
Hmm, Selenium is better for opening a website and not searching. If you have a website in mind I would just put in the URL instead of searching. You could do:
https://www.google.com/search?q={thing you are searching here}
If you need any more help let me know!

how to add start button in telegram bot with python-telegran-bot sdk?

I want to write a simple bot for telegram with python-telegram-bot SDK. I want to show a "START" keyboard button instead of typing "/start" command to work with my bot. How to do this with python-telegram-bot?
As I know when you start using a bot for the first time telegram shows that start button itself but after the first message is sent you won't see that keyboard button anymore all you need to do is clearing the bot's history to see that again.
On the other hand if you want to have a keyboard button that can be shown anytime you want, all you should do is implementing a custom keyboard. You can find useful information about keyboards here.

Display app on Mac login screen?

Is it possible to launch and display an app on the Mac login screen? Or add controls to it?
Let's say I want to build a simple mac app that gives the user 3 buttons before logging in. Each button just does some small background thing.
My end goal is to have some way for the user to execute some 'maintenance' tasks without logging in.

AIR modal screen

I am developing an AIR application where I need to display a Modal Window.
The screen should fill the entire desktop including the Task Bar.
If the user wants to exit the screen, he should press Windows+D option or activate Task Manager.
Can any one post some sample code?
To get rid of taskbar, switch to fullscreen mode with
stage.displayState = StageDisplayState.FULL_SCREEN;
User always can switch to another window with Alt-Tab (on Windows), AIR cannot "lock" screen to prevent that.
Try the example here
http://flex4fun.com/2010/12/01/flex4-popupmanager-example-change-modal-color-and-click-modal-close-popup/
PopUpManager.createPopUp(this, TitleWindow, true)
last argument makes the popup "modal".
http://docs.huihoo.com/flex/4/mx/managers/PopUpManager.html#createPopUp()