Winrunner with table object on web page.
Printed From: One Stop Testing
Category: Testing Tools @ OneStopTesting
Forum Name: WinRunner @ OneStopTesting
Forum Discription: WinRunner is an automated functional GUI testing tool that allows a user to record and play back UI interactions as test scripts using a proprietary Test Script Language (TSL).
URL: http://forum.onestoptesting.com/forum_posts.asp?TID=917
Printed Date: 15Jan2025 at 3:59pm
Topic: Winrunner with table object on web page.
Posted By: kajal
Subject: Winrunner with table object on web page.
Date Posted: 24Apr2007 at 11:57pm
I am getting an
error message while reading a value from a cell in a table on a web
page. It displays the hand symbol to identify again the object. When
a data is not present in a particular cell under a table on web page,
it gives an error “Winrunner can not find the object … table_name”.
This is the code I am using –
set_window("Window_Name"); tbl_get_rows_count("table_name",iRow); for(i=1;i<=iRow;i++) { set_window("Window_Name"); rc=tbl_get_cell_data("table_name","#"&i,"#7",sVal); if(rc==E_OK) { pause(sVal); } }
Is
there any method or way which will first identify whether the execution
is successful or while reading a value it should not give any error
message?
|
Replies:
Posted By: partha
Date Posted: 25Apr2007 at 3:09am
The physical description of the table object is like -
"{ class: object, MSW_class: html_table, location: 3}".
I read the "availability" chapter. I tried the function
"web_tbl_get_cell_data ( table, row, column, starting_pos, out_text, out_actual_text_length
);" also which is specific to web page only but getting the same problem.
Appreciate if you can suggess any other way to handle the error displayed.
|
|