Hi Guys, Last few days our scripts fails because of scroll down issue.We have passed several regressions without any issue in Scroll down action.Now we facing this issue,when we use scroll action we can see that scroll operation works fine in browser stack and failed in ats and through these errors Error Log: at 16: [Scroll down to element]: with Widget: [[RemoteWebDriver: chrome on XP (870f59e118abd05d3e7ed9760d9a0a1d7bdfad82)] -> css selector: [data-mendix-id="162_4_19"] .row] with Slow scroll: true Scroll down to element: at 1: slow scroll: with Script: TEXT: function getScrollParent(element, includeHidden) { var style = getComputedStyle(element); var excludeStaticParent = style.position === "absolute"; var overflowRegex = includeHidden ? /(auto|scroll|hidden)/ : /(auto|scroll)/; if (style.position === "fixed") return document.body; for (var parent = element; (parent = parent.parentElement);) { style = getComputedStyle(parent); if (excludeStaticParent && style.position === "static") { continue; } if (overflowRegex.test(style.overflow + style.overflowY + style.overflowX)) return parent; } return document.body; } X = getScrollParent(arguments[0]); X1 = X.scrollHeight; X2 = $(X); X3 = X2.animate({ scrollTop: $(arguments[0]).offset().top }, 2000); with Argument0: ANY: [[RemoteWebDriver: chrome on XP (870f59e118abd05d3e7ed9760d9a0a1d7bdfad82)] -> css selector: [data-mendix-id="162_4_19"] .row] Execute Javascript String Caused by: com.mansystems.ATS.Runner.exceptions.RunnerException: at com.mansystems.ATS.Runner.definitions.functions.FunctionImpl.run(FunctionImpl.java:62) at com.mansystems.ATS.Runner.definitions.functions.FunctionImpl$1.run(FunctionImpl.java:36) at com.mansystems.ATS.Runner.execution.ExecutionContextRoutine.execute(ExecutionContextRoutine.java:172) at com.mansystems.ATS.Runner.execution.ExecutionContextTestStep.execute(ExecutionContextTestStep.java:140) at com.mansystems.ATS.Runner.execution.ExecutionContextActionComposition.run(ExecutionContextActionComposition.java:41) at com.mansystems.ATS.Runner.execution.ExecutionContextRoutine.execute(ExecutionContextRoutine.java:172) at com.mansystems.ATS.Runner.execution.ExecutionContextTestStep.execute(ExecutionContextTestStep.java:140) at com.mansystems.ATS.Runner.execution.ExecutionContextTestCase.executeTestSteps(ExecutionContextTestCase.java:153) at com.mansystems.ATS.Runner.execution.ExecutionContextTestCase.run(ExecutionContextTestCase.java:121) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at com.mansystems.ATS.Runner.execution.ExtendedFuture.run(ExtendedFuture.java:69) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.mansystems.ATS.Runner.definitions.functions.FunctionReflectionHelper.invokeRunInternalMethod(FunctionReflectionHelper.java:29) at com.mansystems.ATS.Runner.definitions.functions.FunctionImpl.run(FunctionImpl.java:59) ... 14 more Caused by: java.lang.NullPointerException Tried these Ways: 1)We 1st Assert the Element and call scroll action to scroll upto the element. 2)Getting css of the Element and call Scroll action.
↧