add safeTab(), fail test when page focus is lost
#3983
Merged
safeTab(), fail test when page focus is lost
#3983