LambdaTest Community

Find answers, support, and inspiration from other users

Questions
LambdaTest Community
Answered

What are the shortcomings of automation testing using Selenium?

Recently i was researching about the shortcomings of automation testing using Selenium, can anyone please guide me onto it.

Up Vote Down Vote 0 Votes
Posted 4 months ago

Answers


There are 100 above framework which supported by selenium. Here i am sharing my concern on few of them which are most popular in the market.

REACT

The reason behind the rising popularity of React JS is because of the unparalleled support and love showed by the community of JavaScript developers. It also helps that Facebook and Instagram back this wonder library.

React has made quite an impact on both designers and developers, and the feature rich library has made complex integrations a bit easier. It enables the developers to make encapsulated components that manage their own state and then these components are composed to make complex UI. Features like lazy loading have been successfully implemented on a large scale because of it. Using React Boilerplate and React Starter-kit you can easily make interactive interfaces. The concept of react is to put HTML in JS rather than vice versa because JavaScript is more powerful than HTML.

They provide you with an predefined environment and let you code. The declarative view makes the coding predictable hence the code becomes easy to debug. Using React will push you to make your own framework. Pairing it with Next.js will smoothen things on the server side and all the heavy lifting will be done on the back-end.

React stack usually includes Redux, React.route, React.saga and Node.js. Myntra too exploits react although they only use parts of it because such website have minimal interaction between sibling components. React has a high rendering performance when there is complicated component change with frequent UI changes. They prefer preact because its smaller and provides them greater speed. Ebay on the other hand spice things up by adding Angular and Ember along with the preact library. That seems to be the trend in modern e-commerce websites.

Npm is a trustworthy package manager. Earlier npm had too many issues as the packages were scattered, Yarn was introduced as directory for npm. It is a godsend for developers, npm has vast community support and npm too has become faster and almost equal to yarn in terms of package management. React and Redux come handy while handling the packages.

Angular

Angular is TypeScript JavaScript which is backed and maintained by Google. This powerful framework has been deployed by Google, Get 2019 health coverage. Health Insurance Marketplace, National and Local Weather Radar, Daily Forecast, Hurricane and information from The Weather Channel and weather.com, Microsoft and Forbes. TypeScript is in itself a pro and a con. While the autonomy of TypeScript makes it easier to debug but the problem arises with the fixed patterns that over complicate simple and easier to do things. Also the steep learning curve makes it tough for people to take initiative and follow this. If you have dealt with object oriented programming in the past then Angular is for you.

Angular is more of a framework rather than library because it tells you how your code must be written. Build tools in angular are complex to understand too. Almost everyone agrees that Angular is bloated as its size is about 150 kb gzipped. Unlike the virtual DOM of React and Vue they have fully fledged DOM that makes it hectic and bloated. Virtual DOM is a new concept that has just started gaining ground but it is fast as now only changes have to be pushed. Apart from this the syntax and libraries require due research and discipline in Angular.

Vue

Vue is simply the best of both worlds, meaning it lies somewhere between the dictatorship of Angular and democratic chaos of React. This young JS framework has gained some serious popularity without having been associated or backed by any giant. The framework is used by Alibaba, Nintendo and Gitlab. A team of 16 people made Vue into a very simple yet efficient JS framework.

Too many cooks spoil the broth, working on the similar motto ex google employee Evans set out to achieve benchmarks in the JavaScript. Vue uses JS ES5 or ES6 depending upon how the user wishes and also supports TypeScript. The only problem with Vue is that it is comparatively young and doesn’t yet have a lot of libraries and support packages but the npm stats make it clear that it is gaining popularity and its community is growing at a rapid pace. It is a perfect blend of flexibility and coding discipline, it provides just enough framework that you don’t feel bound. Just like React has Redux, Vue has Vuex but if you are familiar you can use Redux with Vue too. Memory allocation and performance with Vue is great and size too is smallest than its competition Frameworks and libraries i.e. 23 k gzipped.

Vue makes use of the latest tech trends and inculcates within it without complicating the whole project. Combining Vue 2.0 with server side rendering (SSR), Vuex and a GraphQL client like Apollo that you end up with super light, fast and robust application while providing a great user and developer experience too.

Polymer

Google introduced polymer to empower the developers to fully take advantage of the latest web technologies. Youtube has renovated it gaming stream using Polymer, it is indeed very fast. The most notable feature in Polymer is the ability to reuse custom elements to interoperate with a browser’s built-in elements. Polymer.dom was released with an intent to enable the developers of the DOM manipulation which paved the way for new libraries and frameworks to be used with it.

Version 2 of Polymer also include data system improvements resulting in easier debugging and making it easier for the data flow between elements. If you deal with array handling a lot then polymer is quite a magician. Polymer version 3 soon to be out has left bower and moved to npm for version management. Polymer App Toolbox helps you build and deliver cutting-edge Progressive Web Apps with minimal overhead and payload, by leveraging powerful web platform features like Web Components, Service Worker and HTTP/2.

The Toolbox provides a component-based architecture, responsive layouts, a modular router, localization support, turnkey support for local storage and offline caching, and efficient delivery of unbundled app resources. Adopt these features individually, or use them together to build a full-featured Progressive Web App.

Preact

Most of the people are afraid of using React mainly because of its size and performance. Preact was introduced mainly due to the following reasons, and it is amazing how easily you can swap your react with the preact counterparts. Preact is known to have quite a reputation in enhancing the performance of mobile web applications. Changing React & React DOM with Preact-compat paired with Webpack and boom all your worries go out of the window.

Using preact will reduce your main app bundle by at least one third (may vary depending on app), the only catch being that testing gets complicated. The alternative to this maybe using react for development and preact for production. Enzyme which is used in react is preact-compat integrable. Lyft and Uber used preact and it improved the performance because it is simply faster and smaller. Like react it also has virtual DOM that acts as a reagent enhancing its speed.

Source: Choosing the right JavaScript framework

Up Vote Down Vote 0 Votes
Posted 4 months ago
258 Views
1 Answer
4 months ago