Not able to open ios keyboard on ios simulator
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.3k
- Forks
- 752
- Avg merge
- 6d 21h
- Merged PRs (30d)
- 8
Description
Not able to invoke or open ios simulator keyboard while entering text on textbox
Getting error as =
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Error Domain=com.facebook.WebDriverAgent Code=1 "Keyboard is not present" UserInfo={NSLocalizedDescription=Keyboard is not present}
For this I am explicitly opening the keyboard if it's not opened
Here is the code I am using
System.out.println("Is keyboard shown?" + ((HasOnScreenKeyboard) driver).isKeyboardShown());
if (!((HasOnScreenKeyboard) driver).isKeyboardShown()) {
KeyInput keyboard = new KeyInput("keyboard");
Sequence sendKeys = new Sequence(keyboard, 0);
sendKeys.addAction(keyboard.createKeyDown(Keys.COMMAND.getCodePoint()));
sendKeys.addAction(keyboard.createKeyDown("k".codePointAt(0)));
sendKeys.addAction(keyboard.createKeyUp("k".codePointAt(0)));
sendKeys.addAction(keyboard.createKeyUp(Keys.COMMAND.getCodePoint()));
((RemoteWebDriver) driver).perform(Arrays.asList(sendKeys));
}
Environment
Java
MacOS
ios Simulator
Appium logs
Or please sugggest any other way to invoke the keyboard before entering text.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing issue 1159 on the stated Java, macOS, and iOS Simulator environment, using the provided Appium logs and the HasOnScreenKeyboard/RemoteWebDriver sequence. Check whether the simulator reports a keyboard before text entry and document a reliable invocation path or the conditions causing the “Keyboard is not present” error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, java, macos
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100