Add ensureCleanSession to ie11 capabilities

Change-Id: I41b5872938e84f3827b42a7bbbbd28c86cd3cd8e
Refactor state() in ElementQuery

Change-Id: Ica725e3ef270414750e67614cfc491378c08ddd6