How can we find the value of different attributes like name, class, and value of an element?
Hi Dipen Soni,
Using getAttribute(“{attributeName}”) method, we can find the value of different attributes of an element e.g.-
String valueAttribute =
driver.findElement(By.id("locator")).getAttribute("value");