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
Champion Level 2

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 Champion]
____
[Community Champions] 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 Champions]
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 Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
https://community.smartbear.com/t5/Community-Champions/About-the-Community-Champions-Program/gpm-p/252662
================================
Preetha
Occasional Contributor

Thanks it is working.

cancel
Showing results for 
Search instead for 
Did you mean: