AnsweredAssumed Answered

Json script failing to Find invisible element for "ClickElement" Step in CA DevTest

Question asked by DavidWirtanen on Mar 6, 2016

Hi Team,

 

I'm trying to perform Web UI Automation by using JSON Script in CA DevTest 9.0.0 v, Im successfully able to reach to certain level, but after it tries to find invisible submenu in my WebUI it fails with below message -

 

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

| Step:        Selenium Script

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

| Message:     {"negated":false,"type":"clickElement","locator":{"type":"xpath","value":"//li[@id='yui-gen4']//div//div//li[3]//a[.='Work Monitor All']"}} failed.

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

| Trapped Exception: {"negated":false,"type":"clickElement","locator":{"type":"xpath","value":"//li[@id='yui-gen4']//div//div//li[3]//a[.='Work Monitor All']"}} failed.

| Trapped Message:   java.lang.RuntimeException: {"negated":false,"type":"clickElement","locator":{"type":"xpath","value":"//li[@id='yui-gen4']//div//div//li[3]//a[.='Work Monitor All']"}} failed.

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

STACK TRACE

java.lang.RuntimeException: {"negated":false,"type":"clickElement","locator":{"type":"xpath","value":"//li[@id='yui-gen4']//div//div//li[3]//a[.='Work Monitor All']"}} 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.SeleniumScriptExecutor.executeScript(SeleniumScriptExecutor.java:148)

  at com.itko.lisa.glass.SeleniumScriptTestNode.execute(SeleniumScriptTestNode.java:110)

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

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

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

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

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

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

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

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

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

Caused by: org.openqa.selenium.ElementNotVisibleException: Cannot click on element (WARNING: The server did not provide any stacktrace information)

Command duration or timeout: 172 milliseconds

Build info: version: '2.46.0', revision: '61506a4624b13675f24581e453592342b7485d71', time: '2015-06-04 10:22:50'

System info: host: 'NPAND1W3', ip: '10.194.97.5', os.name: 'Windows 7', os.arch: 'x86', 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, pageLoadStrategy=normal, 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:29829/, takesScreenshot=true, javascriptEnabled=true, ignoreProtectedModeSettings=false, enableElementCacheCleanup=true, cssSelectorsEnabled=true, unexpectedAlertBehaviour=dismiss}]

Session ID: febabde6-c877-4631-ae51-2cb7952ed713

  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:605)

  at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:269)

  at org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:80)

  at com.sebuilder.interpreter.steptype.ClickElement.run(ClickElement.java:25)

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

  ... 13 more

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

 

Any help will be appreciated, I'm trying to click on a Submenu element which is not visible.

 

Thanks in advance.

!David

Outcomes