[Codeless Automation] Set text could not be executed

After recording the test script for set text using codeless feature it cannot be executed during playback.

See step 8 in the attached screenshot. Thanks!

11111

1 Like

Hmmm, I also encounter this issue. Anyone know the solution?

Try things that wait or delay until you “know” the element is available on the page. An example would be:

WebUI.NavigateToURL('blah blah blah')
WebUI.waitForPageLoad(10)    // make sure the page is formed

WebUI.waitForElementVisible(findTestObject('div_Update History_au...'), 10)
WebUI.click(findTestObject('div_Update History_au...')

WebUI.verifyElementVisible(findTestObject('input_Inventory ID_ctl100...')) 
WebUI.setText(findTestObject('input_Inventory ID_ctl100...'), "ACCOMODATE")
WebUI.verifyElementAttributeValue(findTestObject('input_Inventory ID_ctl100...'), "value", "ACCOMODATE", 10)

WebUI.verifyElementClickable(findTestObject('form_CDATAvar__screen...')) 
WebUI.click(findTestObject('form_CDATAvar__screen...'))

Edit: I added other statements that verify your fields and contents as well.

1 Like