New Libraries to Import into Katalon Studio

Up to this point, we have added several new import statements to our projects. One was to use SendKeys, another for writing to the log file and another to mark a test as Failed or in Error. There’s also a few more coming as we get into using the WebDriver, so to keep things up to date, here is a list of import statements to add to your project.

import internal.GlobalVariable as GlobalVariable
//This section is needed to call the Selenium WebDriver
import org.openqa.selenium.WebDriver as WebDriver
import com.kms.katalon.core.webui.driver.DriverFactory as DriverFactory
import org.openqa.selenium.By as By
import org.openqa.selenium.WebElement as WebElement
import com.kms.katalon.core.annotation.Keyword
//This allows for the use of MarkFailed and MarkError
import com.kms.katalon.core.util.KeywordUtil
//This is for SendKeys
import org.openqa.selenium.Keys as Keys
//This is to write to the log file
import com.kms.katalon.core.logging.KeywordLogger as KeywordLogger

KeywordLogger log = new KeywordLogger()
Handcrafted with care just for you.

Author Signature for Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.