Contributions
Position of the tree items is inter changed..
Hi all i have a little problem , i want to check tree view items under the root node ----rootnode | ......item 1 | ......item 2 | ......item 3 | ......item 4 | ......item 5 I am geting the text of these items with treeviewobject.SelectedNode.Nodes.Item(i).Text through a loop and comparing them with the expeceted item in the array. Problem is that when treeviewobject.SelectedNode.Nodes.Item(i).Text i get the items then item number 3 and item number 4 are interchanged when i get these item text.. item 3 displaying inplace of item 4 and item 4 in place of item 3 . How can i resolve this problem i want to compare the nodes under the root node with expeced data ???6.5KViews0likes0Commentshow to select radion button in list with out recording???
Hi all i have a little problem i want to select a radio button in the list pic is attached.. i am tring this http://support.smartbear.com/viewarticle/8998/ but its not working can any body tell me how to do this with script... -bestSolved15KViews0likes3CommentsPopupMenu item click not working...
i have a little problem i need to click popup menu item.im doing it as following way. i have all my object button names in the excel file when i click on button popupmenu appears i need to click on popupmenu item but its not working when i pick button object from the excel file but it works when i do it without picking it up from the excel file i have another check if object exists then click on the object code is as follows Function mo_DefineUndefineParam (defUndef) ExcelDriverPath1="D:\Perforce\ISCP_Main\Projects\ISCP_Test\Test\CardDesigner_New\ELEMENT_VariousViewerAndEditors\Stores\DB_DefineUndefine_Parameters.xls" Call DDT.ExcelDriver(ExcelDriverPath1,"Sheet1") While Not DDT.CurrentDriver.EOF parameterName=DDT.CurrentDriver.Value("Param_name") Log.Message parameterName&"-->" & Aliases.CardDesigner.editors.CardParameter.WaitAliasChild(parameterName,500).Exists If defUndef="Define" Then If Aliases.CardDesigner.editors.CardParameter.WaitAliasChild(parameterName,1000).Exists then Call Aliases.CardDesigner.editors.CardParameter.WaitAliasChild(parameterName,1000).Click Call Aliases.CardDesigner.editors.CardParameter.WaitAliasChild(parameterName,1000).PopupMenu.Click("Define optional attribute") End if aqutils.Delay(500) Elseif defUndef="Undefine" Then If Aliases.CardDesigner.editors.CardParameter.WaitAliasChild(parameterName,1000).Exists then Call Aliases.CardDesigner.editors.CardParameter.WaitAliasChild(parameterName,1000).Click Call Aliases.CardDesigner.editors.CardParameter.WaitAliasChild(parameterName,1000).PopupMenu.Click("Undefine optional attribute") End If aqutils.Delay(500) End If Call DDT.CurrentDriver.Next() WEnd DDT.CloseDriver(DDT.CurrentDriver.Name) End Function Error appears on the following line Call Aliases.CardDesigner.editors.CardParameter.WaitAliasChild(parameterName,1000).Click Call Aliases.CardDesigner.editors.CardParameter.WaitAliasChild(parameterName,1000).PopupMenu.Click("Define optional Two error appear Overlaping window Can not obtain popupmenu item any help how what could be the problem?? Thanks in advance21KViews0likes1Comment- 1.7KViews0likes0Comments
Re: How to click buttons though loop.
hi following is my function Function mo_ChkParamList( lst_no ) ExcelDriverPath1="D:\Perforce\ISCP_Main\Projects\ISCP_Test\Test\CardDesigner_New\ELEMENT_VariousViewerAndEditors\Stores\DB_CardParameterList1.xls" Call DDT.ExcelDriver(ExcelDriverPath1,"Sheet1") Dim parameterName While Not DDT.CurrentDriver.EOF if DDT.CurrentDriver.Value("tab") <> "" then tabName=DDT.CurrentDriver.Value("tab") Log.message "##### TAB '"&tabName&"' #####" Call Aliases.CardDesigner.editors.CardParameter.tab_CardParameter.ClickTab(tabName) end if parameterName=DDT.CurrentDriver.Value("Param_name") log.message Aliases.CardDesigner.editors.CardParameter.WaitVBObject(parameterName,1000).Exists if DDT.CurrentDriver.Value("def_undef"&lst_no)= "visible" and Aliases.CardDesigner.editors.CardParameter.WaitVBObject(parameterName,5000).Exists then Log.Event"Correct Status Parameter '"&DDT.CurrentDriver.Value("Parameter")&"' is set to "& DDT.CurrentDriver.Value("def_undef"&lst_no) elseif DDT.CurrentDriver.Value("def_undef"&lst_no)= "invisible" and Not Aliases.CardDesigner.editors.CardParameter.WaitVBObject(parameterName,1000).Exists then Log.Event"Parameter '"&DDT.CurrentDriver.Value("Parameter")&"' is set to "& DDT.CurrentDriver.Value("def_undef"&lst_no) End if Call DDT.CurrentDriver.Next() WEnd DDT.CloseDriver(DDT.CurrentDriver.Name) End function //calling it as follows mo_ChkParamList 1 error line is Aliases.CardDesigner.editors.CardParameter.WaitVBObject(parameterName,1000).Exists every time it returns False even when object exists on screen while my object names are mentioned in excel file and i am concatinating it with rest of the mapped name. Excel file is attached. -farhan1.7KViews0likes0CommentsRe: How to click buttons though loop.
hi thanks for the reply! im tring to do it in a different way i have put all the objects names in an excel file then picking up these object with DDT, first im checking either the object exists or not but every time its shows me false value myobject.myObjectFromExcelFil.Exists error message appears that 'Unable to Find the Object' any body any idea? -fani1.7KViews0likes0Comments