Hi Folks,
Configuration:
OS Windows 7 Professional
Chrome: Version 63.0.3239.132 (Official Build) (64-bit)
Katalon Recorder (Selenium IDE for Chrome) 3.0.2
Exported test using “Language & Framework= Katalon Studio”
----
When I copy “Katalon Automation Recorder” tests to “Katalon Studio” I am seeing the following settings in the final script:
WebUI.openBrowser(‘https://www.katalon.com/’) << not expected
String baseUrl = “https://www.katalon.com/” << not expected
Is there a way to change the “WebUI.openBrowser” & “baseUrl” settings
before recording?
I have to manually change these settings each time I do a new recording & pasting.
Copied test…
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 com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint
import com.kms.katalon.core.checkpoint.CheckpointFactory as CheckpointFactory
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as MobileBuiltInKeywords
import com.kms.katalon.core.model.FailureHandling as FailureHandling
import com.kms.katalon.core.testcase.TestCase as TestCase
import com.kms.katalon.core.testcase.TestCaseFactory as TestCaseFactory
import com.kms.katalon.core.testdata.TestData as TestData
import com.kms.katalon.core.testdata.TestDataFactory as TestDataFactory
import com.kms.katalon.core.testobject.ObjectRepository as ObjectRepository
import com.kms.katalon.core.testobject.TestObject as TestObject
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WSBuiltInKeywords
import com.kms.katalon.core.webui.driver.DriverFactory as DriverFactory
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUiBuiltInKeywords
import internal.GlobalVariable as GlobalVariable
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
import com.thoughtworks.selenium.Selenium
import org.openqa.selenium.firefox.FirefoxDriver
import org.openqa.selenium.WebDriver
import com.thoughtworks.selenium.webdriven.WebDriverBackedSelenium
import static org.junit.Assert.*
import java.util.regex.Pattern
import static org.apache.commons.lang3.StringUtils.join
WebUI.openBrowser(‘https://www.katalon.com/’)
def driver = DriverFactory.getWebDriver()
String baseUrl = “https://www.katalon.com/”
selenium = new WebDriverBackedSelenium(driver, baseUrl)
selenium.open(“https://www.w3schools.com/”)
selenium.click(“link=w3schools.com”)
selenium.click(“css=h4.w3-margin-top”)
selenium.click(“link=Learn HTML”)
selenium.click(“link=HTML Attributes”)
selenium.mouseOver(“link=HTML CSS”)
selenium.mouseOut(“link=HTML CSS”)
selenium.click(“link=HTML Links”)
selenium.mouseOver(“link=HTML Tables”)
selenium.mouseOut(“link=HTML Tables”)
selenium.mouseOver(“link=HTML Lists”)
selenium.mouseOut(“link=HTML Lists”)
selenium.click(“link=HTML File Paths”)
selenium.click(“link=HTML Computercode”)
Thanks,
Dave