Javascript with webdriverjs or java with selenium-webdriver?

Our team plans to develop a framework for automating manual tests. But we are stuck in choosing between javascript and java. With a bit of searching, we found that Webdriverjs is a selenium binding for javascript. Now the main obstacle is whether we should look for javascript with webdriverjs or java with selenium-webdrier?

We already know java with selenium-webdriver, but as we move forward on the new structure, we just want to open a simple, fast and reliable option.

Please suggest javascript with webdriverjs (do we need to learn javascript for this) or java with selenium-webdriver?

+4
source share
3 answers

We faced the same challenge as now. There are many selenium engineers on the Java stack , but not many on the Node.js and stack selenium-webdriver.

Most of the new modern testing frameworks are being implemented in Node.js, as front-end and front-end frameworks are implemented using NodeJS and will continue this trend. The question I would ask is whether the development team uses Java (like Tomcat) or uses Node.js to develop its product. If they use Node.js , then it would be ideal to have a test framework written in the same language.

It makes it easier

  • Collaboration between a team of developers and developers, locators, etc.
  • , .

--. , .

Java JavaScript ( )

  • , Front-End Engineers
  • Java

http://www.marcelerz.com/blog/talk-nodejs-based-selenium-testing-south-bay-selenium-meetup

, Javascript, . Python Java. , javascript. .

Node.js, Mocha . - Chai, , .

- WebDriverJs ( ) aka selenium-webdriver npm, JavaScript. , selenium-webdriver, Java. Promise Manager Mocha Test Wrapper, , .

https://code.google.com/p/selenium/wiki/WebDriverJs#Writing_Tests

. Javascript - , Java.

selenium-standalone npm (/) . , . . .

, , Node.js Java. , . , . !

https://github.com/mekdev/mocha-selenium-pageobject

+4

, javacript selenium Jar. , javascript java selenium, , , java selenium .

+1

selenium-webdriver . js-.

/ , js.

:

WebDriver wd = new WebDriver()
RemoteWebDriver rwd = new RemoteWebDriver()
ChromeDriver cd = new ChromeDriver() // for chrome browser
JavaScriptDriver jsd = ..... 
0

All Articles