Evangeline Drink
Evangeline Drink

Reputation: 1

Selenium SendKeys for iOS: Using the Left Arrow Key places a high five emoji instead of moving the keyboard cursor

When I use the Selenium Sendkeys() method for an iOS mobile application to move the cursor to the left, it instead places a high five emoji in the text field area. The code that I'm using is the following:

string libelle = "/XCUIElementTypeApplication/XCUIElementTypeWindow[1]/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther/XCUIElementTypeOther[2]/XCUIElementTypeOther[2]/XCUIElementTypeOther[2]/XCUIElementTypeOther[2]/XCUIElementTypeTextField";

Outil.Driver.FindElementByXPath(libelle).SendKeys(Keys.ArrowLeft)

I'm able to use the SendKeys() method to enter string values into the text field and the Keys.Enter key by doing this:

Outil.Driver.FindElementByXPath(libelle).SendKeys("Example" + Keys.Enter)

I'm not sure why I'm getting an emoji when using Keys.ArrowLeft. I have also tried the following code and I continue to get the same high five emoji:

Outil.Driver.FindElementByXPath(libelle).SendKeys(Keys.Left);
Outil.Driver.FindElementByXPath(libelle).SendKeys("\ue012");

What can I do to move my cursor to the left instead of getting the emoji?

Upvotes: 0

Views: 36

Answers (0)

Related Questions