Question
2
Replies
681
Views
Posted: January 15, 2019
Last activity: February 1, 2019
Closed
Solved
Interogating combo box
Hello,
We are developing an RPA on an existing business process. we have a combo box to interrogate and select / choose a specific value but we couldn't succeed.
- when we got this control from web, it was created as txt box, we tried to set its value and text but didn't work..
- we tried to get the SELECT control using 'web control' >> 'live web controls' . then we tried some control methods to set its value as needed like:
- selectItemByIndex
- selectItemByText
- selectItemByValue
- set_innertext etc etc BUT .... nothing was happening to our combo box.. - Attachemetns:
- File controlmethods >> screenshot of control methods used to text combo box value
- File designBlock >> shows specific design blocks used to set combo box values
- File htmlCode >> html structure of the combo box we are trying to interogate the set its value as needed..May i ask if someone has an idea to how solve this one?
NOTE::: i already interrogated combo boxes and worked fine.. this one is a bit strange that doesn't go well...Many thanks in Advance
Asif
:
@AsifSafi
In looking at the dom HTML Code I see class="ng-pristine ng-valid default-option"
The classes starting with (ng) "ng-[something]" indicate to me the site is using the "Angular model".
Option 1) SR: Submit an SR/service request to Pega for a recommendation, as Pega is aware of the difficulty of interrogation with angular.
Option 2) Try: Set Focus on the comboBox and try using SendKeys (method is at the IEFrame level) until a better understanding of angular model is available. In some cases you may need to use sendkeys along with trigger of an event.
NOTE: SendKeys would not be the most preferred method
SendKeys Method: http://help.openspan.com/80/Adapters_Interrogation/SendKeys_Method.htm
Key Commands for SendKeys Method: http://help.openspan.com/80/Adapters_Interrogation/Key_Codes_for_Sendkeys_Method.htm