Ask a Question

Object Mapping

Laxmi_1
Occasional Contributor

Object Mapping

Hi,



I have a 'DevComponents.DotNetBar.TabStrip' control in my application.

I tried recorded this control and noticed that the tabs are identified as pixels in strip and not by their names.

I opened Edit->Properties of project and in Object mapping, i have added this class to Win32 controls.

Then i tried recording again. But still i see that its being recorded as pixels.



Does Object mapping not support mapping this way and treat this control similar to Win32 tab control and record by tab names?

Please reply.



Thanks,

Laxmi
2 REPLIES 2
syedsafvan
Contributor

RE: Object Mapping

Laxmi,



I have download a sample application from http://www.devcomponents.com/dotnetbar/download.aspx and tried to work with it.




I am able to clearly identify the tab strip. The tab strip has the WndClass as WindowsForms10.Window.8.app.0.378734a and the ClrFulClassName as DevComponents.DotNetBar.TabStrip  and the ProductName as DevComponents.DotNetBar.




I am not able to create your issue and this control has methods like SelectNextTab and SelectPreviousTab whish should enable all the necessary tab operations.




Thankyou







Syed Ahmed Safvan

RE: Object Mapping

Hi Laxmi,


TestComplete has no special support for the control. However, we have an appropriate suggestion in our DB, and your request has increased its rating. In the meantime, you can use the script below to select the needed tab:


//JScript

tabStrip = //... obtain the control

tabStrip.SelectedTab = tabStrip.Tabs.Item(<TAB_INDEX>);



Best regards,
Alexey

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: