How to get the text value of any object?

We can get the text value by the following methods,

E.g.,

1)Window("Windows Internet Explorer").Activate

text= Window("Windows Internet Explorer").WinObject("Internet Explorer_Server").GetVisibleText()

Msgbox text

Note - GetVisibleText    will only catch the text, which is visible.

2)text = Browser("<Name>").Page("<name>").Object.documentElement.innerText

Msgbox text

Note – without scrolling,we can get the text value

Comments

Popular posts from this blog

Is QA a easy job?

Latest Version of TestComplete

Successful tester