0

I am trying to choose a tool to work with for JAVASCRIPT automation tests. Until now i used Selenium Webdriver JAVA language with testng to build my tests, but for a specific reason i have been asked to search for JAVASCRIPT solution to write tests. I had seen three frameworks similar that is webdriverjs,webdriverio and nightwatchjs. Please help me to understand the difference so i can choose the right framework for me.

swathi
  • 473
  • 1
  • 4
  • 11

1 Answers1

0

You can find most of the answer here. Also this talk should give you some good insights even though it is a bit outdated since WebdriverIO now fully supports page objects. If you have questions to WebdriverIO checkout our Gitter channel.

ChristianB
  • 1,967
  • 14
  • 25
  • i had gone through those links and i am not clear about one thing.After I had gone through it I found webdriver Js is better when compared with webdriverIO and nightwatchjs.My doubt is webdriverJs with mocha making webdriverJs async nature to sync with the help of default promise library of mocha.Can we make webdriverJs as sync with cucumber too?If so any help on this is highly regarded. – swathi Aug 02 '16 at 01:09
  • Why is it better? You can run sync commands with WebdriverIO and Cucumber very easily see https://github.com/webdriverio/webdriverio/blob/master/examples/wdio/runner-specs/cucumber/step-definitions.js – ChristianB Aug 02 '16 at 14:09
  • But webDriverIO is using chain based implementation.So will end up with pyramid of doom and some times will get chain breaking problems if we want to write complex code like array of web elements etc...and we have to use promises for each and every line – swathi Aug 04 '16 at 07:09