Forum Discussion
gk1970
15 years agoOccasional Contributor
Sorry Jared,I do not get that by using innerText of the cell and link,they are different so can't match by looping thro' table cells.
Looks like I need to write different functions for each object type.Earlier if the # is a text it works.
' this is for the link
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(4, 2).Table("HeaderResultsTable_DocumentNumberRN_3").Cell(0, 0).Table("HeaderResultsTable_PoNum_3_xc_").Cell(0, 2).Link("HeaderResultsTable_PoNum_3")
'This for the cell that shows the number as link
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(4, 2)
As shown in attachment,I trying to select radio button corresponding to link of 100026,but in another form it is in text,that works fine.
InnerText when output is different for the cell and the link.
The function for looping thro' table looks like cannot be generalized across forms which have different objecttypes.
I tried find() with ObjectType as attribute and Link as value and depth as 2000.It returns last column of the table.
Please guide
Looks like I need to write different functions for each object type.Earlier if the # is a text it works.
' this is for the link
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(4, 2).Table("HeaderResultsTable_DocumentNumberRN_3").Cell(0, 0).Table("HeaderResultsTable_PoNum_3_xc_").Cell(0, 2).Link("HeaderResultsTable_PoNum_3")
'This for the cell that shows the number as link
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(4, 2)
As shown in attachment,I trying to select radio button corresponding to link of 100026,but in another form it is in text,that works fine.
InnerText when output is different for the cell and the link.
The function for looping thro' table looks like cannot be generalized across forms which have different objecttypes.
I tried find() with ObjectType as attribute and Link as value and depth as 2000.It returns last column of the table.
Please guide
Related Content
- 5 months ago
- 2 years ago
- 11 months ago
Recent Discussions
- 3 days ago