Page 1 of 1

unable to click option within select tag

Posted: Wed Sep 06, 2017 9:48 am
by PaulineSinclair
hi, currently i am having a combo box which is identified as SelectTag in ranorex.
I need to click option within that combo box.
Code which i have written:
Ranorex.SelectTag searchCombo = ecmMainPage.FindSingle("/dom[@domain='" + Constants.SERVER_PORT + "']//select[@id='select_savedsearches']");
searchCombo.Focus();
searchCombo.Click();
Ranorex.OptionTag savedSearch = searchCombo.FindSingle("/dom[@domain='" + Constants.SERVER_PORT + "']//select/optgroup[@label='LocalSearch']/option[@InnerText='mysearch']");
savedSearch.Focus();
savedSearch.Click();
Please let me know.

Re: unable to click option within select tag

Posted: Thu Sep 07, 2017 11:28 am
by odklizec
Hi,

Please post a Ranorex snapshot (not screenshot!) of the problematic select tag. Eventually, please post a HTML sample code of given combo box. Without (at very least) Ranorex snapshot, it's hard to suggest something reliable. Thanks.