Forum Discussion
Is there any properly like wText? That's where I would start.
I'd give you more specific suggestions, but I don't know the specifics of what type of application (Web, Desktop, Mobile), what component type/class it is, what you've tried, etc.
- msap6 years agoFrequent Contributor
yes, wText.Its a Desktop Testing.
How should I define list of options for status field:Active;Inactive;Cancelled.
layoutControl1.cbStatus.Click();
ComboBoxPopupListBox.ClickItem("Inactive");
MainMenu.Click("Save Changes");
Grid=frameworkComboBoxPopupListBox;
if(Grid.wItem(i) == "Active")
Log.Message("Can Create Acc")
else
Log.Message("Cannot Create Ac")- Marsha_R6 years agoChampion Level 3
You can use a list of Ifs
If active
do this
If inactive
do this other thing
If cancelled
do a different thing
or you can use nested ifs
if active do this
else if inactive do this other thing
else do a different thing
https://support.smartbear.com/testcomplete/docs/keyword-testing/reference/statements/if-then.html
- tristaanogre6 years agoEsteemed Contributor
Rather than checking Grid.wItem(i), replace that with Grid.wText. wText indicates what the currently selected item is.
Related Content
- 3 years agoramprabhus
- 5 years agopaarmann-ara
Recent Discussions
- 3 days agovladd1