I have directly upload images by creating variable. So, I needs to know that how to record by uploading images and documents by clicking on system choose file function?
1 Like
Hi @manu.saxena , Not sure what you are asking…
But this may help you to upload documents/files.
The following ‘File Upload Sample’ test case uses sendKeys to upload a test Blank.png image file.
Copy the following to any test case and run, (test objects are created in memory so no objects are needed).
import org.openqa.selenium.By as By
import org.openqa.selenium.WebDriver as WebDriver
import com.kms.katalon.core.testobject.TestObject as TestObject
import com.kms.katalon.core.webui.driver.DriverFactory as DriverFactory
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebU…