vijay_rout21
13 years agoNew Contributor
Not able to select a particular item from a drop down list in script
Hi,
I am also facing a similar problem. I am writing the script for a web page manually in JavaScript using Name Mapping. There is a part where TestComplete has to select a value from a drop down list.
First i tried using the text and later using the index. When i am playing it back TestComplete is not throwing any error but its not selecting any value from the drop down list. Thats why i'm unable to write the script further, because if i write next step, Test Complete is throwing the error for that previous step.
Here are the lines of code:
1. Using Index:
Aliases.browser.selectMaincontentDdlcustomrname.ClickItem(2);
Aliases.browser.selectMaincontentDdlcontactperso.ClickItem(1);
2. Using Text
Aliases.browser.selectMaincontentDdlcustomrname.ClickItem("AMERICAN CONSULATE");
Aliases.browser.selectMaincontentDdlcontactperso.ClickItem("FAYAZ HUSSAIN");
Do you have a solution to this?
I am also facing a similar problem. I am writing the script for a web page manually in JavaScript using Name Mapping. There is a part where TestComplete has to select a value from a drop down list.
First i tried using the text and later using the index. When i am playing it back TestComplete is not throwing any error but its not selecting any value from the drop down list. Thats why i'm unable to write the script further, because if i write next step, Test Complete is throwing the error for that previous step.
Here are the lines of code:
1. Using Index:
Aliases.browser.selectMaincontentDdlcustomrname.ClickItem(2);
Aliases.browser.selectMaincontentDdlcontactperso.ClickItem(1);
2. Using Text
Aliases.browser.selectMaincontentDdlcustomrname.ClickItem("AMERICAN CONSULATE");
Aliases.browser.selectMaincontentDdlcontactperso.ClickItem("FAYAZ HUSSAIN");
Do you have a solution to this?