Hi all,
In hybrid app, when trying to switchtowebview on real android device, it returns error as below. Can someone can help?
05-20-2021 02:36:21 PM switchToWebView()
Elapsed time: 3.031s
Unable to switch the driver to WEBVIEW mode (Root cause: com.kms.katalon.core.exception.StepFailedException: Cannot find any WEBVIEW to switch to
at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:50)
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.stepFailed(MobileKeywordMain.groovy:40)
at com.kms.katalon.core.mobile.keyword.builtin.SwitchToWebViewKeyword$_switchToWebView_closure1.doCall(SwitchToWebViewKeyword.groovy:74)
at com.kms.katalon.core.mobile.keyword.builtin.SwitchToWebViewKeyword$_switchToWebView_closure1.call(SwitchToWebViewKeyword.groovy)
at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:21)
at com.kms.katalon.core.mobile.keyword.builtin.SwitchToWebViewKeyword.switchToWebView(SwitchToWebViewKeyword.groovy:67)
at com.kms.katalon.core.mobile.keyword.builtin.SwitchToWebViewKeyword.execute(SwitchToWebViewKeyword.groovy:62)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:73)
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.switchToWebView(MobileBuiltInKeywords.groovy:1784)
at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords$switchToWebView$3.call(Unknown Source)
at Otherpayment.run(Otherpayment:89)
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:398)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:389)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:368)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:360)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:255)
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 TempTestCase1621496113393.run(TempTestCase1621496113393.groovy:25)