Lianne
3 months agoNew Contributor
ClickItem not selecting the proper item from a dropdown
I am working with TestComplete for the first time, evaluating it for ease of use for our organization. I'm a tester, not a developer
I tried recording a test that fills out a form including a dropdown list. The code generated by a record as JavaScript shows as
browser.pageLeaveHomePageGc.framePtifrmtgtframe.formW3lvLeaveTranG.selectGDerivedW3lvDescr500.ClickItem("Vacation");
However, when I play it back, it just clicked on the first (sometimes second) item in the dropdown list, not the item that I recorded selecting. There are a large number of items in the dropdown list (20+)
Is there a different sort of command that would select the correct item? I tried recording as script and recording as keyword, but still got the same result