Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WebUI.openBrowser('')
- WebUI.maximizeWindow()
- WebUI.navigateToUrl('http://***.dot.co.id/eservice/login')
- WebUI.setText(findTestObject('PageLogin/Page_Log In e-service - Pupuk Kalt/input_login'), 'admin')
- WebUI.setText(findTestObject('PageLogin/Page_Log In e-service - Pupuk Kalt/input_password'), 'admin123')
- WebUI.click(findTestObject('PageLogin/Page_Log In e-service - Pupuk Kalt/button_LOG IN'))
- WebUI.delay(3)
- WebUI.navigateToUrl('http://***.dot.co.id/eservice/globalconfiguration')
- //Passing the path of the file
- WebUI.uploadFile(findTestObject('Configuration/GlobalConfig/Page_e-service Global Configuratio/upload_file'), '~/Download/test/logo.png')
- //Capturing the file name after upload and storing it in a variable
- FilePath = WebUI.getAttribute(findTestObject('Configuration/GlobalConfig/Page_e-service Global Configuratio/upload_file'), '~/Download/test/logo.png')
- //Verifying the Actual path and Expected path of file
- WebUI.verifyMatch(FilePath, '~/Download/test/logo.png', false)
- WebUI.click(findTestObject('PageLogin/Page_e-service Dashboard/i_account_circle'))
- WebUI.click(findTestObject('PageLogin/Page_e-service Dashboard/a_Logout'))
- WebUI.delay(3)
- WebUI.closeBrowser()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement