Sendkeys is not working in IPAD/Safari


I’m trying to enter data in a TextArea which is tagged as div

div id=“writingactivityId2” class=“boxSize redactor_editor ng-dirty ng-valid-parse ng-valid ng-valid-required ng-touched” ng-focus=“editing()” redactor="" ng-model=“activity.answer” ng-change=“onAnswerChange()” ng-click=“hidePrompt()” required="" contenteditable=“true” dir=“ltr” style=“height: 300px;”

When i try to use sendkeys, it doesn’t work in IPAD/Safari.

But Works good in Chrome.

Any Suggestions?

You may try following -

  1. Perform click event on Text Area
  2. Perform sendkeys on Text Area

i tried to clicking on the Div tag, clear out and tried sendKeys, But it errors out::
webdriverexception::org.openqa.selenium.WebDriverException: Cannot set
the selection end (WARNING: The server did not provide any stacktrace

But it works fine in Chrome