Hey there! any question in your mind? Ask It Now!.

Popular Categories





I am Working on Flex Automation, Please suggest me to Resolve below error.

+2 votes
306 views
asked in Software Testing by Niks
Started InternetExplorerDriver server (64-bit)

2.35.3.0

Listening on port 9771

Exception in thread "main" org.openqa.selenium.WebDriverException: JavaScript error (WARNING: The server did not provide any stacktrace information)

Command duration or timeout: 147 milliseconds

Build info: version: '2.42.2', revision: '6a6995d', time: '2014-06-03 17:42:03'

System info: host: 'A356D7DB7C4N6JK', ip: '136.55.156.65', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_55'

Session ID: 9f2bd1c5-7560-4385-8b19-fadad9e2151c

Driver info: org.openqa.selenium.ie.InternetExplorerDriver

Capabilities [{platform=WINDOWS, javascriptEnabled=true, elementScrollBehavior=0, ignoreZoomSetting=false, enablePersistentHover=true, ie.ensureCleanSession=false, browserName=internet explorer, enableElementCacheCleanup=true, unexpectedAlertBehaviour=dismiss, version=11, ie.usePerProcessProxy=false, cssSelectorsEnabled=true, ignoreProtectedModeSettings=true, requireWindowFocus=false, handlesAlerts=true, initialBrowserUrl=http://localhost:9771/, ie.forceCreateProcessApi=false, nativeEvents=true, browserAttachTimeout=0, ie.browserCommandLineSwitches=, takesScreenshot=true}]

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

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

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.executeScript(RemoteWebDriver.java:508)

at CoreHoris.CoreFlexFunction.call(CoreFlexFunction.java:108)

at CoreHoris.CoreFlexFunction.FlexSetFocus(CoreFlexFunction.java:73)

at CoreHoris.CoreFlexFunction.FlexSetFocus(CoreFlexFunction.java:77)

at CoreHoris.HORISLaunch.main(HORISLaunch.java:31)
commented by Niks
reshown by Bhartesh
Email Id: Nikhil.Gawande39@gmail.com
Please share your email ID on my ID,  so that I can send you the compiled flex file.
commented by Niks
Above error got resolved and Next challange I am facing with flex automation is, How to access dynamic elements created through Action Script. Below is code snipet which is generating dynamic menus and adding it in container whose id is "menuHolder"

private function createMenu(value:ArrayCollection):void {
             
             app.menuHolder.removeAllChildren();
             
             var groupVOs:ArrayCollection = MainScreenUtil.getGroupVOs(value);
             
             var groupingMenuRenderers:Array = [];         
             for each (var data:Object in groupVOs) {
                 var groupingMenuRenderer:GroupingMenuRenderer = new GroupingMenuRenderer();
                 groupingMenuRenderer.label = data["groupCode"];
                 groupingMenuRenderer.labelField = "groupName";
                 groupingMenuRenderer.data = data;
                 groupingMenuRenderer.children = data["children"];
                 groupingMenuRenderers.push(groupingMenuRenderer);    
             }
             
             var groupingMenu:GroupingMenu = new GroupingMenu();
             groupingMenu.addEventListener(GroupingMenuEvent.MENU_CLICK, onMenuClick);
             groupingMenu.groupingMenuRenderers = groupingMenuRenderers;
             
             app.menuHolder.addChild(groupingMenu);
             /**    var spacer : Spacer = new Spacer();
              spacer.percentHeight = 100;
              app.menuHolder.addChild(spacer);*/
             
             if (groupVOs.length > 0) {
                 var vo : GroupVO= groupVOs.getItemAt(0) as GroupVO;            
                 if (vo.children && vo.children.length > 0) {
                     selectTarget(vo.children[0]);
                 } else {
                     selectTarget(vo);
                 }
             }

Please suggest me how to access them.

Please log in or register to answer this question.

Not a Member yet?

Ask to Folks Login

My Account
623 Folks are online
2 members and 621 guest online
Your feedback is highly appreciated