fix problem with non-phantomjs webdrivers