AnsweredAssumed Answered

Selenium Steps - Problem with alert - No alert is present

Question asked by davfr04 Employee on Jun 25, 2015

Hi team,

 

I have a issue using the Selenium step. In some moment, in my flow, an alert present in the screen and the button ok is clicked.

When running it on ITR at Workstation, an error presents:

ScreenHunter_400 Jun. 25 11.15.jpg

 

The ERROR MESSAGE:

 

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

| Error executing Selenium Step :

{

    "negated": false,

    "text": "Acessa Janela M 0012.html",

    "type": "assertAlertText"

}

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

| Step:        Assert

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

| Message:     {"text":"Acessa Janela M 0012.html","type":"assertAlertText","negated":false} failed.

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

| Trapped Exception: {"text":"Acessa Janela M 0012.html","type":"assertAlertText","negated":false} failed.

| Trapped Message:   java.lang.RuntimeException: {"text":"Acessa Janela M 0012.html","type":"assertAlertText","negated":false} failed.

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

STACK TRACE

java.lang.RuntimeException: {"text":"Acessa Janela M 0012.html","type":"assertAlertText","negated":false} failed.

  at com.sebuilder.interpreter.TestRun.executeStep(TestRun.java:81)

  at com.itko.lisa.glass.SeleniumScriptExecutor.executeStep(SeleniumScriptExecutor.java:374)

  at com.itko.lisa.glass.SeleniumScriptExecutor.executeStep(SeleniumScriptExecutor.java:306)

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

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

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

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

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

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

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

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

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

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

Caused by: org.openqa.selenium.NoAlertPresentException: No alert is present (WARNING: The server did not provide any stacktrace information)

Command duration or timeout: 2.17 seconds

Build info: version: '2.45.0', revision: '5017cb8e7ca8e37638dc3091b2440b90a1d8686f', time: '2015-02-27 09:10:26'

System info: host: 'DAVFR04', ip: '192.168.40.68', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.7.0_72'

Session ID: c85731a3-7079-4ed5-b6f4-f4c8d0d41027

Driver info: org.openqa.selenium.firefox.FirefoxDriver

Capabilities [{platform=WINDOWS, acceptSslCerts=true, javascriptEnabled=true, cssSelectorsEnabled=true, databaseEnabled=true, browserName=firefox, handlesAlerts=true, nativeEvents=false, webStorageEnabled=true, rotatable=false, locationContextEnabled=true, applicationCacheEnabled=true, takesScreenshot=true, version=38.0.5}]

  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

  at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

  at java.lang.reflect.Constructor.newInstance(Unknown Source)

  at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:204)

  at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:156)

  at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:599)

  at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:622)

  at org.openqa.selenium.remote.RemoteWebDriver$RemoteTargetLocator.alert(RemoteWebDriver.java:907)

  at com.sebuilder.interpreter.steptype.AlertText.get(AlertText.java:25)

  at com.sebuilder.interpreter.Assert.run(Assert.java:32)

  at com.sebuilder.interpreter.TestRun.executeStep(TestRun.java:75)

  ... 12 more

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

 

Does anyone can helpme?

 

Thanks,

Francis

Outcomes