Version of DevTest is 9.1.0
we are trying to execute this script which goes to new window to execute Reports and comes back to same window.
[{"negated":false,"step_name":"17.","name":"TheNewWindow","type":"switchToWindow"}]
[{"negated":false,"title":"***","type":"waitForTitle"}]
In "***", I am trying to click on reports getting execption.
[{"negated":false,"type":"clickElement","locator":{"type":"xpath","value":"//a[text()='Reports']"}}]
| Error executing Selenium Step :
[{"negated":false,"type":"clickElement","locator":{"type":"xpath","value":"//a[text()='Reports']"}}]
============================================================================
| Step: ClickElement: Home
----------------------------------------------------------------------------
| Message: {"negated":false,"type":"clickElement","locator":{"type":"xpath","value":"//a[text()='Reports']"}} failed.
----------------------------------------------------------------------------
| Trapped Exception: {"negated":false,"type":"clickElement","locator":{"type":"xpath","value":"//a[text()='Reports']"}} failed.
| Trapped Message: java.lang.RuntimeException: {"negated":false,"type":"clickElement","locator":{"type":"xpath","value":"//a[text()='Reports']"}} failed.
----------------------------------------------------------------------------
STACK TRACE
java.lang.RuntimeException: {"negated":false,"type":"clickElement","locator":{"type":"xpath","value":"//a[text()='Reports']"}} failed.
at com.sebuilder.interpreter.TestRun.executeStep(TestRun.java:81)
at com.itko.lisa.glass.SeleniumScriptExecutor.executeStep(SeleniumScriptExecutor.java:373)
at com.itko.lisa.glass.SeleniumScriptExecutor.executeStep(SeleniumScriptExecutor.java:305)
at com.itko.lisa.glass.SeleniumStep.execute(SeleniumStep.java:313)
at com.itko.lisa.test.TestNode.executeNode(TestNode.java:981)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1295)
at com.itko.lisa.test.TestCase.execute(TestCase.java:1210)
at com.itko.lisa.test.TestCase.executeNextNode(TestCase.java:1195)
at com.itko.lisa.test.TestCase.executeTest(TestCase.java:1136)
at com.itko.lisa.coordinator.Instance.run(Instance.java:204)
Caused by: org.openqa.selenium.NoSuchElementException: Unable to find element with xpath == //a[text()='Reports'] (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 335 milliseconds
For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'ITS0830D5030576', ip: '10.232.151.71', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_60'
Driver info: org.openqa.selenium.ie.InternetExplorerDriver
Capabilities [{browserAttachTimeout=0, enablePersistentHover=true, ie.forceCreateProcessApi=false, ie.usePerProcessProxy=false, ignoreZoomSetting=false, handlesAlerts=true, version=11, platform=WINDOWS, nativeEvents=true, ie.ensureCleanSession=false, elementScrollBehavior=0, ie.browserCommandLineSwitches=, requireWindowFocus=false, browserName=internet explorer, initialBrowserUrl=http://localhost:24694/, takesScreenshot=true, javascriptEnabled=true, ignoreProtectedModeSettings=false, enableElementCacheCleanup=true, cssSelectorsEnabled=true, unexpectedAlertBehaviour=dismiss}]
Session ID: 66401d70-8869-4443-8901-58b82b6fe134
*** Element info: {Using=xpath, value=//a[text()='Reports']}
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:206)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:647)
at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:353)
at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:490)
at com.sebuilder.interpreter.Locator$Type$7.find(Locator.java:131)
at com.sebuilder.interpreter.Locator.find(Locator.java:48)
at com.sebuilder.interpreter.steptype.ClickElement.run(ClickElement.java:28)
at com.sebuilder.interpreter.TestRun.executeStep(TestRun.java:75)
... 9 more
============================================================================
I hope this info could help.
Thanks