简体   繁体   中英

Unable to get value/text from HTML Dom. I have used getAttribute() and getText() from Selenium WebDriver

I have tried to get text/value from Html Dom by using getAttribute(); and getText(); from WebDriver but i didn't get any value into console. Plz help me get rid of this issue.In the mentioned image developers didn't provide any Value attribute to get text.

为了获得元素的值,您可以通过

document.getElementById("Sal").value

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM