Compatibility with Firefox webdriver

Signed-off-by: Michal Čihař <michal@cihar.com>