Thanks, I'll fix that in my patch, and make another pull request for  test_browser_navigation.py  from which I took this code.