Wednesday, March 14, 2012

How to get the Element type in Selenium

Below command can be used to get the Element type i.e input,textarea,select..etc
selenium.getEval(String.format("this.browserbot.getCurrentWindow().document.getElementById('%s').type", ElementId)

No comments: