Contributions
Re: How to select specfic List item from dropdown and Comobox
Hi Vijay, I modified the code to fit into my script but still its not working.. The execution log says "ABC Select from Drop Down List" But in reality it does not click on it. Please check the below code: Sub test Dim ObjName, propNames, propValues ObjName, propNames, propValues propNames = Array("ObjectType", "ObjectIdentifier") propValues = Array("DropDownList","DropDownList591") set ListObject=ObjName.FindChild(PropNames,PropValues, 9) ListObject.Click ItemText="ABC" Set dataProvider=ListObject.FlexObject.dataProvider log.Message dataProvider log.Message dataProvider.length found = False For i = 0 To dataProvider.length If dataProvider.source.item(i).name=ItemText Then ItemIndexByText = i log.Message ItemIndexByText ListObject.FlexObject.ensureIndexIsVisible(ItemIndexByText) delay 2000 found = True Exit For End If Next If Not found Then Log.Error "DropDownList item """ & ItemText & """ was not found." 'Exit Sub End If Set app =ListObject.Parent Do Until app.ObjectType ="Scroller" Set app = app.Parent Loop ' Find the list item object by text propNames = Array("ObjectType", "ObjectIdentifier") propValues = Array("DropDownList","DropDownList591") Set item =app.FindChild(propNames, propValues, 4) If item.Exists Then item.Click Log.message ItemText& "Select form Drop down list" Else Log.message ItemText& "Was not Select form Drop down list" End If end sub Thanks, Bindhu3.7KViews1like0CommentsRe: How to select specfic List item from dropdown and Comobox
Hi, I need to select/click on an Item in Flex Drop down.What ever i do I was not able to select the item from the drop down. Please refer to the below code. sub Flex_ClickDropDownListItem dim count, i, j set ObjName = aliases.iexplore.pgeBS.cmbdropdown vData = "ABC" count = ObjName.ItemCount for i=0 to count-1 if ObjName.FlexObject.dataProvider.source.item(i).name = vData then ObjName.FlexObject.setFocus ObjName.ClickItem (i) exit for end if next End Sub In the above mentioned code, It is verifying the If condition but, does not click on the item. Test Complete Log says "Cannot activate theitem. Please provide me a solution for this as I have to deal with many drop downs in my application. Flex_ClickDropDownListItem count, i, j ObjName = .iexplore.pgeBS.cmbdropdownvData = "ABC"count = ObjName.ItemCount i=0 count-1 ObjName.FlexObject.dataProvider.source.item(i).name = vData ObjName.FlexObject.setFocusObjName.ClickItem (i)3.7KViews0likes0CommentsExecuting 2 projects under the Same Suite
Hi, I have a project which deals with windows application (AIR) and also a web application built on plain Java and HTML. I created a Project Suite under which I have 2 projects created to deal with them seperately as they 2 different applications. I have to execute them in such a way thatI should check the flow between these 2applications. Which would be the best way to do it using Test Complete apart from me executing the projects individually. Thanks, Bindhu7.1KViews0likes1CommentRe: Not able to highlight the mapped objects/objects in object browser
Alex, There are 2 properties dealing with Visibility of Objects. Visible Visible on Screen Which are you referring to? My application has Visible Property as True and Visible on Screen property as False. Thanks, Bindhu3.2KViews0likes0CommentsClick on a row inside a table
Hi, I am testing an AIR application where I have to click on a name(link) from the search results table. I am trying to use Find/FindAll methods to work on this table to give me an option to work on the child objects. y= wnd.tblSearchResult.Find(ObjectType,"AdvancedListBaseContentHolder",2, TRUE) But, "Y" is not returning a value. Can someone please help me with this. Scenario: Once the search results are displayed I have to click on name which navigates me to a different window. Test Complete: Test Complete identifies all rows/columns within the table as childs and the Tables object Type is "AdvancedListBaseContentHolder". Whichare the best property/method's to get the values required to perform my operation? Please respond.7.8KViews0likes2CommentsNot able to highlight the mapped objects/objects in object browser
Hi, I am currently using Test Complete 8.5for my application built with AIR(2.6). I was able to record the script and playback it using Test Complete. Issues: 1) Once I record the script objects are mapped automatically to Name Mapping. But, if i try to highlight them on application, It says "Cannot Highlight this object on Screen". If i double click on the Object in name mapping the properties window shows up. If i replay the same script it executes without any problem. 2) I tried to bring the object spy to identify object and yes.. it is able to identify the object. I Clicked on Highlight on Object Browser and it showed me the object in Object Browser with its properties. I click Highlight on screen and i get the message "Cannot Highlight this object on Screen". I am not sure what is blocking it from highlighting the object, while it is doing everything else on the object. Please advice..15KViews0likes13Comments