Currently I am writing iOS tests using Python Appium and would like to completely hide the software keyboard which pops up whenever you have to type something. I am already aware of driver.hide_keyboard() function but it's a pain to include it everywhere in tests.
I was going over the Appium Desired Capabilites but couldn't find anything that will disable the software keyboard. Appreciate if anyone can help me here?
To disable soft keyboard in iOS simulator do this:
Simulator Menu > Hardware > Keyboard > Connect Hardware Keyboard (enable it)
Even if you quit and reopen the simulator, the selection will stay. I'm not sure what happens when you factory reset the simulator.
screenshots attached.
Related
I am using Xcode 6.0.1, I unable to type text using my apple wireless keyboard on the simulator.
Previously I have used Xcode 5.1.1 in that it works fine.
I am finding more difficulty type the text without using my keyboard on iOS simulator.
when you run your app, opens automatically the iOS Simulator, so .. you select, from the menu, Hardware>Keyboard>Connect Hardware Keyboard
it worked for me (:
At finally solved that problem with the help of #mab answer. Open the iOS simulator Then Go to Hardware>Keyboard and select the Connect Hardware Keyboard option.
If your Simulator Hardware → Keyboard → Connect Hardware Keyboard (⇧⌘K) doesn't work, then simply close your Simulator application (⌘Q) and reopen it.
You likely hit shift-cmd-k or otherwise disconnected your hardware keyboard. Check the Hardware->Keyboard menu.
I am testing android device using appium from Mac machine. Sendkeys is failing on a particular page. Following is the description of the issue i already posted. Sendkeys fails on android appium driver.
So I want to know is there any other possibilites to resolve the issue. I spent hours in searching answer for it. But all i can find is pressing back, home buttons. I want to type characters like 'k' , 's' using the android keyboard. Any suggestions?
you can use virtual keyboard on simulator.
if you use genymotion emulator, you can choose to set use or not use virtual keyboard.
and if you use send_keys function failed, you can try element.set_text('your text') instead(python client)
in my case, when i run test on a real device, default call out the android keyboard.
maybe you can provide more details, paste your scripts etc.
I only use the iOS simulator for testing websites, not actual apps. Today I opened it up and it keeps asking me for an app for it to simulate. If I click cancel, it just quits the simulator.
I've tried deleting preference files, but I'm just not familiar enough with the simulator to know what's going on. How can I just get this back to normal, or satisfy this dialog?
I think you could try the menu
iOS Simulator -> Reset Content and Settings...
This would clean your simulator storage.
Update
According to this link, Cleaning up the iPhone simulator
move to path
/Users/<username>/Library/Application Support/iPhone Simulator/{6.0 / 6.1}
You could try to clean it manually
I'm accidentally turning slow animations about 50 times a day (I think it may because I'm using a virtual keyboard via Synergy) ... How can I disable slow animations in the simulator FOREVER?
EDIT: Beginning with Xcode 5.0.1 with the iOS 7.0.3 simulator, cmd+T is now declared as the keyboard shortcut for Toggling Slow Animations and eliminates the observed informal shortcuts listed my my original answer.
This is something that I too encounter all...the...time, but I finally figured out what I was doing to cause it to be enabled in my simulator.
It turns out that iOS Simulator has a few shortcut key for enabling/disabling slow animations that are easily triggered when navigating through simulator (like gaining access to the multitasking bar) or when using system shortcuts for screen shots. I've run across two undocumented keyboard shortcuts:
Double-press of CMD+Shift (easy to inadvertently do when gaining access to the multitasking bar)
Alternate: Shift + Double-press of CMD
Triple-press of Shift
Regardless of the method, if you have a debugger session running in Xcode, you can easily see the console message logging when these shortcuts have activated/deactivated slow-motion mode.
Unfortunately, there does not appear to be a way to disable these 'features' of iOS Simulator. All I've been able to do so far is alter my workflow slightly to avoid key combinations that could trigger slow motion animation, but now have a quicker way to undo the behavior.
Just double-press of Shift works for me in the emulator
For the newer simulators just press CMD + T to check/uncheck slow animations.
I've searched Google for about 1,5h now and i can't find a good answer.
Is it possible to display the Soft Keyboard when debugging using ADL?
If i use the existing properties I still don't see it.
I want to check if my layout looks well when the Soft Keyboard appears, but for some reason I don't see it coming in ADL (Adobe Debug Launcher).
I don't have a tablet to test it on for now so that isn't a solution.
Am i doing something wrong whereby I don't see the soft keyboard or doesn't it exist in ADL?
ADL is just the Flex debugger program. When I use ADL to launch my app on an Android device; there are no issues getting the soft keyboard to show up. When I use ADL to launch an app in an emulator, I have never seen the soft keyboard come up. This is not supported with the emulator included with Flex / Flash Builder.
In my experience the availability of the soft keyboard depends on the context you're running the app in (Debugger vs Device) and has nothing to do w/ ADL.
Does that answer your question?