Test Cases/Automate Site/MillerCoors Happy Path FAILED because (of) java.lang.NoClassDefFoundError: org/openqa/selenium/WebElement

Hi all i am submitting my script with all the imports, from the error seems like Selenium is not found or defined, Thank you for your help in advance

 

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.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.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.webservice.keyword.WSBuiltInKeywords as WS
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUiBuiltInKeywords
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
import internal.GlobalVariable as GlobalVariable

WebUI.openBrowser(‘www.examplesite.com’)

WebUI.sendKeys(findTestObject(‘Page_MillerCoors Reward Center/input_dob’), ‘03101972’)

WebUI.click(findTestObject(‘Page_MillerCoors Reward Center/a_Enter’))

WebUI.waitForPageLoad(2)

WebUI.click(findTestObject(‘Page_MillerCoors Reward Center/a_Continue’))

WebUI.verifyElementPresent(findTestObject(‘Page_MillerCoors Reward Center/label_Purchase date is require’), 0)

WebUI.closeBrowser()

Hi there,

I can execute your test script without issue. Can you help to send the whole project instead?

Thanks

Vinh Nguyen said:

Hi there,

I can execute your test script without issue. Can you help to send the whole project instead?

Thanks

(Root cause: org.openqa.selenium.ElementNotInteractableException:

Build info: version: ‘3.7.1’, revision: ‘8a0099a’, time: ‘2017-11-06T21:07:36.161Z’

System info: host: ‘AKBAR-PC’, ip: ‘192.168.56.1’, os.name: ‘Windows 7’, os.arch: ‘amd64’, os.version: ‘6.1’, java.version: ‘1.8.0_102’

Driver info: com.kms.katalon.core.webui.driver.firefox.CGeckoDriver

Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 57.0.4, javascriptEnabled: true, moz:accessibilityChecks: false, moz:headless: false, moz:processID: 9720, moz:profile: C:\Users\popy\AppData\Local…, moz:webdriverClick: false, pageLoadStrategy: normal, platform: XP, platformName: XP, platformVersion: 6.1, proxy: Proxy(direct), rotatable: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}}

Session ID: 10912f04-6101-4a9c-bd7d-c56b2e8744f3)

help me?