What are the differences between using Nightwatch.js vs Protractor

If you are working on an AngularJS project, the choice is simple – Protractor: it is being made specifically for angular apps (though it can be used for non-angular apps also) supports angular-specific locator strategies (like by.model, by.repeater etc) waits for angular to start up during the page load (sync) it is being actively maintained … Read more

Correct way to get a count of matching elements in Nightwatch?

I found the following very elegant solution within a VueJS template. It shows how to add a custom assertion into Nightwatch that counts the number of elements returned by a selector. See http://nightwatchjs.org/guide#writing-custom-assertions for details of how to write custom assertions within Nightwatch. Once installed, usage is as simple as: browser.assert.elementCount(‘#todo-list li’, 2) The plugin: … Read more

Should e2e tests persist data in real databases?

I’m currently working at a large well-known company on our test tools and frameworks team. So while I’m no expert, it is something that’s part of my job. I’m going to be talking specifically about web testing. Testing is somewhat different for native apps like iOS and Android and I’m not super familiar with those … Read more

What is the difference between NightwatchJS and WebdriverIO?

I’ve written a test suite using each of these tools a few times. Webdriver.io allows you to write your test cases “from scratch” and have great control over reporting, by say, integrating with slack using slack npm, and other packages. You would need to know or quickly learn node.js. In addition to working very well … Read more