Selenium in C# for react application?

574 views
Skip to first unread message

MChauMan

unread,
Apr 6, 2017, 12:39:30 AM4/6/17
to Selenium Users
Hi

I am new to this forum and need quick advise.
I have used selenium earlier with C#/.NET framework earlier for .NET web applications.. that worked very well.

Now we have to test another application written in React, I know there are few tools we can choose including selenium.io/nightwatch.js.. and many more.
Since we don't have any expertise in test automation team for node.js/react, Can I still write test cases using C#/.NET framework for this react application?

Please let me know if this can cause any big issue going forward. please let me know some pros and cons if I will be writting in C#/NET.

Thanks
Man Chau

MChauMan

unread,
Apr 8, 2017, 1:46:27 PM4/8/17
to Selenium Users

Any take on this?

Baswaraj Malage

unread,
Apr 10, 2017, 12:48:09 AM4/10/17
to Selenium Users
In my opinion, it's always good to use same technology/language (if possible) for application development and test scripts, so that engineer working on your app can even write test script(s) without having to learn different language and vice versa. I did lot of analysis and landed with below technology stack as we are building applications using Javascript.
- Selenium-webdriver– selenium bindings for JavaScript
- Selenium-webdriver/testing/assert – assertion library
- Mocha – test runner


If you prefer to use webdriver.io or nightwatch then that's also a good option as you get standard framework to quickly start automation for your application using Javascript. However, looks like selenium-webdriver is more popular in the community, https://npm-stat.com/charts.html?package=selenium-webdriver&package=nightwatch&package=webdriverio&from=2015-11-01&to=2016-11-30


Thanks
Baswaraj
Reply all
Reply to author
Forward
0 new messages