ebrehault / resurrectio

CasperJS test recorder Chrome extension
GNU General Public License v2.0
721 stars 106 forks source link

Problems capturing website #25

Closed Ognian closed 9 years ago

Ognian commented 9 years ago

I'm getting the following when trying to capture a text:

recorder.js:376 (Anonyme Funktion)

Uncaught SyntaxError: Failed to execute 'querySelectorAll' on 'Document': '#Jsonary.0eVq5.316' is not a valid selector.

Any Ideas on this?

Ognian commented 9 years ago

OK, the correct way to query such selectors is by escaping the dot:

document.querySelectorAll("#Jsonary\\.0eVq5\\.316")

can you add a regex before querying? Thanks Ognian