简体   繁体   中英

How to determine the input type of a web element using Selenium Webdriver + Java?

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.

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