Open xurizaemon opened 5 years ago
I was going to submit a test that tests nightwatchjs.org, but I see there's no form interactivity on the site and think that's a significant part of the demo test.
FWIW, I found that replacing <button[name=btnG]>
(not on Google AFAICT) with <input[name=btnK]>
(visible on Google if I .pause()
the test) did not resolve the issue. I'm new to Nightwatch, so maybe this is just my setup / config ... or maybe Google's weird :smiling_imp:
No, what is happening is that when you type in the search input box during the .setValue('input[type=text]', 'rembrandt van rijn')
step, a predictive search dropdown appears which then blocks the button from being visible, causing the test to fail. You could work around it by adding browser.Keys.ENTER
to just simulate a keyboard enter once you input the text, but eh....
I agree that having an example that works on the home page would be helpful :)
Why not target a website that doesn't serve different content depending on your region, language, calendar date, and previous searches. I think using Google is a fragile strategy and the demo should target something controlled by the community at least, such as the documentation page of Nightwatchjs for example.
Hi there! I've read instructions, searched issue queue and hopefully done what I need to make your job easier. This is probably a docs/marketing issue, and ultimately due to NightwatchJS not being in control of Google's DOM.
For me, the example test on the front page of nightwatchjs.org fails because there is no element
<button[name=btnG]>
on https://google.comExpectations
Proposed resolution
Versions
Test code
Obtained just now from front page of https://nightwatchjs.org
Output