Friday, August 8, 2008

17.how we can take data in the username field text box into variable in web application explain with example and give all functions to get data into v

A.i can tell you the procedure to get the data of username if u can read properly then u might be getting the result. just declare a variable
x=browser(browser).page(pagename).setROproperty("innertext")
msgbox thats it

Any Application, it may be web or it may be window based applications, we usegetroproperty() method to get the data from the Editbox.Same way if u want to set the data to the editbox we use set()method.

for example:
Dim variable name
variable name = Browser(browser).page
(pagename).GetROproperty("Logical name")

if u want to print in dialogbox use msgbox()function OR
if u want to print in test result use reporter.reporter
event() function

No comments: