completed implementation of selenium