Print Page | Close Window

How to get text from runtime HtmlText

Printed From: One Stop Testing
Category: Testing Tools @ OneStopTesting
Forum Name: SilkTest @ OneStopTesting
Forum Discription: SilkTest is an automation tool for testing the functionality of enterprise applications in most versions of Windows, Sun Solaris 9 & 10, and Red Hat Enterprise Linux WS 2.1 & 3.0.
URL: http://forum.onestoptesting.com/forum_posts.asp?TID=996
Printed Date: 20Feb2025 at 2:55pm


Topic: How to get text from runtime HtmlText
Posted By: Addy
Subject: How to get text from runtime HtmlText
Date Posted: 26Apr2007 at 9:20pm
Hi

This is the senerio i am trying to get the text from runtime object.
Senerio: Enter a value in Weight field text box, right side of textbox conversion value is displayed with HtmlText. I want to get the text from that object. I had tried with index & window id tags. But it is returns null. But actually value is displayed on UI.

I tried methods GetText , GetCaption....

Any one suggest me how to resolve this issue...



Replies:
Posted By: Arun
Date Posted: 27Apr2007 at 2:42am
Run Browser.FlushCache() prior to reading the value from the converted object.

I ran into similar issues when a set of radio buttons were enabled when a check box was

checked. The browser cache does not refresh automatically and hence the original value is

returned even though the AUT displays new value in the object.

let us know how you make out on this suggestion.



Print Page | Close Window