Forum Discussion

gita3632's avatar
gita3632
Contributor
14 years ago

2 questions - 1- warning msg="The Control is Diabled " 2- msmq

Hi ,



Note:  All WPF application



Q1-   I captured a OK login btn object  and I then want to use the Click() method , Obj.Click(),  to click on that Btn,  but it does not click on it on the playback and instead gives me a warning message:    "The Control is Diasabled"!!!!!

Can not understand why, because if I run this method stand alone,  it will click the OK btn without a problem,  but when I click on it after I entered user and password,  it comes up with this message.  must be sometign sinple but can not figure it out.





Q2- on a WPF based application,  using TC, how can I write a message to MSQueue and how can I read a message from MSQueue?



Your kind response is kindly appreciated.



Gita

1 Reply

  • Hi,



    Q1 - probably, the target object is disabled when your test tries to click it. Try using the WaitProperty method to wait until you object's Enabled property returns true before clicking it.



    Q2 - the MessageQueue class is described here. You can work with it via CLR Bridge to do what you need. See the Calling Functions From .NET Assemblies help topic for information on how to use .NET classes in your scripts.