unable to access the URL


#1

why I’m unable to proceed to url https://katalon-demo-cura-herokuapp.com/ open broser opening (chrome).?

please assisit


#2

Can you pleases follow this and provide us with more information - we cant solve an issue with such little information


#3

can you share the steps you’re using with the items?


#4

Hi

This is the steps… run on chrome.

Thanks.

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
import org.openqa.selenium.Keys as Keys

//Set chromedriver path
DesiredCapabilities capabilities = new DesiredCapabilities()

capabilities.setCapability(ChromeOptions.CAPABILITY, options)

System.setProperty(‘webdriver.chrome.driver’, GlobalVariable.ChromeDriver)

ChromeDriver driver = new ChromeDriver(capabilities)

DriverFactory.changeWebDriver(driver)

WebUI.navigateToUrl(‘https://(URL: http://demoaut.katalon.com/’)

WebUI.click(findTestObject(‘a_Make Appointment (2)’))

WebUI.setText(findTestObject(‘input_username (2)’), ‘John Doe’)

WebUI.setText(findTestObject(‘input_password (2)’), ‘ThisIsNotAPassword’)

WebUI.click(findTestObject(‘button_Login (2)’))

WebUI.click(findTestObject(‘input_hospital_readmission (1)’))

WebUI.click(findTestObject(‘span_glyphicon glyphicon-calen (2)’))

WebUI.click(findTestObject(‘td_2’))

WebUI.setText(findTestObject(‘textarea_comment (1)’), ‘appmtt’)

WebUI.click(findTestObject(‘button_Book Appointment (2)’))

WebUI.click(findTestObject(‘a_Go to Homepage (2)’))

WebUI.click(findTestObject(‘a_menu-toggle (1)’))

WebUI.click(findTestObject(‘a_Logout (1)’))

WebUI.closeBrowser()


#5

Test Cases/CURA3 FAILED because (of) org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
file:/C:/Users/00023047/Katalon%20Studio/CURA/Scripts/CURA3/Script1551409033618.groovy: 24: unable to resolve class DesiredCapabilities
@ line 24, column 21.
DesiredCapabilities capabilities = new DesiredCapabilities()
^

file:/C:/Users/00023047/Katalon%20Studio/CURA/Scripts/CURA3/Script1551409033618.groovy: 24: unable to resolve class DesiredCapabilities
@ line 24, column 36.
DesiredCapabilities capabilities = new DesiredCapabilities()
^

file:/C:/Users/00023047/Katalon%20Studio/CURA/Scripts/CURA3/Script1551409033618.groovy: 30: unable to resolve class ChromeDriver
@ line 30, column 14.
ChromeDriver driver = new ChromeDriver(capabilities)
^

file:/C:/Users/00023047/Katalon%20Studio/CURA/Scripts/CURA3/Script1551409033618.groovy: 30: unable to resolve class ChromeDriver
@ line 30, column 23.
ChromeDriver driver = new ChromeDriver(capabilities)
^

4 errors


#6

In script view, press Ctrl + Shift + O to organise import or add
import org.openqa.selenium.remote.DesiredCapabilities
import org.openqa.selenium.chrome.ChromeDriver


#7

hi
any possibble solution?..thank you


#8

Just above

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
import org.openqa.selenium.Keys as Keys
import org.openqa.selenium.remote.DesiredCapabilities
import org.openqa.selenium.chrome.ChromeDriver


#9

Hi

Thanks for the assistance - able to open the web browser… but katalon still not able to proceed to navigate theURL.

import internal.GlobalVariable as GlobalVariable
import org.openqa.selenium.Keys as Keys
import org.openqa.selenium.remote.DesiredCapabilities
import org.openqa.selenium.chrome.ChromeDriver

WebUI.openBrowser(’’)

WebUI.navigateToUrl(‘https://katalon-demoout.com/’)

WebUI.click(findTestObject(‘a_Make Appointment (1)’))

WebUI.click(findTestObject(‘div_col-sm-8’))


#10

Your url is not valid.
Url for the Katalon demo is https://katalon-demo-cura.herokuapp.com/


#11

hI

Thanks for the assistance… still katalon did’nt proceed to navigate the demo URL…

import org.openqa.selenium.Keys as Keys
import org.openqa.selenium.remote.DesiredCapabilities
import org.openqa.selenium.chrome.ChromeDriver

WebUI.openBrowser(’’)

WebUI.navigateToUrl(‘https://katalon-demo-cura.herokuapp.com/’)

WebUI.click(findTestObject(‘a_Make Appointment (1)’))

WebUI.click(findTestObject(‘div_col-sm-8’))

WebUI.setText(findTestObject(‘input_username (1)’), ‘John’)

WebUI.setText(findTestObject(‘input_username (1)’), ‘John D’)


#12

Hello, tried the same, seems the issue is because the site has no www. on it, tried with www.google.com and connected with no issue.

Try it with a site which includes www.

Regards,

G.


#13

Hello,

Just solved it.

Instead of having a second step like WebUI.navigateToUrl, just use the first.


WebUI.openBrowser(‘https://katalon-demo-cura.herokuapp.com/’)

WebUI.click(findTestObject(‘Page_CURA Healthcare Service/a_Make Appointment’))

WebUI.setText(findTestObject(‘Page_CURA Healthcare Service/input_Username_username’), ‘John’)

WebUI.setEncryptedText(findTestObject(‘Page_CURA Healthcare Service/input_Password_password’), ‘TEmnu6KnKMU=’)

WebUI.click(findTestObject(‘Page_CURA Healthcare Service/button_Login’))

WebUI.closeBrowser()

Hope it helps!

Regards,

G.


#14

Here you can find the report.

Regards

G.

20190314_005547.html (194.3 KB)


#15

Hi All

Appreciates all your kind assistance… :sunglasses: