conditional for elementSelector