Upgrade selenium version to 0.40