'点击元素,跳出日期选择器'
WebUI.click(findTestObject('/Page_/input__ant-calendar-picker-inp', [('variable') : 'e']), FailureHandling.STOP_ON_FAILURE)'定位日期选择器的输入框'
WebUI.focus(findTestObject('/Page_/input_ ant-calendar-input-start'))'去掉只读属性'
WebUI.executeJavaScript('$(\':input\').removeAttr(\'readonl\')', [])'模拟键盘输入'
WebUI.setText(findTestObject('/Page_/input_ ant-calendar-input-start'), Keys.chord(Keys.CONTROL, 'a', Keys.DELETE))WebUI.delay(5)
WebUI.setText(findTestObject('/Page_/input_ ant-calendar-input-start'), starttime)
WebUI.sendKeys(findTestObject('/Page_/input_ ant-calendar-input-start'), Keys.chord(Keys.ENTER))
【Katalon常见问题解决三】时间选择器的处理
于 2019-02-27 11:48:05 首次发布