Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to click on a selectlist control which I believe is developed using the YUI SDK. The IE developer control identifier tool tells me it is a Select (drop down). I use the following to click on / seelct an item in the list but , although I am seeing the item now in the visible portion of the control, it doesn't click on it. (I am however able to ascertain that 1-it exists, 2-is enabled BUT 3-the complete() method comes back FALSE when I debug. No matter how many seconds I sleep..

C#
bool blnExists = browser.SelectList(Find.ById("TableOfContents_MoveSelect").Exists; //THIS WORKS
bool blnEnab = browser.SelectList(Find.ById("TableOfContents_MoveSelect").Enabled; //THIS WORKS

bool blnComplete= browser.SelectList(Find.ById("TableOfContents_MoveSelect").Complete; //THIS DOESN'T WORK


browser.SelectList(Find.ById("TableOfContents_MoveSelect").Select();


So what could be stopping this from completing the load?


This SHOULD act as if manually I have click on the list item and a file be moved from one folder to another in my application.

It doesn't.

Any magic with WatiN's Select() method of the SelectList class anyone know's about?
Posted
Updated 28-Sep-11 14:43pm
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900