Shubham Vora has Published 962 Articles

Set the opacity only to background color not on the text in CSS

Shubham Vora

Shubham Vora

Updated on 11-Apr-2023 16:17:06

7K+ Views

In CSS, we can set the background for the particular HTML element using the ‘background’ property of CSS. Sometimes, we may require to decrease the background colour's opacity without affecting the HTML element's content. We can decrease the background color's opacity by decreasing the alpha variable's value while assigning the ... Read More

Set the limit of text length to N lines using CSS

Shubham Vora

Shubham Vora

Updated on 11-Apr-2023 16:15:57

9K+ Views

Sometimes, developers require to truncate the texts according to the dimensions of the HTML element. For example, the width of the div element is 100px, and it can contain only some characters. So, we need to truncate the texts using CSS. However, we can truncate the text using JavaScript, but ... Read More

Image Classification using JavaScript

Shubham Vora

Shubham Vora

Updated on 07-Apr-2023 09:45:22

758 Views

The meaning of image classification is to extract as much information from the image as possible. For example, when you upload an image to Google photos, it extracts information from the image and suggests the location based on that. We can use OpenCV to detect every small information from the ... Read More

HTTP Cookies in Node.js

Shubham Vora

Shubham Vora

Updated on 06-Apr-2023 16:07:44

9K+ Views

The cookies are the data stored in the user’s browser for quick access. For example, whenever we log in to any website, the server returns the access token, which can be stored in the browser’s cookie with the expiry time. So, whenever a user revisits the website, they don’t need ... Read More

How TypeScript Compilation Works?

Shubham Vora

Shubham Vora

Updated on 06-Apr-2023 16:06:41

2K+ Views

The popular programming language TypeScript has been widely adopted by developers in recent years. It is a superset of JavaScript that enhances the language with static typing and other features to make complicated application development simpler and error-prone. However, TypeScript code must be compiled into JavaScript because it cannot be ... Read More

How to use protractor to wait for the element’s attribute to change to a particular value?

Shubham Vora

Shubham Vora

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

392 Views

We will learn to use protractor to wait for the element’s attribute to change to a particular value. Protractor is an end-to-end testing framework for Angular and AngularJS applications. Protractor has built-in support for waiting for Angular-specific elements to load and be ready before performing test operations. We need to ... Read More

How to use protractor to check whether text is present in an element or not?

Shubham Vora

Shubham Vora

Updated on 06-Apr-2023 15:59:51

361 Views

We will learn to use Protractor to check whether text is present in an element or not. Protractor is an end-to-end testing framework for Angular and AngularJS applications. It uses WebDriverJS and runs tests written in Jasmine or Mocha, allowing for automated browser testing of web applications. Protractor can simulate ... Read More

How to use protractor to check if an element is visible?

Shubham Vora

Shubham Vora

Updated on 06-Apr-2023 15:52:53

1K+ Views

We will learn to use Protractor to check if an element is visible. Protractor is an end-to-end testing framework for Angular and AngularJS applications. It uses Selenium WebDriver to automate browser interactions and provides a high-level API to write tests in JavaScript or TypeScript. It uses Jasmine as the test ... Read More

How to test the name of tag of an element using Protractor?

Shubham Vora

Shubham Vora

Updated on 06-Apr-2023 15:49:08

261 Views

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

How to test the id of an element using Protractor?

Shubham Vora

Shubham Vora

Updated on 06-Apr-2023 15:48:09

150 Views

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

Advertisements