A web page displays a list of items as a bulleted list ( using <ul> and <li>
tags and not as table rows). I need to read this list and verify the sort order. I tried using web_obj_get_text() function. This is returning all the list items. But there is no mechanism for parsing the 'text' and separating the items.
Pls guide me on some other approach for this.
Thanks in Advance
[ 07-12-2006, 03:49 PM: Message edited by: Mala Harish ]
Sorry - Just wanted calrification from earlier, as without the exact conditions at times, we all just go around in circles.
Have you tried pulling the html from the page back with the inner_html and/or outer_html properties of the win_get_info()? That will pull back the html code (if the string length isn't too long), and you caould parse the information exactly.
Insanity: doing the same thing over and over again and expecting different results
I tried using the web_obj_get_info() function to retrieve the inner_html property. But it is not able to return the entire string. Probably its too long.
Here is another way I tried and I feel I am very close to the solution.
I found that the entire list is in a single table cell. So I used web_obj_get_child_items() function. This can be used for returning the physical description of each of the links in the table.
Then I used the return object of web_obj_get_child_items()in web_obj_get_info()to get the "html_name" property. But this is giving the error "General Error".
Now I am trying to use GUI_buf_get_logical_name () function to get the logical names of the list items (The logical names in the GUI map happen to be same as the list item names). But I am not able to make this work. Its returning a null string.
[ 07-13-2006, 04:09 PM: Message edited by: Mala Harish ]