we can take the information from the appln by using the below commands.
getValue(): gets the value from input field.
str=selenium.getValue("id=ist-lib");
getHtmlSource():
we can take the source code of the current page to a string.
String str=selenium.getHtmlSource();
getBodyText():
to take text of the current page
getLocation():
gets the absolute url of the appln
getAllButtons:
String str[]=selenium.getAllButtons();
getAllLinks():
gets list of links which are in current page.
getTitle():
getAllFields():
gets the list of fields(type or textboxs) id's
getAllWindowNames():
take list of window names currently opened by selenium
getAllWindowIds()
getAllWindowTitles():
String str[]=selenium.getAllWindowTitles()
sysout(str[0])
sysout(str[1])
getValue(): gets the value from input field.
str=selenium.getValue("id=ist-lib");
getHtmlSource():
we can take the source code of the current page to a string.
String str=selenium.getHtmlSource();
getBodyText():
to take text of the current page
getLocation():
gets the absolute url of the appln
getAllButtons:
String str[]=selenium.getAllButtons();
getAllLinks():
gets list of links which are in current page.
getTitle():
getAllFields():
gets the list of fields(type or textboxs) id's
getAllWindowNames():
take list of window names currently opened by selenium
getAllWindowIds()
getAllWindowTitles():
String str[]=selenium.getAllWindowTitles()
sysout(str[0])
sysout(str[1])