Change wb command to SendKeysSetup, since the command is specific to SendKeys

Signed-off-by: PotatoCP <kenzieradityatirtarahardja18@gmail.com>
This commit is contained in:
PotatoCP 2025-06-03 10:46:45 +08:00
parent 9bf7c7849d
commit a3d88a93c0
4 changed files with 17 additions and 17 deletions

View file

@ -2266,20 +2266,6 @@ impl ScriptThread {
can_gc,
)
},
WebDriverScriptCommand::FocusElement(
strict_file_interactability,
text,
element_id,
reply,
) => webdriver_handlers::handle_focus_element(
&documents,
pipeline_id,
element_id,
text,
strict_file_interactability,
reply,
can_gc,
),
WebDriverScriptCommand::ElementClick(element_id, reply) => {
webdriver_handlers::handle_element_click(
&documents,
@ -2385,6 +2371,20 @@ impl ScriptThread {
WebDriverScriptCommand::GetTitle(reply) => {
webdriver_handlers::handle_get_title(&documents, pipeline_id, reply)
},
WebDriverScriptCommand::SendKeysSetup(
strict_file_interactability,
text,
element_id,
reply,
) => webdriver_handlers::handle_send_keys_setup(
&documents,
pipeline_id,
element_id,
text,
strict_file_interactability,
reply,
can_gc,
),
_ => (),
}
}