Debug

print_line! : Str => {}

Write Str to Stdout followed by a newline.

Debug.print_line!("Hello World")

wait! : U64 => {}

Stops the test execution for specified amount of time.

timeout - time in [ms]

# wait for 3s
Debug.wait!(3000)

wait_for_enter_key! : {} => {}

Stops the test execution till the "enter" key is pressed in the terminal.

Debug.wait_for_enter_key!({})

show_element! : Element => Result {} [ WebDriverError Str, JsReturnTypeError Str ]

Blink an Element in the Browser.

Can be useful for debugging and trouble shooting.

button |> Debug.show_element!()?

show_elements! : List Element => Result {} [ WebDriverError Str, JsReturnTypeError Str ]

Blink a List of Elements in the Browser.

Can be useful for debugging and trouble shooting.

checkboxes |> Debug.show_elements!()?

show_current_frame! : Browser => Result {} [ WebDriverError Str, JsReturnTypeError Str ]

Blink the current active frame (iFrame or top level frame).

Can be useful for debugging and trouble shooting.

browser |> Debug.show_current_frame!()?