Forum Discussion
11 Replies
- sgudaRegular ContributorHi this is the path of the image of run report where i click on to load the report it is showing in the name mapping.
Aliases.iexplore.pageFameFinancialAidPrintFafsaRe.formAspnetform.panelCtl00RadsplitterMain.tableRadSplitterCtl00Radsplitter.cellCtl00RadpaneMiddle.panelRadSplitterPaneContentCtl00.panelCtl00Ctl00Radapanlpanel.panelCtl00Radapanl.panelClwycontent.panelSearchcontent.panelClwysearchgrid.panelCtl00Contentplaceholder1Grd.tableCtl00Contentplaceholder1Grd.cell.imagebuttonCtl00Contentplacehold
How can i use the stop watch to get the elapse time to load the report. - sgudaRegular ContributorThis is the keyword test steps where i am clicking on the image to runt he report.
panelCtl00Contentplaceholder1Rad ClickItem "Search", ... Clicks the 'Search' item of the 'panelCtl00Contentplaceholder1Rad' bar.
imagebuttonCtl00Contentplacehold Click ... Clicks the 'imagebuttonCtl00Contentplacehold' control. - sgudaRegular ContributorHi
I tried this to wait until the property textnodeReportViewer appears . Thta works. But i want to specify the time to wait , so i tried the second statement , it is not working.
Can anybody please tell me how to use the wait property to wait untill that propery appears.
This is what looks like in name mapping.
Object Type: TextNode
Inner text :Report Viewer
Object identification: 0
Aliases.iexplore.pageFameFinancialAidPrintFafsaRe.formAspnetform.panelRadwindowwrapperCtl00Conten.table.cellRwtitlebar.tableRwtitlebarcontrols.cell1.WaitAliasChild(textnodeReportViewer)' if Aliases.iexplore.pageFameFinancialAidPrintFafsaRe.formAspnetform.panelRadwindowwrapperCtl00Conten.table.cellRwtitlebar.tableRwtitlebarcontrols.cell1.WaitChild(textnodeReportViewer,120000).Exists then
if
Aliases.iexplore.pageFameFinancialAidPrintFafsaRe.formAspnetform.panelRadwindowwrapperCtl00Conten.table.cellRwtitlebar.tableRwtitlebarcontrols.cell1.textnodeReportViewer.Exists Then
- sgudaRegular ContributorI am waiting for this to continue with my script please.
Please let me know in this case how can i use wait property or wait alias child or wait child propery. it is not allowing me to give the time in milli secs.. - tppeguContributorYou're using the WaitAliasChild method incorrectly. First of all, the child name parameter should be a string. Secondly, the method returns an object that represents the child, if it was found within the time specified, so it is that object's Exist property that you should be checking.
I'm most comfortable with JScript, but you should get the idea from this:
cell = Aliases.iexplore.pageFameFinancialAidPrintFafsaRe.formAspnetform.panelRadwindowwrapperCtl00Conten.table.cellRwtitlebar.tableRwtitlebarcontrols.cell1;
cellContent = cell.WaitAliasChild("textnodeReportViewer", 120000);
if(cellContent.Exists)
{
//found it
} - tppeguContributorBy the way, there's really no need to be using such long and unwieldy object names. Aliases are supposed to help you avoid that by letting you specify nice friendly names, and by letting you leave out the levels of the tree that you don't need to refer to.
- sgudaRegular ContributorHi Tony,
I got the Alias name by going to name mapping node page and by clicking on the cell1 object i am checking which has that child . That is what it displayed on the top right side.
How else can i get the shorter and friendly name than this. Please suggest . I will be haapy to use it.
- tppeguContributorOn the name mapping editor, you have an upper and a lower pane. The upper pane shows all the mapped objects. The lower pane shows all the aliases you've created for them. But you don't actually need to create an alias for every object; it's optional. So, if your upper tree shows something like this:
Sys
..iexplore
....pageFameFinancialAidPrintFafsaRe
......formAspnetform
........panelRadwindowwrapperCtl00Conten
..........table
............cellRwtitlebar
..............tableRwtitlebarcontrols
................cell1
Your alias tree doesn't have to show all those objects if you don't want them to. My guess is that you'll never have to deal directly with the "formAspnetform" or "panelRadwindowwrapperCtl00Conten" objects, in which case you could just leave them out and make your alias tree look something like this:
pageFinancialAid
..table
....cell1
Then in scripts you can refer to the cell1 object using the shorter name, Aliases.pageFinancialAid.table.cell1 - sgudaRegular ContributorHi Tony,
So you mean we can control how it can appear in the nema mapping under Aliases. Cna you please explai how can i do that. - tppeguContributorYou can drag items from the top pane into the aliases pane, and then rename them however you see fit. The structure of the aliases tree can be almost whatever you want, with one limitation: if you make one object a child of another, then it must actually be a descendant of that object in the main tree. You can also have multiple aliases for the same object.
Also, you may want to get into the habit of using the "Skip" button when you create new mappings. The effect of this button is exactly the same as the "OK" button, except that it will not create an alias. This leaves you free to create aliases only for the objects you want.