ChromeDriver high memory / CPU usage and random hanging usually happens because of: Too many Chrome processes/tabs Selenium waiting ...
Read More
Hi
Automatically publish/deploy an ASP.NET application to IIS using C#
using System; using System.Configuration; using System.IO; class Program { static void Main() { string sourcePath = ...
Read More
Delete a file in Node.js
const fs = require("fs/promises"); const path = require("path"); const filePath = path.join(thumbDir, fileName); try { ...
Read More
Enable IIS using Server Manage
1️⃣ Open Server Manager (Start → Server Manager) 2️⃣ Click Add roles and features 3️⃣ Click Next until you reach Server Roles 4️⃣ ✅ Ch...
Read More
validate barcodes so that only valid 13-digit numeric barcodes
string barcodes = string.Join(",", result.data .Where(a => !string.IsNullOrEmpty(a.BarcodeValue)) // ignore null/e...
Read More
leading zeros removed but then still ensure it becomes a fixed 13-digit barcode
string barcodes = string.Join(",", result.data.Select(a => { if (long.TryParse(a.BarcodeValue, out long num)) ...
Read More
Remove the leading zero(s) before joining, you can parse to a number and back to string.
string barcodes = string.Join(",", result.data.Select(a => { if (long.TryParse(a.BarcodeValue, out long num)) ...
Read More
set dynamic user-data-dir using selenium C#
set dynamic user-data-dir generate a temporary folder at runtime and pass it to Chrome. using OpenQA.Selenium; using OpenQA.Selenium.Chrom...
Read More
Subscribe to:
Posts (Atom)