Hi i have this html code:
<div id="idvalue" value="56"></div>
And i want to get the value '56'. How can i do that? I tried this but it returns null.
System.out.println(driver.findElement(By.id("idvalue")).getAttribute("value"));
I am using Selenium 2 Please help..
System.out.println(driver.findElement(By.id("idvalue")).getText());<div id="idvalue" value="56">test</div>it returns "test"id="idvalue"System.out.println(driver.findElement(By.id("idvalue")).getCssValue("value"));