Forum Discussion
gk1970
15 years agoOccasional Contributor
You are right Jared.I was getting the link in that cell.Here is the code I used to get cell's HTML code
<TD class="x1l x50"><TABLE id=HeaderResultsTable:DocumentNumberRN:5 cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR id=HeaderResultsTable:DocumentNumberRow:5>
<TD id=HeaderResultsTable:DocumentNumberText:5>
<TABLE id=HeaderResultsTable:PoNum:5__xc_ cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD vAlign=top noWrap align=right><BR></TD>
<TD><BR></TD>
<TD vAlign=top><A class=xd id=HeaderResultsTable:PoNum:5 title=100187 href="OA.jsp?OAFunc=PO_ORDER&poHeaderId=%7B!!m8E5btWDb3EYNbw.u2qnpw%7D&poMode=viewOnly&retainAM=Y&addBreadCrumb=Y&_ti=40475076&oapc=8&oas=cI-hwVLKv6GNU7TU1b0mrA..">100187</A>
<SCRIPT>t('5')</SCRIPT>
<IMG src="/OA_HTML/cabo/images/swan/t.gif" width=5></TD></TR></TBODY></TABLE></TD>
<TD id=HeaderResultsTable:OrderNumberPendingChanges:5>
<SCRIPT>t('13')</SCRIPT>
<IMG src="/OA_HTML/cabo/images/swan/t.gif" width=13></TD></TR></TBODY></TABLE></TD>
The code is:.
Set panel = page.Form("DefaultFormName").Panel(0)
PropArray = Array("ObjectType", "Title")
ValuesArray = Array("Link", "100187") ' This is the # I 'm basing the search
Set aCell = Sys.Process("iexplore").Page("*").Form("DefaultFormName").Panel(0).Panel(2).Panel(0).Panel(1).Table(1).Cell(1, 0).Panel(0).Table(0).Cell(3, 0).Table(0).Cell(0, 0).Panel(0).Panel(3).Table(0).Cell(1, 0).Table(0).Cell(6, 2)
set w = aCell.FindChild(PropArray,ValuesArray, 20000)
Log.Message "Is found: " & w.Exists
Log.Message "Cell's HTML code in Remarks " & aCell.outerHTML
Log.Message "Cell's HTML code in Remarks ", w.outerHTML
Log.Message "Cpy from object finder :" & Sys.Process("iexplore").Page("*").Form("DefaultFormName").Panel(0).Panel(2).Panel(0).Panel(1).Table(1).Cell(1, 0).Panel(0).Table(0).Cell(3, 0).Table(0).Cell(0, 0).Panel(0).Panel(3).Table(0).Cell(1, 0).Table(0).Cell(6, 2).outerHTML
I attach this to show that somehow TC does not show up Log.Message "Cell's HTML code in Remarks ", w.outerHTML
[Please refer issue2.jpg]
issue3.jpg shows one of the pages i'm working on
Girish
<TD class="x1l x50"><TABLE id=HeaderResultsTable:DocumentNumberRN:5 cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR id=HeaderResultsTable:DocumentNumberRow:5>
<TD id=HeaderResultsTable:DocumentNumberText:5>
<TABLE id=HeaderResultsTable:PoNum:5__xc_ cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD vAlign=top noWrap align=right><BR></TD>
<TD><BR></TD>
<TD vAlign=top><A class=xd id=HeaderResultsTable:PoNum:5 title=100187 href="OA.jsp?OAFunc=PO_ORDER&poHeaderId=%7B!!m8E5btWDb3EYNbw.u2qnpw%7D&poMode=viewOnly&retainAM=Y&addBreadCrumb=Y&_ti=40475076&oapc=8&oas=cI-hwVLKv6GNU7TU1b0mrA..">100187</A>
<SCRIPT>t('5')</SCRIPT>
<IMG src="/OA_HTML/cabo/images/swan/t.gif" width=5></TD></TR></TBODY></TABLE></TD>
<TD id=HeaderResultsTable:OrderNumberPendingChanges:5>
<SCRIPT>t('13')</SCRIPT>
<IMG src="/OA_HTML/cabo/images/swan/t.gif" width=13></TD></TR></TBODY></TABLE></TD>
The code is:.
Set panel = page.Form("DefaultFormName").Panel(0)
PropArray = Array("ObjectType", "Title")
ValuesArray = Array("Link", "100187") ' This is the # I 'm basing the search
Set aCell = Sys.Process("iexplore").Page("*").Form("DefaultFormName").Panel(0).Panel(2).Panel(0).Panel(1).Table(1).Cell(1, 0).Panel(0).Table(0).Cell(3, 0).Table(0).Cell(0, 0).Panel(0).Panel(3).Table(0).Cell(1, 0).Table(0).Cell(6, 2)
set w = aCell.FindChild(PropArray,ValuesArray, 20000)
Log.Message "Is found: " & w.Exists
Log.Message "Cell's HTML code in Remarks " & aCell.outerHTML
Log.Message "Cell's HTML code in Remarks ", w.outerHTML
Log.Message "Cpy from object finder :" & Sys.Process("iexplore").Page("*").Form("DefaultFormName").Panel(0).Panel(2).Panel(0).Panel(1).Table(1).Cell(1, 0).Panel(0).Table(0).Cell(3, 0).Table(0).Cell(0, 0).Panel(0).Panel(3).Table(0).Cell(1, 0).Table(0).Cell(6, 2).outerHTML
I attach this to show that somehow TC does not show up Log.Message "Cell's HTML code in Remarks ", w.outerHTML
[Please refer issue2.jpg]
issue3.jpg shows one of the pages i'm working on
Girish
Related Content
- 2 years ago
- 5 years ago
- 8 months ago
Recent Discussions
- 22 hours ago
- 22 hours ago
- 5 days ago