Is there a way to determine the type of web element? I want to determine whether a web element is a textbox or a dropdown box. Is there a way to determine that using webdriver + Java ?
使用在WebElement
界面( http://selenium.googlecode.com/svn/trunk/docs/api/java/org/openqa/selenium/WebElement.html )中定义的getTagName()
和getAttribute(java.lang.String name)
方法。 。
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.