Revert "Remove selenium dependency."

This reverts commit 1232558e94d9268dfc4faf337615f35e047ae5cd.