The last batch of tickets for SeleniumConf Austin go on sale March 8th at 12PM Eastern! Sign up to GET NOTIFIED. x
The last batch of tickets for SeleniumConf Austin go on sale March 8th at 12PM Eastern! Sign up to GET NOTIFIED. x

Invalid Selector

This page describes why you might be seeing the InvalidSelectorError (or similar).

Common Causes

The CSS or xPath selector you are trying to use...

  • has invalid characters or
  • has an invalid query

Common Examples of the problem

A CSS selector with the following query:
* >>> #canvas div.bwu-datagrid-row div.bwu-datagrid-cell.l0
is invalid because
Unexpected token '>' at column 4

Common Solutions