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