funcMocha works with open a window