Skip Navigation LinksHome Page > Forums > Rapise Forums > Rapise Issues & Questions > Rapise Handling POP-UP in...
Hello,
We were unable to handle the Pop-ups in IE browser. Also unable to Spy the object in the popup, when spy the element it is highlighting the background screen objects but not from the popup. Tried using the keypress (TAB, UP, DOWN) which is also not working. Any advise on this would be very helpful, Thank You ....
Hi,
There can be two types of pop-ups.
1. Browser level
2. Application level
I assume you are referring to #1. To Spy on #1 use Accessible or UI Automation Spy mode because browser level popups are not visible in the DOM tree. Sending keys to #1 is a typical way to interact with it. Could you show the code or RVL you use to navigate the popup?
Regards,
Denis
Hi Denis,
The popup is from an IBM application - Application Console, which is limited to work ONLY in IE :(
Recording the clicks works, but the playback doesn't find the objects afterwards, not even Flash finds them...
The popup window is recorded as inside an iframe. Sample object XPATH:
//iframe[@name='yfcRootFrame' and @id='yfcRootFrame']@@@//body
or one whole object:
"YOMD035": { "locations": [ { "locator_name": "HTML", "location": { "xpath": "param:xpath", "url": "param:url", "title": "param:title" } } ], "window_class": "Alternate Modal Top Most", "object_text": " View Holds", "object_role": "ROLE_SYSTEM_CLIENT", "object_class": "Internet Explorer_Server", "version": 0, "object_type": "HTMLObject", "object_flavor": "Cell", "object_name": "YOMD035", "object_library": "Internet Explorer HTML", "window_name": "IBM Sterling Selling and Fulfillment Suite: Application Console", "xpath": "//iframe[@name='yfcRootFrame' and @id='yfcRootFrame']@@@//form[@name='containerform']/table/tbody/tr/td/table/tbody/tr[1]/td/div/table/tbody/tr/td[2]/table/tbody/tr/td", "title": "IBM Sterling Selling and Fulfillment Suite: Application Console", "url": "wildcard:https://oms*.com/smcfs/yfc/popupframe.jsp" },
I could able to Handle the Pop-up right now using Key press. but to do that we have use Lclick when clicking on "View Holds" link.
Just Replace SeS('View_Holds').DoClick(); to SeS('View_Holds').DoLClick(); and use Key press is working.
But as Hristovski Said, still I am not able to identify any objects in the overlay.
Hi Dimitar,
Could you turn on Level 3 logs, do Flash of "YOMD035" and then paste the log from Output view into this thread?
Microsoft (R) Windows Script Host Version 5.812Copyright (C) Microsoft Corporation. All rights reserved.
SeS Player Starting...1541603018963: Verbose level:31541603018984: Library information found:D:\Development\automation\branches\Rapise\OMSU\Lib\LibBase.jslib1541603018984: Library registered:Base1541603018995: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibActiveX.jslib1541603018995: Library registered:ActiveX1541603018995: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibActiveXC1.jslib1541603018995: Library registered:ActiveXC11541603018995: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibActiveXSft.jslib1541603019004: Library registered:ActiveXSft1541603019004: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibAdvanced_AAC.jslib1541603019004: Library registered:Advanced Accessibility1541603019008: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibAutoDetect.jslib1541603019008: Library registered:Auto1541603019008: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibChrome.jslib1541603019008: Library registered:Chrome HTML1541603019014: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibConsole.jslib1541603019014: Library registered:Console1541603019014: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibDevExpress.jslib1541603019018: Library registered:DevExpress1541603019018: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibDomDynamicsAX.jslib1541603019018: Library registered:DomDynamicsAX1541603019018: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibDomDynamicsCrm.jslib1541603019024: Library registered:DomDynamicsCrm1541603019024: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibDomDynamicsNAV.jslib1541603019024: Library registered:DomDynamicsNAV1541603019024: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibDomGwt.jslib1541603019024: Library registered:DOM GWT1541603019024: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibDomGwtExt.jslib1541603019034: Library registered:DOM GWT-Ext1541603019036: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibDomHtml5.jslib1541603019036: Library registered:HTML51541603019036: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibDomJQuery.jslib1541603019036: Library registered:DOM jQuery UI1541603019036: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibDomSalesforce.jslib1541603019043: Library registered:DomSalesforce1541603019043: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibDomSmartGwt.jslib1541603019043: Library registered:DOM SmartGwt1541603019043: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibDomSpira.jslib1541603019043: Library registered:DOM Spira1541603019043: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibDomYui.jslib1541603019043: Library registered:DOM YUI1541603019055: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibDynamicsAX.jslib1541603019055: Library registered:DynamicsAX1541603019055: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibDynamicsNAV.jslib1541603019055: Library registered:DynamicsNAV1541603019055: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibFarPoint.jslib1541603019055: Library registered:FarPoint1541603019064: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibFirefox.jslib1541603019064: Library registered:Firefox HTML1541603019064: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibGeneric.jslib1541603019068: Library registered:Generic1541603019068: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibIE.jslib1541603019068: Library registered:Internet Explorer HTML1541603019074: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibInfragistics.jslib1541603019074: Library registered:Infragistics1541603019074: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibJava.jslib1541603019078: Library registered:Java1541603019078: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibManaged.jslib1541603019078: Library registered:Managed1541603019078: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibMobile.jslib1541603019085: Library registered:Mobile1541603019085: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibQt.jslib1541603019085: Library registered:Qt Framework1541603019085: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibSelenium.jslib1541603019093: Library registered:Selenium1541603019093: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibSWT.jslib1541603019093: Library registered:SWT1541603019093: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibSyncfusion.jslib1541603019093: Library registered:Syncfusion1541603019093: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibTelerik.jslib1541603019093: Library registered:Telerik1541603019093: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibUIAutomation.jslib1541603019104: Library registered:UIAutomation1541603019104: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibUser.jslib1541603019104: Library registered:User1541603019104: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibVB6.jslib1541603019104: Library registered:VB61541603019104: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibVSFlexGrid.jslib1541603019114: Library registered:VSFlexGrid1541603019114: Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibWebService.jslib1541603019114: Library registered:Web Service1541603019136: SeSIncludeInstrumentedJS: calling "C:\Program Files (x86)\Inflectra\Rapise\Engine\InstrumentJS\node.exe" app.js "--in=D:\Development\automation\branches\Rapise\OMSU\ApplicationConsole\ApplicationConsole.js" "--dir=D:\Development\automation\branches\Rapise\OMSU\ApplicationConsole" "--out=D:\Development\automation\branches\Rapise\OMSU\ApplicationConsole\ApplicationConsole.js.I.js" --callbackName=_$R$_1541603019684: > undefined1541603019684: > g_load_libraries=["%g_browserLibrary:Internet Explorer HTML%"];1541603019694: SeSIncludeInstrumentedJS: calling "C:\Program Files (x86)\Inflectra\Rapise\Engine\InstrumentJS\node.exe" app.js "--in=D:\Development\automation\branches\Rapise\OMSU\ApplicationConsole\ApplicationConsole.user.js" "--dir=D:\Development\automation\branches\Rapise\OMSU\ApplicationConsole" "--out=D:\Development\automation\branches\Rapise\OMSU\ApplicationConsole\ApplicationConsole.user.js.I.js" --callbackName=_$R$_1541603020168: > undefined1541603020254: Creating a locator:Spreadsheet1541603020264: Base rule not found: for Spreadsheet1541603020264: Creating a rule:Spreadsheet:regex:.*:regex:.*:regex:.*1541603020298: Creating a locator:HTML1541603020298: Creating a rule:HTMLObject:regex:.*:regex:Internet Explorer_Server|IEFrame|Shell DocObject View:regex:.*1541603020304: Deserializing object:HTMLObject/YOMD0351541603020304: Location found1541603020304: Location:0 Locator:HTML1541603020304: Locator found1541603020304: SeSIENavigator.Find xpath://iframe[@name='yfcRootFrame' and @id='yfcRootFrame']@@@//form[@name='containerform']/table/tbody/tr/td/table/tbody/tr[1]/td/div/table/tbody/tr/td[2]/table/tbody/tr/td url:wildcard:https://oms*.project.com/smcfs* title:wildcard:*IBM Sterling Selling and Fulfillment Suite: Application Console*1541603020304: SeSIENavigator.EnumIEWindows: C:\Program Files\Internet Explorer\IEXPLORE.EXE1541603020424: IE windows:11541603020424: Window[0]:IBM Sterling Selling and Fulfillment Suite: Application Console - Internet Explorer[IEFrame]1541603020434: IE Process main window:IBM Sterling Selling and Fulfillment Suite: Application Console - Internet Explorer[IEFrame]1541603020437: IE DocObject Views:11541603020437: IE DocObject View[0]:[Shell DocObject View]1541603020437: IE browser windows:11541603020437: IE browser window[0]:[Internet Explorer_Server]1541603020574: Document is ready. Initializing1541603020574: attachWindow:[object]1541603020584: Really attaching1541603020604: Attaching for 2nd time. May have problems with alert/prompt/confirm messages1541603020614: Scheduling initialization upon onLoad event1541603020643: SeSIENavigator: Selecting object://iframe[@name='yfcRootFrame' and @id='yfcRootFrame']@@@//form[@name='containerform']/table/tbody/tr/td/table/tbody/tr[1]/td/div/table/tbody/tr/td[2]/table/tbody/tr/td from:wildcard:https://oms*.project.com/smcfs*1541603020643: Role:ROLE_SYSTEM_CLIENT Class:Internet Explorer_Server Role rules:0 Class rules:11541603020643: We have: 1 rules defined for this role and classname1541603020643: Rule1: HTMLObject:regex:.*:regex:Internet Explorer_Server|IEFrame|Shell DocObject View:regex:.*1541603020654: IEHTMLItem1541603020654: eval_xpath:/html1541603020674: Evaluating XPATH part:1 of:11541603020674: Evaluating XPATH part:/html1541603020674: Using document:https://omsrel.project.com/smcfs/console/order.detail1541603020684: 1 elements in 10 [ms]1541603020684: Document already being recorded:Wed Nov 7 16:03:40 UTC+0100 20181541603020684: ************!!!!!!!!!!!!!!!!!!**************1541603020684: eval_xpath://iframe[@name='yfcRootFrame' and @id='yfcRootFrame']@@@//form[@name='containerform']/table/tbody/tr/td/table/tbody/tr[1]/td/div/table/tbody/tr/td[2]/table/tbody/tr/td1541603020684: Evaluating XPATH part:1 of:21541603020684: Evaluating XPATH part://iframe[@name='yfcRootFrame' and @id='yfcRootFrame']1541603020694: Using document:https://omsrel.project.com/smcfs/console/order.detail1541603020694: 0 elements in 0 [ms]1541603020694: Nothing matches xpath://iframe[@name='yfcRootFrame' and @id='yfcRootFrame']@@@//form[@name='containerform']/table/tbody/tr/td/table/tbody/tr[1]/td/div/table/tbody/tr/td[2]/table/tbody/tr/td1541603020694: MatchedObject:null1541603020694: SeSTryMatch finished in: 51 [ms]1541603020694: SeSIENavigator: Found:null1541603020694: SeSIENavigator.EnumIEWindows: C:\Program Files\Internet Explorer\IEXPLORE.EXE1541603020787: IE windows:11541603020787: Window[0]:IBM Sterling Selling and Fulfillment Suite: Application Console - Internet Explorer[IEFrame]1541603020787: IE Process main window:IBM Sterling Selling and Fulfillment Suite: Application Console - Internet Explorer[IEFrame]1541603020794: IE DocObject Views:11541603020794: IE DocObject View[0]:[Shell DocObject View]1541603020794: IE browser windows:11541603020794: IE browser window[0]:[Internet Explorer_Server]1541603020804: eval_xpath:/html1541603020815: Evaluating XPATH part:1 of:11541603020815: Evaluating XPATH part:/html1541603020818: Using document:https://omsrel.project.com/smcfs/console/order.detail1541603020823: 1 elements in 5 [ms]1541603020836: Document already being recorded:Wed Nov 7 16:03:40 UTC+0100 20181541603020849: SeSIENavigator: Selecting object://iframe[@name='yfcRootFrame' and @id='yfcRootFrame']@@@//form[@name='containerform']/table/tbody/tr/td/table/tbody/tr[1]/td/div/table/tbody/tr/td[2]/table/tbody/tr/td from:wildcard:https://oms*.project.com/smcfs*1541603020852: Role:ROLE_SYSTEM_CLIENT Class:Internet Explorer_Server Role rules:0 Class rules:11541603020852: We have: 1 rules defined for this role and classname1541603020852: Rule1: HTMLObject:regex:.*:regex:Internet Explorer_Server|IEFrame|Shell DocObject View:regex:.*1541603020854: IEHTMLItem1541603020856: eval_xpath:/html1541603020858: Evaluating XPATH part:1 of:11541603020858: Evaluating XPATH part:/html1541603020859: Using document:https://omsrel.project.com/smcfs/console/order.detail1541603020864: 1 elements in 5 [ms]1541603020864: Document already being recorded:Wed Nov 7 16:03:40 UTC+0100 20181541603020864: ************!!!!!!!!!!!!!!!!!!**************1541603020864: eval_xpath://iframe[@name='yfcRootFrame' and @id='yfcRootFrame']@@@//form[@name='containerform']/table/tbody/tr/td/table/tbody/tr[1]/td/div/table/tbody/tr/td[2]/table/tbody/tr/td1541603020864: Evaluating XPATH part:1 of:21541603020864: Evaluating XPATH part://iframe[@name='yfcRootFrame' and @id='yfcRootFrame']1541603020864: Using document:https://omsrel.project.com/smcfs/console/order.detail1541603020874: 0 elements in 10 [ms]1541603020874: Nothing matches xpath://iframe[@name='yfcRootFrame' and @id='yfcRootFrame']@@@//form[@name='containerform']/table/tbody/tr/td/table/tbody/tr[1]/td/div/table/tbody/tr/td[2]/table/tbody/tr/td1541603020874: MatchedObject:null1541603020874: SeSTryMatch finished in: 25 [ms]1541603020874: SeSIENavigator: Found:null1541603020874: SeSIENavigator.EnumIEWindows: C:\Program Files\Internet Explorer\IEXPLORE.EXE1541603020965: IE windows:11541603020965: Window[0]:IBM Sterling Selling and Fulfillment Suite: Application Console - Internet Explorer[IEFrame]1541603020973: IE Process main window:IBM Sterling Selling and Fulfillment Suite: Application Console - Internet Explorer[IEFrame]1541603020973: IE DocObject Views:11541603020984: IE DocObject View[0]:[Shell DocObject View]1541603020985: IE browser windows:11541603020985: IE browser window[0]:[Internet Explorer_Server]1541603020995: eval_xpath:/html1541603020995: Evaluating XPATH part:1 of:11541603020995: Evaluating XPATH part:/html1541603021004: Using document:https://omsrel.project.com/smcfs/console/order.detail1541603021004: 1 elements in 0 [ms]1541603021024: Document already being recorded:Wed Nov 7 16:03:40 UTC+0100 20181541603021024: SeSIENavigator: Selecting object://iframe[@name='yfcRootFrame' and @id='yfcRootFrame']@@@//form[@name='containerform']/table/tbody/tr/td/table/tbody/tr[1]/td/div/table/tbody/tr/td[2]/table/tbody/tr/td from:wildcard:https://oms*.project.com/smcfs*1541603021024: Role:ROLE_SYSTEM_CLIENT Class:Internet Explorer_Server Role rules:0 Class rules:11541603021024: We have: 1 rules defined for this role and classname1541603021024: Rule1: HTMLObject:regex:.*:regex:Internet Explorer_Server|IEFrame|Shell DocObject View:regex:.*1541603021024: IEHTMLItem1541603021024: eval_xpath:/html1541603021034: Evaluating XPATH part:1 of:11541603021034: Evaluating XPATH part:/html1541603021043: Using document:https://omsrel.project.com/smcfs/console/order.detail1541603021043: 1 elements in 0 [ms]1541603021043: Document already being recorded:Wed Nov 7 16:03:40 UTC+0100 20181541603021043: ************!!!!!!!!!!!!!!!!!!**************1541603021043: eval_xpath://iframe[@name='yfcRootFrame' and @id='yfcRootFrame']@@@//form[@name='containerform']/table/tbody/tr/td/table/tbody/tr[1]/td/div/table/tbody/tr/td[2]/table/tbody/tr/td1541603021054: Evaluating XPATH part:1 of:21541603021054: Evaluating XPATH part://iframe[@name='yfcRootFrame' and @id='yfcRootFrame']1541603021054: Using document:https://omsrel.project.com/smcfs/console/order.detail1541603021064: 0 elements in 10 [ms]1541603021064: Nothing matches xpath://iframe[@name='yfcRootFrame' and @id='yfcRootFrame']@@@//form[@name='containerform']/table/tbody/tr/td/table/tbody/tr[1]/td/div/table/tbody/tr/td[2]/table/tbody/tr/td1541603021064: MatchedObject:null1541603021064: SeSTryMatch finished in: 40 [ms]1541603021064: SeSIENavigator: Found:null1541603021064: Base object not found by locator1541603021064: Found object: null
Could you add the following line to *.user.js file and retest?
g_enumAllIEWindows = true;
I tried adding the line, both before and after opening the tab, before and after opening separately, but nothing changed in each three cases...
g_enumAllIEWindows = true; SeS('view_holds').DoLClick(); Global.DoSleep(5000); g_enumAllIEWindows = true;
What is strange in the log is
1541603020874: SeSIENavigator.EnumIEWindows: C:\Program Files\Internet Explorer\IEXPLORE.EXE 1541603020965: IE windows:1
Rapise sees just one window. Is the popup window visible in Windows task bar?
Denis,
No, the window is not not visible in the taskbar and the background window is totally inactive while the popup is active, we can't even minimize, restore or close the background window until we close the popup.
As an addition, I dug a bit in the code for the popup and clicking the link calls function that creates window.showModalDialog which is discontinued in Chrome and Firefox since 2015...
Maybe that's why the application doesn't work in any other browser (not even Edge)
We managed to reproduce. The modal window is a strange one, it is not a taskbar window and it is not reachable from desktop. Though there is a tricky way to connect to this window there are high chances to end up with a deadlock because Rapise and IE share same JavaScript execution context.
My recommendation is to use a sub-test to deal with the modal window. In the sub-test use Desktop methodology and UIAutomation library (should be selected manually on recording). For playback include UIAutomation in the list of loaded libraries in the parent test:
g_load_libraries=["UIAutomation", "%g_browserLibrary:Internet Explorer HTML%"];
And if you have any questions, please email or call us at +1 (202) 558-6885