Skip to content

Form Interactions

Practical form automation patterns using currently supported Oryn commands.

Observe First

> observe
[1] input/email "Email" {required}
[2] input/password "Password" {required}
[3] select "Country"
[4] checkbox "Remember me"
[5] button/submit "Sign in"

Typing

By ID

> type 1 "user@example.com"
> type 2 "mypassword"

By semantic target

> type email "user@example.com"
> type password "mypassword"

Useful options

> type 1 "search query" --enter
> type 1 "more" --append
> type 1 "slow" --delay 100

--append is parsed, but currently not applied in unified translation.

Clear Inputs

> clear 1

Select Dropdown Values

> select 3 "Canada"
> select 3 2

Notes:

  • string argument: label/value style selection
  • numeric argument: translated as index

Checkboxes

> check 4
> uncheck 4

Submit Forms

> click submit

or

> click "Sign in"

Login Shortcut

> login "user@example.com" "password123"

Optional no-submit mode:

> login "user@example.com" "password123" --no-submit

--no-submit is parsed, but currently not applied in unified translation.

Common Failure Recovery

Element IDs changed

> observe
> type email "user@example.com"

Button disabled or hidden

> wait visible "Sign in"
> click "Sign in"
> accept_cookies
> dismiss popups
> observe
goto https://example.com/login
observe
type email "user@example.com"
type password "password123"
click submit
wait navigation
observe