Hello @Umesh, if you want to get the attributes of a web element in Selenium you can use following code snippet:
1. For Java:
driver.findElement(By.xpath(".//div[contains(@class,'value')]")).getAttribute("attr_name");
2. For Python:
driver.find_element_by_xpath("/form/div[2]/div/div[3]/center/input[2]").get_attribute("attr_name")
Check out the Selenium online training and learn more about using Java with Selenium.