selenium is applied conditionally.