rickypc / selenium-page-object-generator

A nimble and flexible Selenium Page Object Model generator to improve agile testing process velocity.
https://chrome.google.com/webstore/detail/epgmnmcjdhapiojbohkkemlfkegmbebb
GNU Affero General Public License v3.0
122 stars 66 forks source link

Using Options & root selector, error w/ document.querySelectorAll #29

Closed bartonhammond closed 6 years ago

bartonhammond commented 6 years ago

I'm trying to ignore a large section of the page so using the Options, I set the 'root' as div#primary and left the selectors as can be seen in the image below.

screen shot 2017-12-14 at 6 58 37 pm

and here is the object input parameter to the function setDefinitions(input)

screen shot 2017-12-14 at 6 48 40 pm

If I try these commands in the console:

screen shot 2017-12-14 at 6 53 59 pm
Error in event handler for runtime.onMessage: SyntaxError: Failed to execute 'querySelectorAll' on 'Document': 'a.btn.btn-default.dropdown-toggle.' is not a valid selector.