Steps which cause the problem:
- Search for some element in the page via Chrome Dev Tools using css selector — it has results.
- Remove this element (in any way) (NOT CLOSING search by css selector panel). search again using the same selector — it has no results
- Restore this element (in any way, e.g. ctrl+Z) (NOT CLOSING search by css selector panel again).
- Search again using the same selector - it has NO results, that's is issue.
- Reopen panel or adding/removing space to the selector or any other manipulation — it has results again.
The same behaviour observed in chromedriver. That's because test fails.
The question: How can I achive the correct search by css selectors using chromedriver?