Add selenium factory code