Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with Spying HTML Table
#3
Not Solved
Sounds to me like it is one of two reasons:

1. Either the table is something that looks like a table, but is not (like DIV and SPAN tags with borders) or;
2. You are not selecting the table out of the hierarchy when spying.

If it is number 2 see the attached capture of the Object Spy of this page. Notice that to look at the table properties, you have to select it in the hierarchy. The item you click on when spying is going to return the topmost object for the coordinates you click. If you want to get something deeper on the page, you have to explicitly select it down the hierarchy in the Spy or when you are adding it to the repository.

If it is number 1, then you are going to have to look at the page's source code to determine what kind of objects you are dealing with. If they are DIVs or SPANs with HTML IDs, you could try to define repository objects based on that information. If you could provide the source, I could be more helpful.

If you do end up finding that you can identify the WebTable, then one of the easiest ways to activate the correct WebCheckbox would be something like:

Code:
[color=navy][b]Dim[/b][/color] row

row = Browser([color=maroon]"<Browser Name>"[/color]).Page([color=maroon]"<Page Name>"[/color]).WebTable([color=maroon]"<Table Name>"[/color]).GetRowWithCellText([color=maroon]"<Text you want to search for>"[/color])

Browser([color=maroon]"<Browser Name>"[/color]).Page([color=maroon]"<Page Name>"[/color]).WebTable([color=maroon]"<Table Name>"[/color]).ChildItem(row, [color=maroon]3[/color], [color=maroon]"WebCheckBox"[/color], [color=maroon]0[/color]).[color=navy][b]Set[/b][/color] [color=maroon]"ON"[/color]


Attached Files Image(s)
   
Reply


Messages In This Thread
Help with Spying HTML Table - by gsatle - 09-30-2010, 04:02 PM
RE: Help with Spying HTML Table - by guin.anirban - 09-30-2010, 10:01 PM
RE: Help with Spying HTML Table - by cdesserich - 10-01-2010, 02:32 AM
RE: Help with Spying HTML Table - by jerel2k11 - 05-03-2011, 10:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Customized HTML reports in QTP azeem 11 49,495 12-31-2016, 02:57 PM
Last Post: chevronneraji
  [UFT] Get text into DIV through HTML tag robertosalemi 2 5,533 03-29-2016, 09:43 PM
Last Post: robertosalemi
  How to attach HTML file to Email Naresh 0 3,070 04-06-2015, 02:04 PM
Last Post: Naresh
  System hangs while spying an object in Windows 7 OS prithwiraj1990 0 2,019 08-06-2013, 05:45 PM
Last Post: prithwiraj1990
  How to generate QTP report in a new file(html)? yogesh kancherla 5 14,893 10-21-2012, 04:52 PM
Last Post: yogesh kancherla

Forum Jump:


Users browsing this thread: 1 Guest(s)