Service Virtualization

How to handle Modal dialog present:exception of Selenium in LISA?

  • 1.  How to handle Modal dialog present:exception of Selenium in LISA?

    Posted Sep 03, 2014 03:47 PM

    Hello All,

     

           We have recorded some scripts in Selenium builder. But, when we try to play back using LISA, we get the below exception.

     

    ============================================================================

    | Step:        ClickElement: btnEnd

    ----------------------------------------------------------------------------

    | Trapped Exception: null

    | Trapped Message:   java.lang.reflect.InvocationTargetException

    ----------------------------------------------------------------------------

    STACK TRACE

    java.lang.reflect.InvocationTargetException

    at sun.reflect.GeneratedMethodAccessor120.invoke(Unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

    at java.lang.reflect.Method.invoke(Unknown Source)

    at com.sebuilder.interpreter.steptype.SaveScreenshot.getScreenShot(SaveScreenshot.java:55)

    at com.itko.lisa.glass.SeleniumTestNode.takeScreenshot(SeleniumTestNode.java:261)

    at com.itko.lisa.glass.SeleniumStep.execute(SeleniumStep.java:137)

    at com.itko.lisa.test.TestNode.executeNode(TestNode.java:993)

    at com.itko.lisa.test.TestCase.execute(TestCase.java:1160)

    at com.itko.lisa.test.TestCase.execute(TestCase.java:1075)

    at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1060)

    at com.itko.lisa.editor.WalkThruPanel.prepAndExecNode(WalkThruPanel.java:1047)

    at com.itko.lisa.editor.WalkThruPanel.access$900(WalkThruPanel.java:68)

    at com.itko.lisa.editor.WalkThruPanel$10.doCallback(WalkThruPanel.java:960)

    at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:194)

    at java.lang.Thread.run(Unknown Source)

    Caused by: org.openqa.selenium.UnhandledAlertException: Modal dialog present:

     

    Please let me know if you faced this before. If yes, please let me know how you resolved the same.

     

    Thank You,

    Surya.