add wait for email method
Merge remote-tracking branch 'mozilla/v1.0.1' into v1.0.1
Merge pull request #906 from bebef1987/v1.0.1

add wait for email method