*** Keywords ***

Capture Image Element
    [Arguments]  ${xpath}                 ${thumbnailName}=thumbnail_capture.jpg
    ${thumbY}    Get Vertical Position    xpath=${xpath}
    ${thumbX}    Get Horizontal Position  xpath=${xpath}
    ${thumbH}    Get Element Attribute    xpath=${xpath}                            attribute=height
    ${thumbW}    Get Element Attribute    xpath=${xpath}                            attribute=width
    Log          ${thumbX}
    Log          ${thumbY}
    Log          ${thumbW}
    Log          ${thumbH}
    Capture Page Screenshot    ${thumbnailName}
    Crop Image                 ${thumbnailName}    ${thumbX}    ${thumbY}    ${thumbW}    ${thumbH}

