Is it possible to see the HTML of the âPengaduan DP 1â element?
Also note that you can also use, WebUI.findWebElement() method, rather than using the one associated with the CommonHelper.
Edit: I reread how the âdrop-downâ works and I have a similar(??) element for who assisted the customer/client. Are you just trying to âsetTextâ or âsendKeysâ to the element and that is what is not working? Not the selection of the drop-downâyet.
gCustAssist = 'JKT_GATEWAY'
WebUI.click(findTestObject('myPage/input_GeneralInfo.CustAssist'))
// throw in the name we will be searching for
WebUI.setText(findTestObject('myPage/input_GeneralInfo.CustAssist'), gCustAssist)
// wait until get search result back
WebUI.waitForElementVisible(findTestObject('myPage/h4_Worker Search'), 10)
The âh4_Worker Searchâ is a reference to the first item in the drop-down that I created for the OR of the pathway to this element. To figure that out, I had to right click on the first item of the drop-down and select âInspectâ (do this twice) and the HTML displays directly on the drop-down element. Alternatively, you can try with right click on the first item of the drop-down and select âCapture Objectâ and see if that works for you.
And finally, select my choice: