This is a companion discussion topic for the original entry at https://docs.katalon.com/katalon-studio/tutorials/introduction-to-web-testing.html
This is a companion discussion topic for the original entry at https://docs.katalon.com/katalon-studio/tutorials/introduction-to-web-testing.html
Having some problems with the examples here. To start with, it’s not immediately obvious where to paste the text into as the default view of a new test case is not in script mode. You need to search for “</>script” at the
bottom of the panel.
One there :
- The Selenium example does not work - “WebDriver” is not resolved :
06-03-2019 05:09:23 PM Test Cases/sel 1
Elapsed time: 1.679s
Test Cases/sel 1 FAILED.
Reason:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
file:/C:/Users/brebner/Katalon%20Studio/P1/Scripts/sel%201/Script1559573749200.groovy: 16: unable to resolve class WebDriver
@ line 16, column 11.
WebDriver driver = new ChromeDriver();
- The Katalon example runs, but fails with
Elapsed time: 17.048s
Test Cases/Kat-1 FAILED.
Reason:
com.kms.katalon.core.exception.StepFailedException: Unable to click on object
at
:
:
- You can autocomplete imports clicking Ctrl + Shift + O or add manually
import java.util.concurrent.TimeUnit
import org.openqa.selenium.By
import org.openqa.selenium.WebDriver
import org.openqa.selenium.chrome.ChromeDriver
- You have to create the objects.
Thanks @HeleneB.
In general, the getting started tutorial needs a refresh. There are a lot of non-obvious differences vs what a new user sees using 6.1.5.