10-01-2010, 02:32 AM
(This post was last modified: 10-01-2010, 02:33 AM by cdesserich.)
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:
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]