first click on field, next write text
local username = splash:select('input[name=username]') username:mouse_click() -- click on field splash:send_text('foobar') -- write text