WindowText Problem
Posted: Tue Jun 23, 2009 8:42 pm
Hello,
I am having trouble Validating Text on a Qt form I am trying to test. During the recording session I click the validate button and Ranorex highlights the Qt widget that contains the Text I want to validate. In this case its the title of the form "ADSI Configuration Utility".
However, in the Properties Dialog Ranorex shows the WindowText value as "title label". So its giving me the name of the Qt Widget rather than value. I tried to manually change the code but of course it failed during playback. Is there anyway just to validate the correct Text appears on a Qt form?
Here is the Ranorex code:
Report.Info("Validating AttributeEqual condition (WindowText='ADSI Configuration Utility') on item 'ElementAdsicfg (FormADSI_Configuration_Utili)'."); Validate.Attribute(repo.FormADSI_Configuration_Utili.ElementAdsicfg, "WindowText", "ADSI Configuration Utility");
and the log:
<message time="2009/06/23 14:25:04.228" level="FAILURE" category="Validation">
<![CDATA[Attribute 'WindowText' of element '{Unknown:QWidget}' does not match the specified value (actual='title label', expected='ADSI Configuration Utility').]]>
I am having trouble Validating Text on a Qt form I am trying to test. During the recording session I click the validate button and Ranorex highlights the Qt widget that contains the Text I want to validate. In this case its the title of the form "ADSI Configuration Utility".
However, in the Properties Dialog Ranorex shows the WindowText value as "title label". So its giving me the name of the Qt Widget rather than value. I tried to manually change the code but of course it failed during playback. Is there anyway just to validate the correct Text appears on a Qt form?
Here is the Ranorex code:
Report.Info("Validating AttributeEqual condition (WindowText='ADSI Configuration Utility') on item 'ElementAdsicfg (FormADSI_Configuration_Utili)'."); Validate.Attribute(repo.FormADSI_Configuration_Utili.ElementAdsicfg, "WindowText", "ADSI Configuration Utility");
and the log:
<message time="2009/06/23 14:25:04.228" level="FAILURE" category="Validation">
<![CDATA[Attribute 'WindowText' of element '{Unknown:QWidget}' does not match the specified value (actual='title label', expected='ADSI Configuration Utility').]]>