0

In Test folder

    <amOnPage url="test-page-5" stepKey="navigateToTimeoutPage"/>
     <waitForPageLoad stepKey="waitForPageLoad3"/>
    <switchToIFrame  stepKey="switchToIFrame2"/>
     <fillField selector="{{CartTimeoutPagesPageActionsSection.Fname}}" userInput="ABC" stepKey="enterTimeoutValueKey"/>

In Section folder

    <?xml version="1.0" encoding="UTF-8"?>
        <sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2- 
     functional-testing- framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
<section name="CartTimeoutPagesPageActionsSection">     
    <element name="Fname" type="input" selector="//*[@id='fname']"/>
    <element name="ContactIframe" type="iframe" selector="#div_iframe"/>
</section>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.