*** Settings ***
Test Setup      Go To Page "mouse/index.html"
Resource        ../resource.txt

*** Test Cases ***
Mouse Over
    Mouse Over  test_element
    Textfield Value Should Be  test_element  mouseover test_element
    Textfield Value Should Be  secondary_element  ${EMPTY}
    Run Keyword And Expect Error  ERROR: Element not_there not found  Mouse Over  not_there

Mouse Out
    Mouse Out  test_element
    Textfield Value Should Be  test_element  mouseout test_element
    Textfield Value Should Be  secondary_element  ${EMPTY}
    Run Keyword And Expect Error  ERROR: Element not_there not found  Mouse Out  not_there

Mouse Down
    Mouse Down  test_element
    Textfield Value Should Be  test_element  mousedown test_element
    Textfield Value Should Be  secondary_element  ${EMPTY}
    Run Keyword And Expect Error  ERROR: Element not_there not found  Mouse Down  not_there

Mouse Up
    Mouse Up  test_element
    Textfield Value Should Be  test_element  mouseup test_element
    Textfield Value Should Be  secondary_element  ${EMPTY}
    Run Keyword And Expect Error  ERROR: Element not_there not found  Mouse Up  not_there

