Rapise Handling POP-UP in IE

Saturday, November 3, 2018
Avatar

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 ....  

11 Replies
Tuesday, November 6, 2018
Avatar
re: klaxminarayanan5 Saturday, November 3, 2018

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

Tuesday, November 6, 2018
Avatar
re: inflectra.max Tuesday, November 6, 2018

Hi Denis,

The popup is from an IBM application - Application Console, which is limited to work ONLY in IE :(

Clicking View Holds (on the right side) opens a new Pop-Up Window
Clicking View Holds (on the right side) opens up a new Pop-Up Window

 

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"
	},

 

Wednesday, November 7, 2018
Avatar
re: Hristovski Tuesday, November 6, 2018

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.

 

Wednesday, November 7, 2018
Avatar
re: Hristovski Tuesday, November 6, 2018

Hi Dimitar,

Could you turn on Level 3 logs, do Flash of "YOMD035" and then paste the log from Output view into this thread?

Regards,

Denis

Wednesday, November 7, 2018
Avatar
re: inflectra.max Wednesday, November 7, 2018

Microsoft (R) Windows Script Host Version 5.812
Copyright (C) Microsoft Corporation. All rights reserved.

SeS Player Starting...
1541603018963:    Verbose level:3
1541603018984:    Library information found:D:\Development\automation\branches\Rapise\OMSU\Lib\LibBase.jslib
1541603018984:    Library registered:Base
1541603018995:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibActiveX.jslib
1541603018995:    Library registered:ActiveX
1541603018995:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibActiveXC1.jslib
1541603018995:    Library registered:ActiveXC1
1541603018995:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibActiveXSft.jslib
1541603019004:    Library registered:ActiveXSft
1541603019004:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibAdvanced_AAC.jslib
1541603019004:    Library registered:Advanced Accessibility
1541603019008:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibAutoDetect.jslib
1541603019008:    Library registered:Auto
1541603019008:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibChrome.jslib
1541603019008:    Library registered:Chrome HTML
1541603019014:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibConsole.jslib
1541603019014:    Library registered:Console
1541603019014:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibDevExpress.jslib
1541603019018:    Library registered:DevExpress
1541603019018:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibDomDynamicsAX.jslib
1541603019018:    Library registered:DomDynamicsAX
1541603019018:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibDomDynamicsCrm.jslib
1541603019024:    Library registered:DomDynamicsCrm
1541603019024:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibDomDynamicsNAV.jslib
1541603019024:    Library registered:DomDynamicsNAV
1541603019024:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibDomGwt.jslib
1541603019024:    Library registered:DOM GWT
1541603019024:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibDomGwtExt.jslib
1541603019034:    Library registered:DOM GWT-Ext
1541603019036:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibDomHtml5.jslib
1541603019036:    Library registered:HTML5
1541603019036:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibDomJQuery.jslib
1541603019036:    Library registered:DOM jQuery UI
1541603019036:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibDomSalesforce.jslib
1541603019043:    Library registered:DomSalesforce
1541603019043:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibDomSmartGwt.jslib
1541603019043:    Library registered:DOM SmartGwt
1541603019043:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibDomSpira.jslib
1541603019043:    Library registered:DOM Spira
1541603019043:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibDomYui.jslib
1541603019043:    Library registered:DOM YUI
1541603019055:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibDynamicsAX.jslib
1541603019055:    Library registered:DynamicsAX
1541603019055:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibDynamicsNAV.jslib
1541603019055:    Library registered:DynamicsNAV
1541603019055:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibFarPoint.jslib
1541603019055:    Library registered:FarPoint
1541603019064:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibFirefox.jslib
1541603019064:    Library registered:Firefox HTML
1541603019064:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibGeneric.jslib
1541603019068:    Library registered:Generic
1541603019068:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibIE.jslib
1541603019068:    Library registered:Internet Explorer HTML
1541603019074:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibInfragistics.jslib
1541603019074:    Library registered:Infragistics
1541603019074:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibJava.jslib
1541603019078:    Library registered:Java
1541603019078:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibManaged.jslib
1541603019078:    Library registered:Managed
1541603019078:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibMobile.jslib
1541603019085:    Library registered:Mobile
1541603019085:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibQt.jslib
1541603019085:    Library registered:Qt Framework
1541603019085:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibSelenium.jslib
1541603019093:    Library registered:Selenium
1541603019093:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibSWT.jslib
1541603019093:    Library registered:SWT
1541603019093:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibSyncfusion.jslib
1541603019093:    Library registered:Syncfusion
1541603019093:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibTelerik.jslib
1541603019093:    Library registered:Telerik
1541603019093:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibUIAutomation.jslib
1541603019104:    Library registered:UIAutomation
1541603019104:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibUser.jslib
1541603019104:    Library registered:User
1541603019104:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibVB6.jslib
1541603019104:    Library registered:VB6
1541603019104:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibVSFlexGrid.jslib
1541603019114:    Library registered:VSFlexGrid
1541603019114:    Library information found:C:\Program Files (x86)\Inflectra\Rapise\Engine\Lib\LibWebService.jslib
1541603019114:    Library registered:Web Service
1541603019136:    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:    > undefined
1541603019684:    > 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:    > undefined
1541603020254:    Creating a locator:Spreadsheet
1541603020264:    Base rule not found: for Spreadsheet
1541603020264:    Creating a rule:Spreadsheet:regex:.*:regex:.*:regex:.*
1541603020298:    Creating a locator:HTML
1541603020298:    Creating a rule:HTMLObject:regex:.*:regex:Internet Explorer_Server|IEFrame|Shell DocObject View:regex:.*
1541603020304:    Deserializing object:HTMLObject/YOMD035
1541603020304:    Location found
1541603020304:    Location:0 Locator:HTML
1541603020304:    Locator found
1541603020304:    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.EXE
1541603020424:    IE windows:1
1541603020424:    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:1
1541603020437:    IE DocObject View[0]:[Shell DocObject View]
1541603020437:    IE browser windows:1
1541603020437:    IE browser window[0]:[Internet Explorer_Server]
1541603020574:    Document is ready. Initializing
1541603020574:    attachWindow:[object]
1541603020584:    Really attaching
1541603020604:    Attaching for 2nd time. May have problems with alert/prompt/confirm messages
1541603020614:    Scheduling initialization upon onLoad event
1541603020643:    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:1
1541603020643:    We have: 1 rules defined for this role and classname
1541603020643:    Rule1: HTMLObject:regex:.*:regex:Internet Explorer_Server|IEFrame|Shell DocObject View:regex:.*
1541603020654:    IEHTMLItem
1541603020654:    eval_xpath:/html
1541603020674:    Evaluating XPATH part:1 of:1
1541603020674:    Evaluating XPATH part:/html
1541603020674:    Using document:https://omsrel.project.com/smcfs/console/order.detail
1541603020684:    1 elements in 10 [ms]
1541603020684:    Document already being recorded:Wed Nov 7 16:03:40 UTC+0100 2018
1541603020684:    ************!!!!!!!!!!!!!!!!!!**************
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/td
1541603020684:    Evaluating XPATH part:1 of:2
1541603020684:    Evaluating XPATH part://iframe[@name='yfcRootFrame' and @id='yfcRootFrame']
1541603020694:    Using document:https://omsrel.project.com/smcfs/console/order.detail
1541603020694:    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/td
1541603020694:    MatchedObject:null
1541603020694:    SeSTryMatch finished in: 51 [ms]
1541603020694:    SeSIENavigator: Found:null
1541603020694:    SeSIENavigator.EnumIEWindows: C:\Program Files\Internet Explorer\IEXPLORE.EXE
1541603020787:    IE windows:1
1541603020787:    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:1
1541603020794:    IE DocObject View[0]:[Shell DocObject View]
1541603020794:    IE browser windows:1
1541603020794:    IE browser window[0]:[Internet Explorer_Server]
1541603020804:    eval_xpath:/html
1541603020815:    Evaluating XPATH part:1 of:1
1541603020815:    Evaluating XPATH part:/html
1541603020818:    Using document:https://omsrel.project.com/smcfs/console/order.detail
1541603020823:    1 elements in 5 [ms]
1541603020836:    Document already being recorded:Wed Nov 7 16:03:40 UTC+0100 2018
1541603020849:    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:1
1541603020852:    We have: 1 rules defined for this role and classname
1541603020852:    Rule1: HTMLObject:regex:.*:regex:Internet Explorer_Server|IEFrame|Shell DocObject View:regex:.*
1541603020854:    IEHTMLItem
1541603020856:    eval_xpath:/html
1541603020858:    Evaluating XPATH part:1 of:1
1541603020858:    Evaluating XPATH part:/html
1541603020859:    Using document:https://omsrel.project.com/smcfs/console/order.detail
1541603020864:    1 elements in 5 [ms]
1541603020864:    Document already being recorded:Wed Nov 7 16:03:40 UTC+0100 2018
1541603020864:    ************!!!!!!!!!!!!!!!!!!**************
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/td
1541603020864:    Evaluating XPATH part:1 of:2
1541603020864:    Evaluating XPATH part://iframe[@name='yfcRootFrame' and @id='yfcRootFrame']
1541603020864:    Using document:https://omsrel.project.com/smcfs/console/order.detail
1541603020874:    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/td
1541603020874:    MatchedObject:null
1541603020874:    SeSTryMatch finished in: 25 [ms]
1541603020874:    SeSIENavigator: Found:null
1541603020874:    SeSIENavigator.EnumIEWindows: C:\Program Files\Internet Explorer\IEXPLORE.EXE
1541603020965:    IE windows:1
1541603020965:    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:1
1541603020984:    IE DocObject View[0]:[Shell DocObject View]
1541603020985:    IE browser windows:1
1541603020985:    IE browser window[0]:[Internet Explorer_Server]
1541603020995:    eval_xpath:/html
1541603020995:    Evaluating XPATH part:1 of:1
1541603020995:    Evaluating XPATH part:/html
1541603021004:    Using document:https://omsrel.project.com/smcfs/console/order.detail
1541603021004:    1 elements in 0 [ms]
1541603021024:    Document already being recorded:Wed Nov 7 16:03:40 UTC+0100 2018
1541603021024:    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:1
1541603021024:    We have: 1 rules defined for this role and classname
1541603021024:    Rule1: HTMLObject:regex:.*:regex:Internet Explorer_Server|IEFrame|Shell DocObject View:regex:.*
1541603021024:    IEHTMLItem
1541603021024:    eval_xpath:/html
1541603021034:    Evaluating XPATH part:1 of:1
1541603021034:    Evaluating XPATH part:/html
1541603021043:    Using document:https://omsrel.project.com/smcfs/console/order.detail
1541603021043:    1 elements in 0 [ms]
1541603021043:    Document already being recorded:Wed Nov 7 16:03:40 UTC+0100 2018
1541603021043:    ************!!!!!!!!!!!!!!!!!!**************
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/td
1541603021054:    Evaluating XPATH part:1 of:2
1541603021054:    Evaluating XPATH part://iframe[@name='yfcRootFrame' and @id='yfcRootFrame']
1541603021054:    Using document:https://omsrel.project.com/smcfs/console/order.detail
1541603021064:    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/td
1541603021064:    MatchedObject:null
1541603021064:    SeSTryMatch finished in: 40 [ms]
1541603021064:    SeSIENavigator: Found:null
1541603021064:    Base object not found by locator
1541603021064:    Found object: null

Thursday, November 8, 2018
Avatar
re: Hristovski Wednesday, November 7, 2018

Hi Dimitar,

Could you add the following line to *.user.js file and retest?

g_enumAllIEWindows = true;

Regards,

Denis

Thursday, November 8, 2018
Avatar
re: inflectra.max Thursday, November 8, 2018

Hi Denis,

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;

 

Thursday, November 8, 2018
Avatar
re: Hristovski Thursday, November 8, 2018

Hi Dimitar,

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?

Regards,

Denis

Thursday, November 8, 2018
Avatar
re: inflectra.max Thursday, November 8, 2018

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.

Thursday, November 8, 2018
Avatar
re: Hristovski Thursday, November 8, 2018

Hi,

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)

Friday, November 9, 2018
Avatar
re: Hristovski Thursday, November 8, 2018

Hi Dimitar,

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%"];

 

Regards,

Denis

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Saturday, November 3, 2018
  • Last Reply: Monday, October 19, 2020
  • Replies: 11
  • Views: 2731