18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
Setting Combobox
Hi, I found postings along the line of
_setSelected(_f("abc").combobox(5),"selected value")
And I need to set values in a Rich Faces Combobox with the id "requestListForm:requestListTable:requestBinFiltercomboboxField"
How do I map that id into the example above? What does the (5) correspond to? (in my page it's the first combobox so perhaps(0)?
And is "abc" to be replaced by "requestListForm:requestListTable:requestBinFiltercomboboxField"?
I tried this:
_setSelected(_f("requestListForm:requestListTable:requestBinFiltercomboboxField").combobox(0),"New");
but it didn't work and lots of other guesses didn't either.
This is Firefox 3.6.22 runningon WndowsXP SP3 in Sahi Pro 3.6 (Build: 2011-08-17)
_setSelected(_f("abc").combobox(5),"selected value")
And I need to set values in a Rich Faces Combobox with the id "requestListForm:requestListTable:requestBinFiltercomboboxField"
How do I map that id into the example above? What does the (5) correspond to? (in my page it's the first combobox so perhaps(0)?
And is "abc" to be replaced by "requestListForm:requestListTable:requestBinFiltercomboboxField"?
I tried this:
_setSelected(_f("requestListForm:requestListTable:requestBinFiltercomboboxField").combobox(0),"New");
but it didn't work and lots of other guesses didn't either.
This is Firefox 3.6.22 runningon WndowsXP SP3 in Sahi Pro 3.6 (Build: 2011-08-17)
Comments
The person who can answer this probably already knows, but Rich Faces is a whole lot of Java Script which acts like html most of the time but is often very different.
The _f based APIs are for flex. Not for HTML pages. Is it possible to point to an example online where we can check and provide a solution?
Thanks,
Narayan
Our Rich Faces combo box is inside our firewall and I can't get you through it. I'll send you our page via email.
Here is a RichFaces combo box example which looks a lot like ours that you should be able to access.
Its an ht tp page at livedemo.exadel.com/richfaces-demo/richfaces/comboBox.jsf?c=comboBox
Thanks,
Craig