Internet Explorer - Unable to select value in dropdown list.
Where as the same is working fine in chrome browser.
ps: Manually update the IE driver to v4.3 in below locaton:
<Katalon_Studio>\configuration\resources\drivers\iedriver_win64
otherwise even the sendkeys doesn’t work
import com.kms.katalon.core.testobject.ConditionType as ConditionType
import com.kms.katalon.core.testobject.TestObject as TestObject
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
WebUI.openBrowser('https://thetestingworld.com/index.php?option=com_formmaker&view=formmaker&id=2&Itemid=657')
WebUI.sendKeys(newTestObject("input[id*='wdform_2_element2']"), 'test@email')
WebUI.selectOptionByLabel(newTestObject("select[id='wdform_5_element2']"), 'Selenium', false)
// helper function that creates a new TestObject with CSS
TestObject newTestObject(String css) {
TestObject to = new TestObject(css)
to.addProperty('css', ConditionType.EQUALS, css)
return to
}
ERROR DETAILS
Caused by: com.kms.katalon.core.webui.exception.WebElementNotFoundException: Web element with id: 'select[id='wdform_5_element2']' located by 'select[id='wdform_5_element2']' not found