aqObject.CheckProperty to verify the item selected in the dropdown
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2019
06:27 PM
01-14-2019
06:27 PM
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
Solved! Go to Solution.
2 REPLIES 2
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2019
04:23 AM
01-15-2019
04:23 AM
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
================================
/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
================================
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2019
04:35 AM
01-15-2019
04:35 AM
Thanks it is working.
