I'm having an issue automating a specific aspect of our application and I have exhausted every other resource that I know of (in addition to searching these forums extensively).
Our application uses a popular jquery library to render our dropdowns called "chosen.js".
My hope is that someone out there has both heard of, and uses chosen enough to provide some insight or advice.
I've tried several approaches, but the closest I can get is something like this:
/** ddlOrderDueOptionDefault is a RepoInfoItem whose xpath points at the <select> element that needs to be automated */ DivTag ddl = ddlOrderDueOptionDefault.FindAdapter<SelectTag>().NextSibling.Element; IList<LiTag> options = ddl.Find<LiTag>(".//li"); foreach(LiTag option in options) { ddl.Click(); option.Focus(); option.Click(); }This is correctly finding the <li> elements that represent options within the <div>, but it seems like the options are going out of scope (most likely thanks to the javascript driving the control destroying and re-creating these elements every time the controls are interacted with in the browser (ie. hover, click, etc.)).
In my previous interactions with the Ranorex support staff, there was some suggestion that Ranorex doesn't play nice with dynamic elements, and it seems like this might've been what Mubin was talking about.
If there's anyone out there that has encountered this and knows of a work-around or solution: Please Help!
Thanks,
G.W.