Skip to content

Commit

Permalink
iOS: Delay between keypresses on input text
Browse files Browse the repository at this point in the history
  • Loading branch information
Redth committed Sep 23, 2022
1 parent caf78f3 commit 010223d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Driver/iOSDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,10 @@ public override Task PullFile(string remoteFile, string localDirectory)
public override async Task InputText(Element element, string text)
{
await Tap(element);
await idb.hid().SendStream<HIDEvent, HIDResponse>(text.AsHidEvents().ToArray());
await Task.Delay(250);
var textEvents = text.AsHidEvents().ToArray();

await idb.hid().SendStream<HIDEvent, HIDResponse>(TimeSpan.FromMilliseconds(100), textEvents);
}

public override Task Back()
Expand Down

0 comments on commit 010223d

Please sign in to comment.