Shubham Vora has Published 962 Articles

How to test if an element has class using Protractor?

Shubham Vora

Shubham Vora

Updated on 06-Apr-2023 15:46:33

430 Views

We will learn to use the protractor test if an element has class using Protractor. Protractor is an end-to-end testing framework for Angular and AngularJS applications. Protractor is built on top of WebDriverJS, a JavaScript implementation of the WebDriver API, and supports multiple browsers such as Chrome, Firefox, and Safari. ... Read More

How to use underscore.js as a template engine?

Shubham Vora

Shubham Vora

Updated on 06-Apr-2023 15:42:01

641 Views

A straightforward and lightweight templating technique for creating dynamic information within HTML is offered by the JavaScript library known as Underscore.js. A template must be defined in the HTML file using the script tag and a custom type attribute to use underscore.js as a template engine. The template should be ... Read More

How to use protractor to wait for new tab to be created?

Shubham Vora

Shubham Vora

Updated on 06-Apr-2023 15:39:17

381 Views

Popular end-to-end testing framework Protractor performs tests against a web application in a real browser, mimicking user interactions. It is used with Angular and AngularJS apps. A new tab or window may open when a user hits a link or button in an online application. This is a typical scenario. ... Read More

How to use Button Component in Material UI?

Shubham Vora

Shubham Vora

Updated on 06-Apr-2023 15:33:14

622 Views

The button is used to perform some actions like form submission, file upload, link click, web page routing etc. The Material Ui provides the pre-styled button component, which users can import into the React application and use inside the React component. Different variants of the button are available in the ... Read More

How to use Box Component in Material UI?

Shubham Vora

Shubham Vora

Updated on 06-Apr-2023 15:07:07

921 Views

As the Box name suggests, it allows users to add the box of different dimensions on the web page. Users can also add any custom HTML content inside the Box component. Also, users can style the box by passing the style as props. To use the Box component of Material ... Read More

How to use API inside callbacks using jQuery DataTables plugin ?

Shubham Vora

Shubham Vora

Updated on 06-Apr-2023 15:03:40

335 Views

In jQuery, the DataTables plugin allows us to add some extra features to the HTML table. When you create a table using the raw HTML, it looks unformatted. So, we need to style it using CSS. Also, we need to add some functionalities to the table, like pagination, searching into ... Read More

How to use a variable for a key in a JavaScript object literal?

Shubham Vora

Shubham Vora

Updated on 06-Apr-2023 15:00:13

9K+ Views

In JavaScript, sometimes, we are required to use the variables as an object key. For example, when fetching data from the API and not sure about all the response data attributes, we must iterate through the response object and store every property of it. However, we can’t use the variables ... Read More

How to use CircularProgress Component in ReactJS?

Shubham Vora

Shubham Vora

Updated on 06-Apr-2023 14:58:34

1K+ Views

The circular progress bar is an attractive UI for any application. We can show the circular loading indicator whenever our application fetches data from the server; users are uploading files or downloading data. Here, we will learn different approaches to creating a circular progress bar using the various libraries. Use ... Read More

How to show pagination in ReactJS?

Shubham Vora

Shubham Vora

Updated on 05-Apr-2023 16:31:34

473 Views

The pagination allows users to show content on different pages. For example, we have thousands of data and want to show that to users on a single webpage. It will look worse if we show thousands of data on a single page, as users must scroll through all data to ... Read More

How to shard test files in protractor?

Shubham Vora

Shubham Vora

Updated on 05-Apr-2023 16:24:02

125 Views

Sharding is a method for distributing data or tasks across several machines to improve performance and scalability. Sharding is a technique used in test automation to distribute test cases among various instances of the testing framework and speed up test execution. Protractor is a testing framework that facilitates sharding test ... Read More

Advertisements