takeScreenshot() Issue with Katalon Studio version 7.0.3

takeScreenshot() is not working with Katalon Studio version 7.0.3, the latest update. Please check attached screenshot for reference.

Does anyone experience the same? Please help.
Thanks in advance.

Hi @romeo.nacario

Please post the full console log here. Was this working for previous version, if so what version did you use ?

Hi, Thanh To!

Yes, it was working earlier. The previous version was 6.3.3.

Below is the console log but I removed some lines because the number of characters exceeds to 32000 (most of the removed lines were verifyelement[present, availability, clickable] and some text input):

2019-10-25 00:24:42.043 INFO c.k.katalon.core.main.TestCaseExecutor - --------------------
2019-10-25 00:24:42.046 INFO c.k.katalon.core.main.TestCaseExecutor - START Test Cases/devsitealtenergy/tc0011_registeruser
2019-10-25 00:24:42.662 DEBUG testcase.tc0011_registeruser - 1: openBrowser(fwsaltenergy.General.ProjectUrl())
2019-10-25 00:24:42.672 INFO k.k.c.m.CustomKeywordDelegatingMetaClass - fwsaltenergy.General.ProjectUrl is PASSED
2019-10-25 00:24:42.859 INFO c.k.k.core.webui.driver.DriverFactory - Starting ‘Chrome’ driver
Oct 25, 2019 12:24:42 AM org.openqa.selenium.remote.DesiredCapabilities chrome
INFO: Using new ChromeOptions() is preferred to DesiredCapabilities.chrome()
2019-10-25 00:24:42.946 INFO c.k.k.core.webui.driver.DriverFactory - Action delay is set to 0 seconds
Starting ChromeDriver 77.0.3865.40 (f484704e052e0b556f8030b65b953dce96503217-refs/branch-heads/3865@{#442}) on port 25442
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
[1571934287.188][WARNING]: Timed out connecting to Chrome, retrying…
Oct 25, 2019 12:24:49 AM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
2019-10-25 00:24:49.273 INFO c.k.k.core.webui.driver.DriverFactory - sessionId = 2ac849fde5bc898ab666471c5c155aec
2019-10-25 00:24:49.289 INFO c.k.k.core.webui.driver.DriverFactory - browser = Chrome 77.0.3865.120
2019-10-25 00:24:49.290 INFO c.k.k.core.webui.driver.DriverFactory - platform = Windows 10
2019-10-25 00:24:49.291 INFO c.k.k.core.webui.driver.DriverFactory - seleniumVersion = 3.141.59
2019-10-25 00:24:49.291 INFO c.k.k.core.webui.driver.DriverFactory - proxyInformation = ProxyInformation{proxyOption=NO_PROXY, proxyServerType=HTTP, password=, proxyServerAddress=, proxyServerPort=0}
2019-10-25 00:24:55.542 DEBUG testcase.tc0011_registeruser - 2: maximizeWindow()
[1571934297.563][WARNING]: Timed out connecting to Chrome, retrying…
2019-10-25 00:24:59.710 DEBUG testcase.tc0011_registeruser - 3: delay(3)
2019-10-25 00:25:02.735 DEBUG testcase.tc0011_registeruser - 4: try
2019-10-25 00:25:02.736 DEBUG testcase.tc0011_registeruser - 1: verifyElementPresent(findTestObject(“Object Repository/devsitealtenergy/Page_Explore Renewable Energy Projects AltEnergy - Australia New Zealand/headernavlink_Subscribe”), 1)
2019-10-25 00:25:03.078 DEBUG testcase.tc0011_registeruser - 2: verifyElementVisible(findTestObject(“Object Repository/devsitealtenergy/Page_Explore Renewable Energy Projects AltEnergy - Australia New Zealand/headernavlink_Subscribe”), STOP_ON_FAILURE)
2019-10-25 00:26:04.043 DEBUG testcase.tc0011_registeruser - 10: Finally
2019-10-25 00:26:04.044 DEBUG testcase.tc0011_registeruser - 1: click(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_Firstname”))
2019-10-25 00:26:04.420 DEBUG testcase.tc0011_registeruser - 2: setText(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_Firstname”), fwsaltenergy.Registrations.Firstname())
2019-10-25 00:26:04.465 INFO k.k.c.m.CustomKeywordDelegatingMetaClass - fwsaltenergy.Registrations.Firstname is PASSED
2019-10-25 00:26:04.769 DEBUG testcase.tc0011_registeruser - 3: click(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_Lastname”))
2019-10-25 00:26:05.216 DEBUG testcase.tc0011_registeruser - 4: setText(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_Lastname”), fwsaltenergy.Registrations.Lastname())
2019-10-25 00:26:05.250 INFO k.k.c.m.CustomKeywordDelegatingMetaClass - fwsaltenergy.Registrations.Lastname is PASSED
2019-10-25 00:26:05.750 DEBUG testcase.tc0011_registeruser - 5: click(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_Email”))
2019-10-25 00:26:06.108 DEBUG testcase.tc0011_registeruser - 6: setText(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_Email”), fwsaltenergy.Registrations.Emailaddress())
2019-10-25 00:26:06.138 INFO k.k.c.m.CustomKeywordDelegatingMetaClass - fwsaltenergy.Registrations.Emailaddress is PASSED
2019-10-25 00:26:06.868 DEBUG testcase.tc0011_registeruser - 7: click(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_Companyname”))
2019-10-25 00:26:07.211 DEBUG testcase.tc0011_registeruser - 8: setText(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_Companyname”), fwsaltenergy.Registrations.Companyname())
2019-10-25 00:26:07.240 INFO k.k.c.m.CustomKeywordDelegatingMetaClass - fwsaltenergy.Registrations.Companyname is PASSED
2019-10-25 00:26:07.869 DEBUG testcase.tc0011_registeruser - 9: click(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_Password”))
2019-10-25 00:26:08.227 DEBUG testcase.tc0011_registeruser - 10: setText(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_Password”), fwsaltenergy.Registrations.Password())
2019-10-25 00:26:08.255 INFO k.k.c.m.CustomKeywordDelegatingMetaClass - fwsaltenergy.Registrations.Password is PASSED
2019-10-25 00:26:08.970 DEBUG testcase.tc0011_registeruser - 11: click(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_Confirmpassword”))
2019-10-25 00:26:09.309 DEBUG testcase.tc0011_registeruser - 12: setText(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_Confirmpassword”), fwsaltenergy.Registrations.PasswordConfirm())
2019-10-25 00:26:09.338 INFO k.k.c.m.CustomKeywordDelegatingMetaClass - fwsaltenergy.Registrations.PasswordConfirm is PASSED
2019-10-25 00:26:09.973 DEBUG testcase.tc0011_registeruser - 13: click(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_Daytimephone”))
2019-10-25 00:26:10.378 DEBUG testcase.tc0011_registeruser - 14: setText(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_Daytimephone”), fwsaltenergy.Registrations.NumberTelephone())
2019-10-25 00:26:10.411 INFO k.k.c.m.CustomKeywordDelegatingMetaClass - fwsaltenergy.Registrations.NumberTelephone is PASSED
2019-10-25 00:26:11.049 DEBUG testcase.tc0011_registeruser - 15: click(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_AreyouanAustralianresidentYes”))
2019-10-25 00:26:11.434 DEBUG testcase.tc0011_registeruser - 16: delay(2)
2019-10-25 00:26:13.435 DEBUG testcase.tc0011_registeruser - 17: click(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_Howmanyusers4”))
2019-10-25 00:26:13.810 DEBUG testcase.tc0011_registeruser - 18: click(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_User2Email”))
2019-10-25 00:26:14.465 DEBUG testcase.tc0011_registeruser - 19: setText(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_User2Email”), fwsaltenergy.Registrations.User2Email())
2019-10-25 00:26:14.499 INFO k.k.c.m.CustomKeywordDelegatingMetaClass - fwsaltenergy.Registrations.User2Email is PASSED
2019-10-25 00:26:14.941 DEBUG testcase.tc0011_registeruser - 20: click(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_User2Password”))
2019-10-25 00:26:15.297 DEBUG testcase.tc0011_registeruser - 21: setText(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_User2Password”), fwsaltenergy.Registrations.User2Password())
2019-10-25 00:26:15.332 INFO k.k.c.m.CustomKeywordDelegatingMetaClass - fwsaltenergy.Registrations.User2Password is PASSED
2019-10-25 00:26:16.084 DEBUG testcase.tc0011_registeruser - 22: click(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_User3Email”))
2019-10-25 00:26:16.436 DEBUG testcase.tc0011_registeruser - 23: setText(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_User3Email”), fwsaltenergy.Registrations.User3Email())
2019-10-25 00:26:16.465 INFO k.k.c.m.CustomKeywordDelegatingMetaClass - fwsaltenergy.Registrations.User3Email is PASSED
2019-10-25 00:26:17.269 DEBUG testcase.tc0011_registeruser - 24: click(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_User3Password”))
2019-10-25 00:26:17.611 DEBUG testcase.tc0011_registeruser - 25: setText(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_User3Password”), fwsaltenergy.Registrations.User3Password())
2019-10-25 00:26:17.640 INFO k.k.c.m.CustomKeywordDelegatingMetaClass - fwsaltenergy.Registrations.User3Password is PASSED
2019-10-25 00:26:18.264 DEBUG testcase.tc0011_registeruser - 26: click(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_User4Email”))
2019-10-25 00:26:18.620 DEBUG testcase.tc0011_registeruser - 27: setText(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_User4Email”), fwsaltenergy.Registrations.User4Email())
2019-10-25 00:26:18.651 INFO k.k.c.m.CustomKeywordDelegatingMetaClass - fwsaltenergy.Registrations.User4Email is PASSED
2019-10-25 00:26:19.353 DEBUG testcase.tc0011_registeruser - 28: click(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_User4Password”))
2019-10-25 00:26:19.743 DEBUG testcase.tc0011_registeruser - 29: setText(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_User4Password”), fwsaltenergy.Registrations.User4Password())
2019-10-25 00:26:19.772 INFO k.k.c.m.CustomKeywordDelegatingMetaClass - fwsaltenergy.Registrations.User4Password is PASSED
2019-10-25 00:26:31.990 INFO k.k.c.m.CustomKeywordDelegatingMetaClass - fwsaltenergy.Registrations.Stateprovince is PASSED
2019-10-25 00:26:32.605 DEBUG testcase.tc0011_registeruser - 52: click(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_CCPostcode”))
2019-10-25 00:26:33.050 DEBUG testcase.tc0011_registeruser - 53: setText(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_CCPostcode”), fwsaltenergy.Registrations.Postcode())
2019-10-25 00:26:33.078 INFO k.k.c.m.CustomKeywordDelegatingMetaClass - fwsaltenergy.Registrations.Postcode is PASSED
2019-10-25 00:26:33.585 DEBUG testcase.tc0011_registeruser - 54: click(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_CCCountry”))
2019-10-25 00:26:33.943 DEBUG testcase.tc0011_registeruser - 55: setText(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_CCCountry”), fwsaltenergy.Registrations.Country())
2019-10-25 00:26:33.973 INFO k.k.c.m.CustomKeywordDelegatingMetaClass - fwsaltenergy.Registrations.Country is PASSED
2019-10-25 00:26:34.636 DEBUG testcase.tc0011_registeruser - 56: scrollToElement(findTestObject(“devsitealtenergy/Page_Register AltEnergy/RegisterMember_ButtonSubmit”), 2)
2019-10-25 00:26:34.931 DEBUG testcase.tc0011_registeruser - 57: click(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_CCCaptcha”))
2019-10-25 00:26:35.272 DEBUG testcase.tc0011_registeruser - 58: setText(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_CCCaptcha”), fwsaltenergy.Registrations.inputCaptcha2())
2019-10-25 00:26:44.376 INFO k.k.c.m.CustomKeywordDelegatingMetaClass - fwsaltenergy.Registrations.inputCaptcha2 is PASSED
2019-10-25 00:26:44.788 DEBUG testcase.tc0011_registeruser - 59: delay(4)
2019-10-25 00:26:48.790 DEBUG testcase.tc0011_registeruser - 60: scrollToElement(findTestObject(“devsitealtenergy/Page_Register AltEnergy/RegisterMember_ButtonSubmit”), 4)
2019-10-25 00:26:49.060 DEBUG testcase.tc0011_registeruser - 61: click(findTestObject(“Object Repository/devsitealtenergy/Page_Register AltEnergy/RegisterMember_ButtonSubmit”))
2019-10-25 00:26:49.509 DEBUG testcase.tc0011_registeruser - 62: delay(2)
2019-10-25 00:26:51.511 DEBUG testcase.tc0011_registeruser - 11: delay(2)
2019-10-25 00:26:53.512 DEBUG testcase.tc0011_registeruser - 12: takeScreenshot()
2019-10-25 00:26:53.905 ERROR c.k.k.core.keyword.internal.KeywordMain - :x: Cannot take screenshot (Root cause: com.kms.katalon.core.exception.StepFailedException: Cannot take screenshot
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:64)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:26)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword.takeScreenshot(TakeScreenshotKeyword.groovy:88)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword.execute(TakeScreenshotKeyword.groovy:68)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:60)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.takeScreenshot(WebUiBuiltInKeywords.groovy:2915)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$takeScreenshot$8.call(Unknown Source)
at tc0011_registeruser.run(tc0011_registeruser:385)
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:337)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:328)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:307)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:299)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:233)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:114)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:105)
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)
at TempTestCase1571934279668.run(TempTestCase1571934279668.groovy:23)
Caused by: org.openqa.selenium.UnhandledAlertException: unexpected alert open: {Alert text : Email has already been used.}
(Session info: chrome=77.0.3865.120): Email has already been used.
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘PTS1FL1GDTMJTT2’, ip: ‘10.1.65.1’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_181’
Driver info: com.kms.katalon.selenium.driver.CChromeDriver
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 77.0.3865.120, chrome: {chromedriverVersion: 77.0.3865.40 (f484704e052e0…, userDataDir: C:\Users\57242.GLHETT…}, goog:chromeOptions: {debuggerAddress: localhost:56802}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: XP, platformName: XP, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify}
Session ID: 2ac849fde5bc898ab666471c5c155aec
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:120)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at com.kms.katalon.selenium.driver.CChromeDriver.execute(CChromeDriver.java:19)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:609)
at org.openqa.selenium.remote.RemoteWebDriver.getScreenshotAs(RemoteWebDriver.java:295)
at org.openqa.selenium.support.events.EventFiringWebDriver.lambda$new$1(EventFiringWebDriver.java:105)
at com.sun.proxy.$Proxy8.getScreenshotAs(Unknown Source)
at org.openqa.selenium.support.events.EventFiringWebDriver.getScreenshotAs(EventFiringWebDriver.java:302)
at com.kms.katalon.core.webui.util.FileUtil.takesScreenshot(FileUtil.java:31)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword$_takeScreenshot_closure1.doCall(TakeScreenshotKeyword.groovy:89)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword$_takeScreenshot_closure1.call(TakeScreenshotKeyword.groovy)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:20)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword.takeScreenshot(TakeScreenshotKeyword.groovy:88)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword.execute(TakeScreenshotKeyword.groovy:68)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:60)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.takeScreenshot(WebUiBuiltInKeywords.groovy:2915)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$takeScreenshot$8.call(Unknown Source)
at Script1563457318399.run(Script1563457318399.groovy:385)
… 11 more
)
2019-10-25 00:26:53.908 ERROR c.k.katalon.core.main.TestCaseExecutor - :x: Test Cases/devsitealtenergy/tc0011_registeruser FAILED.
Reason:
com.kms.katalon.core.exception.StepFailedException: Cannot take screenshot
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:64)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:26)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword.takeScreenshot(TakeScreenshotKeyword.groovy:88)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword.execute(TakeScreenshotKeyword.groovy:68)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:60)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.takeScreenshot(WebUiBuiltInKeywords.groovy:2915)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$takeScreenshot$8.call(Unknown Source)
at tc0011_registeruser.run(tc0011_registeruser:385)
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:337)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:328)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:307)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:299)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:233)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:114)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:105)
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)
at TempTestCase1571934279668.run(TempTestCase1571934279668.groovy:23)
Caused by: org.openqa.selenium.UnhandledAlertException: unexpected alert open: {Alert text : Email has already been used.}
(Session info: chrome=77.0.3865.120): Email has already been used.
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘PTS1FL1GDTMJTT2’, ip: ‘10.1.65.1’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_181’
Driver info: com.kms.katalon.selenium.driver.CChromeDriver
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 77.0.3865.120, chrome: {chromedriverVersion: 77.0.3865.40 (f484704e052e0…, userDataDir: C:\Users\57242.GLHETT…}, goog:chromeOptions: {debuggerAddress: localhost:56802}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: XP, platformName: XP, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify}
Session ID: 2ac849fde5bc898ab666471c5c155aec
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:120)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at com.kms.katalon.selenium.driver.CChromeDriver.execute(CChromeDriver.java:19)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:609)
at org.openqa.selenium.remote.RemoteWebDriver.getScreenshotAs(RemoteWebDriver.java:295)
at org.openqa.selenium.support.events.EventFiringWebDriver.lambda$new$1(EventFiringWebDriver.java:105)
at com.sun.proxy.$Proxy8.getScreenshotAs(Unknown Source)
at org.openqa.selenium.support.events.EventFiringWebDriver.getScreenshotAs(EventFiringWebDriver.java:302)
at com.kms.katalon.core.webui.util.FileUtil.takesScreenshot(FileUtil.java:31)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword$_takeScreenshot_closure1.doCall(TakeScreenshotKeyword.groovy:89)
at com.kms.katalon.core.webui.keyword.builtin.TakeScreenshotKeyword$_takeScreenshot_closure1.call(TakeScreenshotKeyword.groovy)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:20)
… 17 more

2019-10-25 00:26:53.911 INFO c.k.katalon.core.main.TestCaseExecutor - END Test Cases/devsitealtenergy/tc0011_registeruser

No argument to takeScreenshot() ?

How the document says?

Wow, the document says that the 1st argument fileName is optional. — I did not know it. I always specified the fileName argument.

@romeo.nacario

How about trying to give fileName parameter explicity? That may work.

See also


@ThanhTo
@devalex88

@romeo.nacario says WebUI.takeScreenshot() worked in v6.3.3, but does not work in v7.0.3. This is a bit smelly, I think.

This line means that there is an alert when the screenshot is being taken. Do previous steps trigger some sort of alerts ?

Another suggestion is to disable Smart Wait Execution in project > settings > execution and try to see if the problem persists, perhaps the alert is being delayed longer due to Smart Wait which coincidentally pops up after you set delay for 2 seconds.

i closed this as is not active