This is a migrated thread and some comments may be shown as answers.

Unable to find Frames in Chrome 67

2 Answers 106 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
james
Top achievements
Rank 1
james asked on 07 Jun 2018, 10:43 PM

I have noticed a problem with the testing framework in all versions, including the latest release (2018 R2), when attempting to locate Frames in Chrome ver

H

<iframe src="https://qaapp02.xisecurenet.com/DIeComm/View/IFrame/db672f06-4c09-44f5-aa61-8db2c8755161/bd385978-d72b-4cda-8664-eb5caee1c7bd/true" id="ctl00_cphMain_PaymentSelectionControl_PaymentEntryControl_ucCreditCard_iPaymetrics" name="pmIf" style="width: 400px; height: 371px; overflow: hidden; min-width: 400px !important;" frameborder="0" onload="paymetrics.initializeXIFrame('ctl00_cphMain_PaymentSelectionControl_PaymentEntryControl_ucCreditCard_iPaymetrics','https://qaapp02.xisecurenet.com/DIeComm/View/IFrame/db672f06-4c09-44f5-aa61-8db2c8755161/bd385978-d72b-4cda-8664-eb5caee1c7bd/true','<?xml version="1.0" encoding="utf-8" standalone="yes"?><merchantHtmlPacketModel xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns="Paymetric:XiIntercept:MerchantHtmlPacketModel"><localization><merchantLocalization><cultureName>en-US</cultureName></merchantLocalization></localization><iFramePacket><hostUri>https://backoffice.qa4.com<;/hostUri><cssUri>https://backoffice.qa4.com/content/dist/isagenix.pay.paymetric.min.css<;/cssUri></iFramePacket><templateHtml name="CreditCard"><paymentTypes><paymentType type="mastercard" /><paymentType type="visa" /><paymentType type="discover" /><paymentType type="american express" /><paymentType type="jcb" /></paymentTypes></templateHtml></merchantHtmlPacketModel>');"></iframe>

 

 

I have tried all of the following methods to get anything back from the Frames options afforded by the framework (documentation here):

ActiveBrowser.Frames.WaitAllUntilReady();
ActiveBrowser.Frames.RefreshAllDomTrees();
ActiveBrowser.Frames[0];
ActiveBrowser.Frames["pmIf"];
ActiveBrowser.Frames.ById("ctl00_cphMain_PaymentSelectionControl_PaymentEntryControl_ucCreditCard_iPaymetrics");
ActiveBrowser.Frames.Count;

Frames.Count; always returns 0.

Each of these items works when running the same test under IE11 without issue and was working a few days ago under Chrome 66.

I have also attempted the suggestions from this support post; https://www.telerik.com/forums/issue-finding-iframe-and-its-children, with no success.

2 Answers, 1 is accepted

Sort by
0
james
Top achievements
Rank 1
answered on 11 Jun 2018, 08:42 PM
I am still having issues with iFrames in Chrome 67, any help with this issue is greatly appreciated.
0
Elena
Telerik team
answered on 12 Jun 2018, 02:22 PM
Hello James,

Thank you for reaching us out. 

Before we released our latest edition we also identified that misbehavior in Chrome v.67 and implemented a fix for it. Do you currently use R2 2018 (2018.2.606)? 

If this is so I would like to kindly ask you for the following: 
1. Open Chrome (outside of Test Studio) and navigate to chrome://flags/#enable-site-per-process - a flag Strict site isolation will be highlighted and I would like to know if this is disabled. 
2. If it is not please disable it. 
3. Then navigate to chrome://flags/#Site-isolation-trial-opt-out - a flag named Site isolation trial opt-out will be on top of the pagePlease set it to Opt-out (not recommended). 

Once you set these options please give a try to the execution of test including frames. What will be the behavior? 

If you still face any troubles I will appreciate if you could share your application with us - there could be something specific which we hadn't handled and if having the application under test we could investigate further. 

Thanks in advance for your cooperation. 

Regards,
Elena Tsvetkova
Progress Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
james
Top achievements
Rank 1
Answers by
james
Top achievements
Rank 1
Elena
Telerik team
Share this question
or