ashutosh01
2 years agoContributor
Not selecting right dropdown
I have a script for selecting value in dropdown, the value to be selected is fetching from an excel.
but it always selects the wrong value from dropdown.
I also recorded it and when replayed it again it selected wrong value from dropdown.
why testcomplete is behaving this way in both scenarios?
piece of code is below
Browsers.Item(btChrome).Navigate(url);
let browser = Aliases.browser;
browser.BrowserWindow.Maximize();
let page = browser.pageDsrSupportTool;
page.checkboxConfigitemcheckbox11.ClickChecked(true);
page.selectInputvalue11.ClickItem("DOW");// here instead of DOW it always select other value
page.buttonOk.ClickButton();