Interview Questions

How to get contents of a web page? (For Ex: "Yahoo" homepage)

SilkTest Questions and Anwsers


(Continued from previous question...)

98. How to get contents of a web page? (For Ex: "Yahoo" homepage)

BrowserPage.SetActive ()
Clipboard.SetText ()
BrowserPage.TypeKeys ("<Ctrl-a>")
BrowserPage.TypeKeys ("<Ctrl-c>")
list of string lsText = Clipboard.GetText ( ) // holds the browser page content

(Continued on next question...)

Other Interview Questions