Do not raise exception if page.driver does not support javascript