Katalon Recorder executes fine but exported script fails at Katalon ,why?

The code selenium.selectWindow(“win_ser_1”) when executed from Katalon Recorder executes fine and does what its suppose to do

But when exported test case as script ,it literally fails at below step

selenium.selectWindow(“win_ser_1”)

Below is code generated from recorder

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://url.com”)
selenium.click(“id=ui-id-3”)
selenium.click(“xpath=(.//[normalize-space(text()) and normalize-space(.)=‘Import’])[1]/following::span[1]")
selenium.selectWindow(“win_ser_1”)
selenium.click(“id=uploadEventResults”)
selenium.type(“name=uploadEventResults”, “C:\\\New folder\\UploadXML\\Results.xml”)
selenium.click("xpath=(.//
[normalize-space(text()) and normalize-space(.)=concat('Click ', '\”’, ‘Go’, ‘\"’, ’ to process these event files:’)])[1]/following::span[1]")

Capture.PNG

Hi, can someone have the solution ?