KpConfiguraionSection.xml 3.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. /**
  4. * This file is part of the Klarna KP module
  5. *
  6. * (c) Klarna Bank AB (publ)
  7. *
  8. * For the full copyright and license information, please view the NOTICE
  9. * and LICENSE files that were distributed with this source code.
  10. */
  11. -->
  12. <sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
  13. <section name="KpConfiguraionSection">
  14. <element name="apiTab" type="button" selector="//a[@id='payment_us_klarna_section_klarna_api-head']"/>
  15. <element name="apiVersionSelect" type="select" selector="//select[@id='payment_us_klarna_section_klarna_api_api_version']"/>
  16. <element name="kpApiEu" type="select" selector="//select[@id='payment_us_klarna_section_klarna_api_api_version']/option[text()='Klarna Payments (Europe)']"/>
  17. <element name="kpApiNa" type="select" selector="//select[@id='payment_us_klarna_section_klarna_api_api_version']/option[text()='Klarna Payments (North America)']"/>
  18. <element name="merchantEid" type="input" selector="//input[@id='payment_us_klarna_section_klarna_api_merchant_id']"/>
  19. <element name="merchantPwd" type="input" selector="//input[@id='payment_us_klarna_section_klarna_api_shared_secret']"/>
  20. <element name="apiTestModeSelect" type="select" selector="//select[@id='payment_us_klarna_section_klarna_api_test_mode']"/>
  21. <element name="testModeEnable" type="select" selector="//select[@id='payment_us_klarna_section_klarna_api_test_mode']/option[text()='Enable']"/>
  22. <element name="testModeDisable" type="select" selector="//select[@id='payment_us_klarna_section_klarna_api_test_mode']/option[text()='Disable']"/>
  23. <element name="apiDebugModeSelect" type="select" selector="//select[@id='payment_us_klarna_section_klarna_api_debug']"/>
  24. <element name="debugModeEnable" type="select" selector="//select[@id='payment_us_klarna_section_klarna_api_debug']/option[text()='Enable']"/>
  25. <element name="debugModeDisable" type="select" selector="//select[@id='payment_us_klarna_section_klarna_api_debug']/option[text()='Disable']"/>
  26. <element name="paymentTab" type="button" selector="//a[@id='payment_us_klarna_section_klarna_klarna_kp_required-head']"/>
  27. <element name="kpPaymentActiveSelect" type="select" selector="//select[@id='payment_us_klarna_section_klarna_klarna_kp_required_active']"/>
  28. <element name="activeEnabled" type="select" selector="//select[@id='payment_us_klarna_section_klarna_klarna_kp_required_active']/option[text()='Yes']"/>
  29. <element name="activeDisabled" type="select" selector="//select[@id='payment_us_klarna_section_klarna_klarna_kp_required_active']/option[text()='No']"/>
  30. <element name="kpPaymentAllowedCountriesSelect" type="select" selector="//select[@id='payment_us_klarna_section_klarna_klarna_kp_required_allowspecific']"/>
  31. <element name="allAllowedCountries" type="select" selector="//select[@id='payment_us_klarna_section_klarna_klarna_kp_required_allowspecific']/option[text()='All Allowed Countries']"/>
  32. <element name="save" type="button" selector="//span[text()='Save Config']"/>
  33. <element name="successfulMessage" type="text" selector="//*[@data-ui-id='messages-message-success']"/>
  34. </section>
  35. </sections>