Ask a Question

aqObject.CheckProperty to verify the item selected in the dropdown

SOLVED
Preetha
Occasional Contributor

aqObject.CheckProperty to verify the item selected in the dropdown

Hi 

I am new to test complete scripting.

I am using chrome . Need to verify the default value selected in the dropdown.

 

the below code is used

titleCombo = p.NativeWebObject.Find("id","TitleId","SELECT");
Log.Message(titleCombo.wSelectedItem);  // returning 0
aqObject.CheckProperty(titleCombo,"titleCombo.wSelectedItem",cmpEqual,"0");

 

It is throwing error saying invalid property name. Pls help

2 REPLIES 2
AlexKaras
Community Hero

Hi,

 

The name of the property is wSelectedItem but not the titleCombo.wSelectedItem.

Thus, I think that the last line should be like this:

aqObject.CheckProperty(titleCombo,"wSelectedItem",cmpEqual,"0");

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
Preetha
Occasional Contributor

Thanks it is working.

cancel
Showing results for 
Search instead for 
Did you mean: