Playwright UI Automation Cheat Sheet

Playwright Automation

Playwright is a UI Test Automation framework from Microsoft. Below is a list of commands for your reference as a cheat sheet. Please note that since JS is asynchronous, we need to add an async block with await statements for each line of code.

Launch Browser

Supports browsers Chrome, Firefox, Webkit, Edge
====================================
Opens the browser in headless mode by default.

const { chromium } = require(‘playwright’); //similarly for {firefox}, {webkit}
(async () =>

Read More

IBM Cloud Data Center Operations: A Comprehensive Guide

IBM Cloud Data Center Operations

Server Chassis Indicators

What does the blue LED light on the front of a server chassis indicate?

  • a. Failing Drive
  • b. Server is running cold
  • c. Failing PSU
  • d. Universal Identifier is on

The blue LED light on the front of a server chassis typically indicates that the server is running cold.

Network Acronyms

PPR

What does PPR stand for?

  • a. POD Protection Routers
  • b. POD to POD Routers
  • C. POD to Public Routers
  • d. Private Production Routers

The acronym “PPR” stands for “POD to POD Routers.

Read More

Cybersecurity and Privacy: Concepts and Threat Modeling

Cybersecurity Concepts

Common Threats

1. Zero-Day Exploits

  • Definition: Targeting undisclosed software flaws, zero-day exploits vulnerabilities before developers can provide patches, posing a heightened risk due to the absence of immediate defenses.

2. Worms

  • Definition: Autonomous malware, worms spread across networks without user interaction, exploiting vulnerabilities. They pose serious threats by rapidly infecting systems and consuming network resources.

3. Viruses

  • Definition: Viruses are malicious code
Read More

Network Routing and Protocols: A Comprehensive Guide

Network Routing and Protocols

Bridge Potency and Packet Switching

1. Two networks are connected by two bridges, A and B. If bridge A is more potent and packet switching is limited to 1000 bits long, and bridge B is less potent but the exchange of packets is 1500 bits, which bridge works more efficiently?

Multihoming

2. Can you explain the reasons why alternative gateways (multihomed) are necessary?

A: Fault Tolerance. A multihomed site is immune to faulty traffic or access from any of the ISPs that serve

Read More

Understanding Ethernet and IP Addressing in Networking

LLC sublayer handles the communication between the upper layers and the lower layers. This is typically between the networking software and the device hardware. MAC is implemented by hardware, typically in the computer NIC, specifics 802.3 standards. 2 primary res. Media access control,Media access control is responsible for the placement of frames on the media

and the removal of frames from the media,Data encapsulation, frame assembly before transmission and frame disassembly upon reception of a

Read More

C Programming Concepts: File Handling, Data Structures, and Control Flow

File Opening Modes in C and File Copying

In C, you can open files in various modes, each serving a specific purpose:

File Opening Modes

  1. “r”: Opens a file for reading. The file must exist.
  2. “w”: Opens a file for writing. If the file exists, it’s truncated; if it doesn’t exist, a new file is created.
  3. “a”: Opens a file for appending. Writing operations append data to the end of the file.
  4. “r+”: Opens a file for both reading and writing. The file must exist.
  5. “w+”: Opens a file for reading and writing. If the
Read More