Add screenshot on failure function

Signed-off-by: xcgspring <xcg1987xcg@126.com>
modify element verify function, to check if element UI exist

Signed-off-by: xcgspring <xcg1987xcg@126.com>