Porting changes from Python, Safari browser, Selenium 2.32.0