I cannot understand why population of information from excel sheet is not working. I’m using Variables feature and have set up for loop automation to populate all the information to the website from the excel sheet. Everything works well for row #1, but on the second row process is slowing down and information cannot populate.
The error message I’m getting:
01-16-2022 03:29:00 PM setText(findTestObject(“Object Repository/Page_Practice Fusion/input_First_ember1966”), findTestData(“Prescriptions/Testing prescriptions”).getValue(“First”, row))
Elapsed time:
Would rather appreciate your help
This is the script I’m using:
for (def row=1; row<=findTestData(“Prescriptions/Testing prescriptions”).getRowNumbers() ; row++)
{
WebUI.click(findTestObject(‘Object Repository/Page_Practice Fusion/div_Menu’))
WebUI.click(findTestObject(‘Object Repository/Page_Practice Fusion/div_Tasks_menu-icon’))
WebUI.click(findTestObject(‘Object Repository/Page_Practice Fusion/button_Add patient’))
WebUI.setText(findTestObject(‘Object Repository/Page_Practice Fusion/input_First_ember1966’), findTestData(“Prescriptions/Testing prescriptions”).getValue(‘First’,row))
WebUI.setText(findTestObject(‘Object Repository/Page_Practice Fusion/input_Last_ember1968’), findTestData(“Prescriptions/Testing prescriptions”).getValue(‘Last’,row))
WebUI.click(findTestObject(‘Object Repository/Page_Practice Fusion/label_Unknown’))
WebUI.setText(findTestObject(‘Object Repository/Page_Practice Fusion/input_Date of birth_ember1991_1’), findTestData(“Prescriptions/Testing prescriptions”).getValue(‘DOB’,row))
WebUI.setText(findTestObject(‘Object Repository/Page_Practice Fusion/input_Mobile_ember2031’), findTestData(“Prescriptions/Testing prescriptions”).getValue(‘Phone’,row))
WebUI.setText(findTestObject(‘Object Repository/Page_Practice Fusion/input_Edit_ember2045’), findTestData(“Prescriptions/Testing prescriptions”).getValue(‘email’,row))
WebUI.setText(findTestObject(‘Object Repository/Page_Practice Fusion/input_Address Line 1_ember2093’), findTestData(“Prescriptions/Testing prescriptions”).getValue(‘Address’,row))
WebUI.setText(findTestObject(‘Object Repository/Page_Practice Fusion/input_Zip_zipcode_1’), findTestData(“Prescriptions/Testing prescriptions”).getValue(‘Zip’,row))
WebUI.setText(findTestObject(‘Object Repository/Page_Practice Fusion/textarea_Notes_ember2311’), ‘These products and services are intended only for maintaining and encouraging a healthy lifestyle and are unrelated to the diagnosis, cure, medication, prevention, or treatment of any disease or condition. This program and service should not be used for the monitoring or management of diabetes.’)
WebUI.click(findTestObject(‘Object Repository/Page_Practice Fusion/button_Save’))
}