import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint
import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase
import static com.kms.katalon.core.testdata.TestDataFactory.findTestData
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
import static com.kms.katalon.core.testobject.ObjectRepository.findWindowsObject
import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint
import com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords as CucumberKW
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile
import com.kms.katalon.core.model.FailureHandling as FailureHandling
import com.kms.katalon.core.testcase.TestCase as TestCase
import com.kms.katalon.core.testdata.TestData as TestData
import com.kms.katalon.core.testng.keyword.TestNGBuiltinKeywords as TestNGKW
import com.kms.katalon.core.testobject.TestObject as TestObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
import com.kms.katalon.core.windows.keyword.WindowsBuiltinKeywords as Windows
import internal.GlobalVariable as GlobalVariable
import org.openqa.selenium.Keys as Keys

WebUI.openBrowser('')

WebUI.maximizeWindow()

WebUI.navigateToUrl('https://kaumancare.my.id/login')

WebUI.setText(findTestObject('Page_Aplikasi Kepegawaian/input_nameexample.com'), 'shitme70@gmail.com')

WebUI.setText(findTestObject('Page_Aplikasi Kepegawaian/input_'), 'dita1234')

WebUI.click(findTestObject('Page_Aplikasi Kepegawaian/button_Login'))

WebUI.click(findTestObject('Page_Aplikasi Kepegawaian/a_Profil Saya'))

WebUI.click(findTestObject('Page_Aplikasi Kepegawaian/a_Edit Profil'))

WebUI.setText(findTestObject('Page_Aplikasi Kepegawaian/textarea_Alamat Lengkap'), 'Jl. Melati No. 10, Bekasi Edited')

WebUI.selectOptionByValue(findTestObject('Page_Aplikasi Kepegawaian/select_Jenis Kelamin'), 'L', false)

WebUI.click(findTestObject('Page_Aplikasi Kepegawaian/div_Data yang Bisa Diubah'))

WebUI.click(findTestObject('Page_Aplikasi Kepegawaian/button_Simpan Perubahan'))

WebUI.closeBrowser()

