Active TopicsActive Topics  Display List of Forum MembersMemberlist  CalendarCalendar  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin


 One Stop Testing ForumTesting Tools @ OneStopTestingWinRunner @ OneStopTesting

Message Icon Topic: Winrunner with table object on web page.

Post Reply Post New Topic
Author Message
kajal
Newbie
Newbie
Avatar

Joined: 24Apr2007
Online Status: Offline
Posts: 21
Quote kajal Replybullet Topic: Winrunner with table object on web page.
    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?



Post Resume: Click here to Upload your Resume & Apply for Jobs

IP IP Logged
partha
Newbie
Newbie
Avatar

Joined: 25Apr2007
Online Status: Offline
Posts: 1
Quote partha Replybullet 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.



IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.125 seconds.
Vyom is an ISO 9001:2000 Certified Organization

© Vyom Technosoft Pvt. Ltd. All Rights Reserved.

Privacy Policy | Terms and Conditions
Job Interview Questions | Placement Papers | Free SMS | Freshers Jobs | MBA Forum | Learn SAP | Web Hosting