Forum Discussion
9 Replies
- vadaliprasadOccasional ContributorHi,
The problem is now resolved with the latest version of Test Complete 9.2 - googleid_105206ContributorI resolved the above mentioned issue . i can able to click specific tab item in the flex tab bar.please follow the code.
Set Context=Sys.Process("firefox").Page("*")
PropNames = Array("FlexObject.dataProvider.childDescriptors.item2.id")
PropValues = Array("uploadNC")
Set ItemObject =Context.FindChild(PropNames, PropValues, 10)
IF ItemObject.Exists Then
ItemObject.Click
End if
Thanks,
Vijay - googleid_105206ContributorHi
Above code currently not working . please suggest me if any other way to handle this type object.
Thanks,
Vijay - Anonymous
Hi Vijay,
First of all, please update to the latest TestComplete version (v. 8.70) and check whether the problem is reproduced there.
If it is, let me know what method is used to click the specified tab. Also, please check whether the following code works for you:
Set tabBar = 'obtain the control
Call tabBar.Tab("TabName").Click 'replace TabName with the actual value - googleid_105206ContributorHi Tanya,
iam sending Tabs developed code.Please follow the code and suggest a solution.
<s:TabBar id="tabs" dataProvider="{stageTabs}" width="100%" change="tabs_changeHandler(event)"/>
<mx:ViewStack id="stageTabs" width="100%" height="100%" creationPolicy="all">
<s:NavigatorContent id="stageInfoNavContent" label="{resourceManager.getString('resources','StageDetails.label.stageInfo')}" width="100%" height="100%">
<workflowbuilder:StageInfo id="stageInfo" name="stageInfo" stageInfoId="{this.stageId}"
width="100%" height="100%" />
</s:NavigatorContent>
<s:NavigatorContent id="stagePolicyNavContent" label="{resourceManager.getString('resources','StageDetails.label.stagePolicy')}" width="100%" height="100%">
<workflowbuilder:StagePolicy id="stagePolicy" name="stagePolicy" stagePolicyId="{this.stageId}"
width="100%" height="100%" />
</s:NavigatorContent>
<s:NavigatorContent id="stageNotificationNavContent" label="{resourceManager.getString('resources','StageDetails.label.stageNotification')}" width="100%" height="100%">
<workflowbuilder:StageNotification id="stageNotification" name="stageNotification" stageNotId="{this.stageId}"
width="100%" height="100%" />
</s:NavigatorContent>
</mx:ViewStack>
Thanks,
Vijay - googleid_105206ContributorHi,
TestComplete version (v. 8.70) also the problem is reproduced .
Followed your given code also not worked. if any other method to click the specified
tab. already i send screen shots of Tab and object browser property's and Tab developed code also.
Please suggest me How to click specified tab.
Thanks,
Vijay - Anonymous
Hi Vijay,
Could you please post here a line of the code demonstrating how you are clicking a tab? An alternative method is to provide us with your project. In this case, please zip your entire project suite folder along with the log of the failed test execution and send us the archive via our Contact Support form. - vadaliprasadOccasional ContributorHi Tanya,
I am on the same team as Vijay.
There are two cases here:
1. To click on a tab which says '+'
2. To click on a tab which says 'Collection 3(0)'
we could locate the tabbar object. But clicktab() method doesn't seem to work. Tried with both Index values of 0, 1etc as well as captions. Any argument provided throws 'Invalid argument'
We have a similar problem handling tabbar components 'Downloads', 'Uploads'
Any help will be greatly appreciated.
Hi Prasad,
As far as I know, Vijay was working with our Support Team on this issue (the M0097439 case). Could you please contact him to learn the details?