hard and soft assertions in selenium