Forum Discussion
kish
13 years agoContributor
Hi,
Thanks for your quick reply. I have tried , but TC is not clicking on the link in the cell.
Attached the correct screenshot this time.
function CancelInvoice()
{
//Runner.CallMethod("AmendInvoice.AmendInvoice");
var invoicetable = NameMapping.Sys.IEXPLORE.pageCustomerrenewaldetails.panelMsDlgcontent_2.panelMsDlgborder.panelMsDlgframecontainer.frameDlgframecc7178db6cb84d9880b.formAspnetform.panelS4Workspace.panelS4Bodycontainer.panelS4Mainarea.panelMsoContenttable.panelS4Ba.panelMsBodyareacell.panelCtl00MsoContentdiv.panelContainer.panelOrderdetailszone.table.cellMsozonecellWebpartctl00MG65f.tableS4Wptoptable.cell.panelWebpartctl00MG65f23335Bacc4.panelCtl00MG65f23335Bacc48199973.panelCtl00MG65f23335Bacc48199973.panelCtl00MG65f23335Bacc48199973.panelCtl00MG65f23335Bacc48199973.panelCtl00MG65f23335Bacc48199973.panelCtl00MG65f23335Bacc48199973.tableCtl00MG65f23335Bacc48199973;
var count = invoicetable.RowCount;
Log.Message(count);
if(count>1)
{
for(i=0; i<(invoicetable.rows.length)-1; i++)
{
Log.Message(invoicetable.rows.length);
for (j = 0; j < invoicetable.rows.item(i).cells.length; j++)
{
Log.Message("Cell " + j + ": " + invoicetable.rows.item(i).cells(j).innerText);
var x = invoicetable.FindChild("innerText", "View", 1);
y = x.Parent;
if(y.Exists)
{
y.Click();
}
}
}
}
checked Additional information in the log. 'A click at point (493, 29) with no key pressed' is displayed.
Thanks for your quick reply. I have tried , but TC is not clicking on the link in the cell.
Attached the correct screenshot this time.
function CancelInvoice()
{
//Runner.CallMethod("AmendInvoice.AmendInvoice");
var invoicetable = NameMapping.Sys.IEXPLORE.pageCustomerrenewaldetails.panelMsDlgcontent_2.panelMsDlgborder.panelMsDlgframecontainer.frameDlgframecc7178db6cb84d9880b.formAspnetform.panelS4Workspace.panelS4Bodycontainer.panelS4Mainarea.panelMsoContenttable.panelS4Ba.panelMsBodyareacell.panelCtl00MsoContentdiv.panelContainer.panelOrderdetailszone.table.cellMsozonecellWebpartctl00MG65f.tableS4Wptoptable.cell.panelWebpartctl00MG65f23335Bacc4.panelCtl00MG65f23335Bacc48199973.panelCtl00MG65f23335Bacc48199973.panelCtl00MG65f23335Bacc48199973.panelCtl00MG65f23335Bacc48199973.panelCtl00MG65f23335Bacc48199973.panelCtl00MG65f23335Bacc48199973.tableCtl00MG65f23335Bacc48199973;
var count = invoicetable.RowCount;
Log.Message(count);
if(count>1)
{
for(i=0; i<(invoicetable.rows.length)-1; i++)
{
Log.Message(invoicetable.rows.length);
for (j = 0; j < invoicetable.rows.item(i).cells.length; j++)
{
Log.Message("Cell " + j + ": " + invoicetable.rows.item(i).cells(j).innerText);
var x = invoicetable.FindChild("innerText", "View", 1);
y = x.Parent;
if(y.Exists)
{
y.Click();
}
}
}
}
checked Additional information in the log. 'A click at point (493, 29) with no key pressed' is displayed.
Related Content
- 7 months agopaarmann-ara
- 9 years agoteak
- 5 years agoToananas
Recent Discussions
- 5 hours agoSubhraDas
- 10 hours agoJacobjacob44