Monday, July 27, 2026

How to interact with the non-interactable Web Elements in Selenium



How to interact with the non-interact able Web Elements in Selenium 


 // Find the non-interactable element

element WebElement element = driver.findElement(By.id("hidden-or-covered-button"));

// 2. Cast the driver to JavascriptExecutor JavascriptExecutor js = (JavascriptExecutor) driver;


// 3. Execute the native JS click method on the element js.executeScript("arguments[0].click();", element);

Saturday, March 14, 2026

jq command in Linux

 How to access the {"field-name":"cskmetro"}


echo "{\"field-name\":\"cskmetro\"}" |jq -r '."field-name"'


will give the field value

cskmetro

How to interact with the non-interactable Web Elements in Selenium

How to interact with the non-interact able Web Elements in Selenium    // Find the non-interactable element element WebElement element = dr...