Selenium JavaScript Articles

RSS feed

25 articles found in Selenium JavaScript

13 JavaScript Testing Best Practices You Should Know [2026]
13 JavaScript Testing Best Practices You Should Know [2026]

The best 13 JavaScript testing practices that will help you come up with scalable and reliable automated test scenarios. Take your JavaScript Testing to next level.

Arnab Roy Chowdhury

Arnab Roy Chowdhury

February 20, 2025

22 min read

How to Run WebdriverIO Tests: Getting Started Tutorial
How to Run WebdriverIO Tests: Getting Started Tutorial

WebdriverIO is a JavaScript automation framework written in NodeJS. In this tutorial, learn how to run WebdriverIO tests.

Faisal Khatri

Faisal Khatri

July 2, 2024

25 min read

Selenium SendKeys : All You Need To Know
Selenium SendKeys : All You Need To Know

Discover how to use Selenium sendkeys for sending keystrokes automatically! Dive into our blog for insights on effective sendkeys utilization.

Solomon Eseme

Solomon Eseme

May 21, 2024

22 min read

Storybook Visual Testing: Getting Started Guide
Storybook Visual Testing: Getting Started Guide

Storybook is an open-source tool for building, organizing, and testing UI components in isolation, rendering each component independently so visual defects like misaligned buttons or broken layouts surface without loading the full application. The first SmartUI run against a static Storybook build creates a baseline and automatically approves every story, while later runs compare against that baseline and highlight mismatches.

Vipul Gupta

Vipul Gupta

December 21, 2023

27 min read

How To Reduce Page Load Time In JavaScript
How To Reduce Page Load Time In JavaScript

Reduce JavaScript page load time by minifying and compressing scripts, combining files, and caching them so browsers fetch less data on repeat visits.

Solomon Eseme

Solomon Eseme

July 4, 2023

23 min read

Using React Virtual DOM To Improve Web Application Performance
Using React Virtual DOM To Improve Web Application Performance

React's virtual DOM is an in-memory copy of the real DOM that React diffs to update only the changed elements, improving web application performance.

Bonnie

Bonnie

May 15, 2023

48 min read

How to use Date Picker in Selenium using JavaScript
How to use Date Picker in Selenium using JavaScript

Learn how to handle a date picker in Selenium using JavaScript: set up selenium-webdriver with Node.js and Express, then select dates in a jQuery UI calendar.

Solomon Eseme

Solomon Eseme

April 28, 2023

16 min read

A Complete Guide on how to run Mocha npm Testing with Node.js
A Complete Guide on how to run Mocha npm Testing with Node.js

In this Mocha NodeJS tutorial, learn how to effectively test your NodeJS modules using Mocha npm testing, a popular JavaScript test framework.

Kayode Oluwasegun

Kayode Oluwasegun

January 16, 2023

28 min read

Best 13 Tools To Test JavaScript Code
Best 13 Tools To Test JavaScript Code

This article lists the best tools to test JavaScript code in browsers

Swastika Yadav

Swastika Yadav

December 5, 2022

29 min read

Guide To Web Scraping With JavaScript And Selenium
Guide To Web Scraping With JavaScript And Selenium

Learn how to perform web scraping with JavaScript and Selenium listed in this guide. Discover techniques and practices for efficient data collection from websites.

Solomon Eseme

Solomon Eseme

July 18, 2022

29 min read

How To Download Files Using JavaScript and Selenium
How To Download Files Using JavaScript and Selenium

In this Selenium JavaScript tutorial, we explore how to write an automation test case for downloading files using JavaScript and Selenium WebDriver.

Harita Ravindranath

Harita Ravindranath

July 7, 2022

16 min read

How To Implement Drag And Drop In JavaScript Using Selenium?
How To Implement Drag And Drop In JavaScript Using Selenium?

Drag and drop in JavaScript is the GUI interaction where a user holds an element with the mouse, drags it to a new location, and releases it there, as seen in tools like Google Drive, Trello, and browser tabs. Selenium WebDriver's Actions class offers built-in dragAndDrop and dragAndDropBy methods to automate this exact workflow in JavaScript-based test scripts.

Harita Ravindranath

Harita Ravindranath

March 22, 2022

20 min read

How To Generate HTML Reports With WebdriverIO
How To Generate HTML Reports With WebdriverIO

In this WebdriverIO tutorial, you will learn about different WebdriverIO HTML reporters that can be generated using the WebdriverIO framework.

Aparna Gopalakrishnan

February 1, 2022

24 min read

Angular Testing With Jasmine And Karma Using Selenium [Tutorial]
Angular Testing With Jasmine And Karma Using Selenium [Tutorial]

A comprehensive tutorial on how to perform Angular testing with Jasmine and Karma using Selenium.

Harita Ravindranath

Harita Ravindranath

January 11, 2022

30 min read

How To Use Deep Selectors In Selenium WebdriverIO
How To Use Deep Selectors In Selenium WebdriverIO

This blog deep-dives into learning deep selectors in Selenium WebdriverIO and how to use them while writing tests for Selenium automation testing.

Harita Ravindranath

Harita Ravindranath

October 18, 2021

21 min read

Jest vs Mocha vs Jasmine: Comparing The Top 3 JavaScript Testing Frameworks
Jest vs Mocha vs Jasmine: Comparing The Top 3 JavaScript Testing Frameworks

In this blog, we compared three of the top JavaScript testing frameworks, i.e., Jest vs Mocha vs Jasmine - to help you pick the right one for you.

Harita Ravindranath

Harita Ravindranath

October 6, 2021

30 min read

Using Page Object Model (POM) Pattern In JavaScript With Selenium
Using Page Object Model (POM) Pattern In JavaScript With Selenium

The Page Object Model is a Selenium test automation design pattern that wraps all the elements, actions, and validations for a web page into one Page Object, centralizing locators so a UI change means editing only that object rather than every test. WebdriverIO implements it with a base Page class extended into LoginPage and HomePage objects using getter locators.

Harita Ravindranath

Harita Ravindranath

September 21, 2021

22 min read

How To Handle Frames & iFrames In Selenium JavaScript [Tutorial]
How To Handle Frames & iFrames In Selenium JavaScript [Tutorial]

Learn how to handle frames and iframes in Selenium WebDriver using JavaScript and perform automated browser testing of websites (or web apps) that use pop-up windows, nested frames (or iFrames), and browser windows.

Ryan Howard

September 2, 2021

22 min read

How To Use JavaScript Wait Function In Selenium WebDriver
How To Use JavaScript Wait Function In Selenium WebDriver

Learn how to effectively implement JavaScript wait function in Selenium WebDriver. Elevate your automation testing skills with this guide.

Harita Ravindranath

Harita Ravindranath

August 31, 2021

26 min read

How To Get Data Of Attributes In JavaScript With Selenium
How To Get Data Of Attributes In JavaScript With Selenium

Selenium's getAttribute() method reads HTML attribute values like id, class, or style in JavaScript tests, returning null when the attribute is absent.

Sachin

June 30, 2021

16 min read

How To Use Strings In JavaScript With Selenium WebDriver?
How To Use Strings In JavaScript With Selenium WebDriver?

Learn how JavaScript strings work as immutable primitives and how to use their built-in methods inside a Selenium WebDriver automation test.

Harita Ravindranath

Harita Ravindranath

June 21, 2021

24 min read

Selenium WebDriver: JavaScript Screenshot Guide
Selenium WebDriver: JavaScript Screenshot Guide

Take screenshots in Selenium WebDriver using JavaScript with the TakesScreenshot interface, covering full-page, WebElement, and Selenium 4 capture methods.

Praveen Mishra

Praveen Mishra

June 11, 2021

30 min read

How To Execute JavaScript In Selenium PHP?
How To Execute JavaScript In Selenium PHP?

Learn how to execute JavaScript in Selenium PHP with executeScript and executeAsyncScript, using PHPUnit examples that click elements and read page data.

Himanshu Sheth

Himanshu Sheth

April 5, 2021

18 min read

Jest Testing with Selenium and JavaScript: Beginner's Guide
Jest Testing with Selenium and JavaScript: Beginner's Guide

Learn Jest testing with Selenium and JavaScript: install Jest, write your first test, and run it locally or on a cloud Selenium grid.

Harshit Paul

Harshit Paul

April 2, 2020

36 min read

Mocha JavaScript Tutorial With Examples For Selenium Testing
Mocha JavaScript Tutorial With Examples For Selenium Testing

This Mocha JavaScript testing tutorial will help you become proficient for automated browser testing using Selenium & JavaScript

Aditya Dwivedi

Aditya Dwivedi

January 22, 2020

32 min read