LibWeb: Add a testing helper to send a single named key to an element

Unlike internals.sendText(), this allows sending keys like the escape
key.
This commit is contained in:
Timothy Flynn 2024-08-19 22:49:52 -04:00 committed by Andreas Kling
commit 53f775afb9
Notes: github-actions[bot] 2024-08-20 07:30:44 +00:00
3 changed files with 10 additions and 0 deletions

View file

@ -25,6 +25,7 @@ public:
JS::Object* hit_test(double x, double y);
void send_text(HTML::HTMLElement&, String const&);
void send_key(HTML::HTMLElement&, String const&);
void commit_text();
void click(double x, double y);