07-30-2009, 01:46 AM
Hi,
My web page displays the search results and a text at the top of the results table as " 100 records" , " 200 records"..etc.. basically the number of records returned from the Search,
Now I have to capture that text for my testing.
This text is mentioned in the table row inside the <TD> tag..
i was able to capture the web element from the Active screen for that element, but i am not sure which property to use to extract the value
The screen looks like this
--------------------------------------------------------------------
Summary 100 records
--------------------------------------------------------------------
Here is my code: this returns the value "Summary" but i am looking to get the value as "100 records"
any help??
Thanks,
Geetha
My web page displays the search results and a text at the top of the results table as " 100 records" , " 200 records"..etc.. basically the number of records returned from the Search,
Now I have to capture that text for my testing.
This text is mentioned in the table row inside the <TD> tag..
i was able to capture the web element from the Active screen for that element, but i am not sure which property to use to extract the value
The screen looks like this
--------------------------------------------------------------------
Summary 100 records
--------------------------------------------------------------------
Here is my code: this returns the value "Summary" but i am looking to get the value as "100 records"
Code:
txtstr1 = Browser("MDC").Page("MDC").Frame("mdma_bottom").WebElement("pgrSdpSummary:Page:ddlPage").GetROProperty("text")
any help??
Thanks,
Geetha