Hi everyone, can you help me to solve this problem?
So, the case failed cause (Element should have been “select” but was “span”). In my case, I want to set value for input field using AJAX.
In my Test Case I succed to Select Option by Value for Kota/Kabupaten, but it error for the next step Select Option by Value for Kecamatan. I set those element in object repository with attribute id .
sorry for the screenshot mistake, the value kelurahanSelect2 it should kecamatanSelect2, I took a wrong screenshot
Hi,
Even after you correct the selected locator to //*[@id='kecamatanSelect2']
, it also did not work? Or have you been able to fixed it?
For your second drop-down, I believe you need to click on the drop-down before you can get access to the items to be selected (with AJAX).
And, remember the two options of selectOptionByValue() and selectOptionByLabel().