Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print the DOM when an element can't be found? #40

Open
joshski opened this issue Jul 8, 2016 · 1 comment
Open

Print the DOM when an element can't be found? #40

joshski opened this issue Jul 8, 2016 · 1 comment

Comments

@joshski
Copy link
Member

joshski commented Jul 8, 2016

I think this is a controversial request, so I thought I'd see how others feel about it. I'd like to know what was in the DOM when browser-monkey fails to find something.

Even if it's noisy, I'd personally prefer it most of the time if I knew what was in the DOM, i.e. instead of:

Error: expected to find: .navigation .btn[disabled]

...I would like to see:

Error: expected to find: .navigation .btn[disabled] in <html>...[very long string]...</html>

What do others think? Can I add this feature, and should it be disabled by default?

@dereke
Copy link
Member

dereke commented Jul 8, 2016

I would love more contextual information about errors!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants