Hello Everyone,
I need your help on something I have tried to solve by following Katalon Studio documentations and posts here in the community.
The most similar post was the following which I tried to implement solving my issue:
I have tried at the beginning to follow the following documentation, but it seems what I have is not an alert type:
Solving Pop-up dialog issue with Katalon Studio | Katalon Docs
Now the issue is that I want with automated testing, to do accept this alert/pop-out windows, but I don’t know how.
This is a screenshot in which I mask the website address:
This is what I tired currently and seems also that it cannot capture the screenshot:
The KS Console failed test output:
2022-11-18 09:19:44.371 INFO c.k.katalon.core.main.TestCaseExecutor - --------------------
2022-11-18 09:19:44.374 INFO c.k.katalon.core.main.TestCaseExecutor - START Test Cases/Login TP Acceptance - Chrome
2022-11-18 09:19:44.714 INFO c.k.katalon.core.main.TestCaseExecutor - (Default) variable =
2022-11-18 09:19:45.288 DEBUG testcase.Login TP Acceptance - Chrome - 1: openBrowser(“https://AWEBSITE.com”)
2022-11-18 09:19:45.637 INFO c.k.k.core.webui.driver.DriverFactory - Starting ‘Chrome’ driver
nov 18, 2022 9:19:45 AM org.openqa.selenium.remote.DesiredCapabilities chrome
INFO: Using new ChromeOptions()
is preferred to DesiredCapabilities.chrome()
2022-11-18 09:19:45.687 INFO c.k.k.core.webui.driver.DriverFactory - Action delay is set to 0 milliseconds
Starting ChromeDriver 107.0.5304.62 (1eec40d3a5764881c92085aaee66d25075c159aa-refs/branch-heads/5304@{#942}) on port 30392
Only local connections are allowed.
Please see ChromeDriver - WebDriver for Chrome - Security Considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
nov 18, 2022 9:19:47 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
2022-11-18 09:19:47.802 INFO c.k.k.core.webui.driver.DriverFactory - sessionId = 6b6aa97ecefe80c24f678784d972a7ae
2022-11-18 09:19:47.822 INFO c.k.k.core.webui.driver.DriverFactory - browser = Chrome 107.0.0.0
2022-11-18 09:19:47.823 INFO c.k.k.core.webui.driver.DriverFactory - platform = Windows 10
2022-11-18 09:19:47.823 INFO c.k.k.core.webui.driver.DriverFactory - seleniumVersion = 3.141.59
2022-11-18 09:19:47.824 INFO c.k.k.core.webui.driver.DriverFactory - proxyInformation = ProxyInformation { proxyOption=NO_PROXY, proxyServerType=HTTP, username=, password=********, proxyServerAddress=, proxyServerPort=0, executionList=“”, isApplyToDesiredCapabilities=true }
2022-11-18 09:19:50.742 DEBUG testcase.Login TP Acceptance - Chrome - 2: maximizeWindow()
2022-11-18 09:19:50.912 DEBUG testcase.Login TP Acceptance - Chrome - 3: waitForAlert(10)
2022-11-18 09:20:01.260 WARN c.k.k.c.w.k.builtin.WaitForAlertKeyword - No alert found after 10 second(s).
2022-11-18 09:20:01.261 DEBUG testcase.Login TP Acceptance - Chrome - 4: path = takeScreenshot()
2022-11-18 09:20:01.867 DEBUG testcase.Login TP Acceptance - Chrome - 5: of(the).screenshot(’)
2022-11-18 09:20:01.873 ERROR c.k.katalon.core.main.TestCaseExecutor - Test Cases/Login TP Acceptance - Chrome FAILED.
Reason:
groovy.lang.MissingPropertyException: No such property: line for class: Script1668691752286
at Login TP Acceptance - Chrome.run(Login TP Acceptance - Chrome:33)
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:448)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:439)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:418)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:410)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:285)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:142)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:133)
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)
at TempTestCase1668759581345.run(TempTestCase1668759581345.groovy:25)
2022-11-18 09:20:01.879 ERROR c.k.katalon.core.main.TestCaseExecutor - Test Cases/Login TP Acceptance - Chrome FAILED.
Reason:
groovy.lang.MissingPropertyException: No such property: line for class: Script1668691752286
at Login TP Acceptance - Chrome.run(Login TP Acceptance - Chrome:33)
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:448)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:439)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:418)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:410)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:285)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:142)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:133)
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)
at TempTestCase1668759581345.run(TempTestCase1668759581345.groovy:25)
2022-11-18 09:20:01.897 INFO c.k.katalon.core.main.TestCaseExecutor - END Test Cases/Login TP Acceptance - Chrome