@sap_oss/wdio-qmate-service 3.8.0 → 3.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.yml +4 -4
- package/.prettierrc.json +7 -7
- package/CLAUDE.md +10 -10
- package/CONTRIBUTING.md +1 -1
- package/README.md +6 -2
- package/lib/reuse/authenticator/authConfig.js +3 -3
- package/lib/reuse/authenticator/authConfig.js.map +1 -1
- package/lib/reuse/authenticator/authHandler.js +0 -2
- package/lib/reuse/authenticator/authHandler.js.map +1 -1
- package/lib/reuse/authenticator/basicUrlAuthenticator.js.map +1 -1
- package/lib/reuse/authenticator/customAuthenticator.js +1 -3
- package/lib/reuse/authenticator/customAuthenticator.js.map +1 -1
- package/lib/reuse/authenticator/formAuthenticator.js +1 -3
- package/lib/reuse/authenticator/formAuthenticator.js.map +1 -1
- package/lib/reuse/helper/clientsideUI5scripts.js +15 -19
- package/lib/reuse/helper/clientsideUI5scripts.js.map +1 -1
- package/lib/reuse/helper/dateTimeFormatParser.js +8 -2
- package/lib/reuse/helper/dateTimeFormatParser.js.map +1 -1
- package/lib/reuse/helper/elementHighlight.js +2 -6
- package/lib/reuse/helper/elementHighlight.js.map +1 -1
- package/lib/reuse/helper/errorHandler.js +2 -9
- package/lib/reuse/helper/errorHandler.js.map +1 -1
- package/lib/reuse/helper/jsDocGen.js +1 -1
- package/lib/reuse/helper/jsDocGen.js.map +1 -1
- package/lib/reuse/helper/tableHelper.js +3 -0
- package/lib/reuse/helper/tableHelper.js.map +1 -1
- package/lib/reuse/helper/timeHelper.js +3 -7
- package/lib/reuse/helper/timeHelper.js.map +1 -1
- package/lib/reuse/helper/verboseLogger.js.map +1 -1
- package/lib/reuse/index.js +0 -17
- package/lib/reuse/index.js.map +1 -1
- package/lib/reuse/modules/common/constants/date.constants.js +0 -2
- package/lib/reuse/modules/common/constants/date.constants.js.map +1 -1
- package/lib/reuse/modules/common/navigation.js.map +1 -1
- package/lib/reuse/modules/flp/userSettings.d.ts +2 -0
- package/lib/reuse/modules/flp/userSettings.js +6 -1
- package/lib/reuse/modules/flp/userSettings.js.map +1 -1
- package/lib/reuse/modules/nonUi5/NonUi5.js.map +1 -1
- package/lib/reuse/modules/nonUi5/session.js.map +1 -1
- package/lib/reuse/modules/nonUi5/userInteraction.js.map +1 -1
- package/lib/reuse/modules/ui5/assertion.d.ts +1 -0
- package/lib/reuse/modules/ui5/assertion.js +11 -4
- package/lib/reuse/modules/ui5/assertion.js.map +1 -1
- package/lib/reuse/modules/ui5/control.js.map +1 -1
- package/lib/reuse/modules/ui5/date.js +15 -15
- package/lib/reuse/modules/ui5/date.js.map +1 -1
- package/lib/reuse/modules/ui5/element.d.ts +2 -2
- package/lib/reuse/modules/ui5/element.js +7 -4
- package/lib/reuse/modules/ui5/element.js.map +1 -1
- package/lib/reuse/modules/ui5/session.d.ts +4 -2
- package/lib/reuse/modules/ui5/session.js +32 -4
- package/lib/reuse/modules/ui5/session.js.map +1 -1
- package/lib/reuse/modules/ui5/table.js +25 -9
- package/lib/reuse/modules/ui5/table.js.map +1 -1
- package/lib/reuse/modules/ui5/userInteraction.d.ts +1 -1
- package/lib/reuse/modules/ui5/userInteraction.js +46 -59
- package/lib/reuse/modules/ui5/userInteraction.js.map +1 -1
- package/lib/reuse/modules/util/constants/formatter.constants.js +0 -2
- package/lib/reuse/modules/util/constants/formatter.constants.js.map +1 -1
- package/lib/reuse/modules/util/file.d.ts +7 -4
- package/lib/reuse/modules/util/file.js +34 -7
- package/lib/reuse/modules/util/file.js.map +1 -1
- package/lib/reuse/modules/util/formatter.js +7 -3
- package/lib/reuse/modules/util/formatter.js.map +1 -1
- package/lib/reuse/modules/util/function.js +1 -5
- package/lib/reuse/modules/util/function.js.map +1 -1
- package/lib/scripts/clientsideUI5scripts.js +22 -29
- package/lib/scripts/clientsideUI5scripts.js.map +1 -1
- package/lib/scripts/dataExchange/dataExchange.js.map +1 -1
- package/lib/scripts/dataExchange/dataExchangeUtil.js +3 -13
- package/lib/scripts/dataExchange/dataExchangeUtil.js.map +1 -1
- package/lib/scripts/hooks/before.js +0 -1
- package/lib/scripts/hooks/before.js.map +1 -1
- package/lib/scripts/hooks/onComplete.js +2 -3
- package/lib/scripts/hooks/onComplete.js.map +1 -1
- package/lib/scripts/hooks/utils/addLocatorCommands.js.map +1 -1
- package/lib/scripts/hooks/utils/browserLog.js.map +1 -1
- package/lib/scripts/hooks/utils/cycle.js +3 -9
- package/lib/scripts/hooks/utils/cycle.js.map +1 -1
- package/lib/scripts/hooks/utils/dataExchangeCommands.js +1 -2
- package/lib/scripts/hooks/utils/dataExchangeCommands.js.map +1 -1
- package/lib/scripts/hooks/utils/isBrowserDefined.js.map +1 -1
- package/lib/scripts/locators/qmateLocator.js +30 -53
- package/lib/scripts/locators/qmateLocator.js.map +1 -1
- package/lib/scripts/locators/qmateLocatorSrc/comparators/DomPropertiesComparator.js +2 -2
- package/lib/scripts/locators/qmateLocatorSrc/comparators/DomPropertiesComparator.js.map +1 -1
- package/lib/scripts/locators/qmateLocatorSrc/constants/IgnoredMetadataList.d.ts +1 -0
- package/lib/scripts/locators/qmateLocatorSrc/constants/IgnoredMetadataList.js +10 -0
- package/lib/scripts/locators/qmateLocatorSrc/constants/IgnoredMetadataList.js.map +1 -0
- package/lib/scripts/locators/qmateLocatorSrc/filters/ElementFilter.d.ts +2 -3
- package/lib/scripts/locators/qmateLocatorSrc/filters/ElementFilter.js +18 -22
- package/lib/scripts/locators/qmateLocatorSrc/filters/ElementFilter.js.map +1 -1
- package/lib/scripts/locators/qmateLocatorSrc/utils/UI5ControlHandler.js +3 -2
- package/lib/scripts/locators/qmateLocatorSrc/utils/UI5ControlHandler.js.map +1 -1
- package/lib/scripts/locators/uiveri5Locator.js +1 -1
- package/lib/scripts/locators/uiveri5Locator.js.map +1 -1
- package/lib/scripts/stats/createUsage.js +1 -1
- package/lib/scripts/stats/createUsage.js.map +1 -1
- package/lib/scripts/stats/getOperatingSystem.js.map +1 -1
- package/lib/scripts/stats/getUserId.js +1 -1
- package/lib/scripts/stats/stats.js +9 -9
- package/lib/scripts/stats/stats.js.map +1 -1
- package/lib/scripts/stats/updateUsage.js +1 -1
- package/mkdocs.yml +18 -18
- package/package.json +18 -26
- package/packages/qcrypt/dist/classes/Decrypter.d.ts +38 -38
- package/packages/qcrypt/dist/classes/Decrypter.js +150 -153
- package/packages/qcrypt/dist/classes/Encrypter.d.ts +46 -46
- package/packages/qcrypt/dist/classes/Encrypter.js +144 -144
- package/packages/qcrypt/dist/classes/KeyGenerator.d.ts +16 -16
- package/packages/qcrypt/dist/classes/KeyGenerator.js +45 -43
- package/packages/qcrypt/dist/classes/helper/ErrorHandler.d.ts +8 -8
- package/packages/qcrypt/dist/classes/helper/ErrorHandler.js +48 -50
- package/packages/qcrypt/dist/classes/helper/Util.d.ts +67 -67
- package/packages/qcrypt/dist/classes/helper/Util.js +113 -114
- package/packages/qcrypt/dist/index.js +5 -3
- package/packages/qcrypt/dist/types/common.d.ts +13 -13
- package/reuseApi.json +8 -468
- package/test/.eslintrc.yml +1 -1
- package/test/authenticator/staticLogin/configCustom.js +1 -3
- package/test/authenticator/staticLogin/configCustomViaConfig.js +1 -3
- package/test/authenticator/staticLogin/configFiori.js +1 -3
- package/test/authenticator/staticLogin/configPlain.js +1 -4
- package/test/authenticator/staticLogin/configSapCloud.js +1 -3
- package/test/authenticator/staticLogin/html/custom.html +4 -4
- package/test/authenticator/staticLogin/html/fiori.html +4 -4
- package/test/authenticator/staticLogin/html/home.html +2 -2
- package/test/authenticator/staticLogin/html/sapCloud.html +4 -4
- package/test/authenticator/staticLogin/specs/custom.spec.js +1 -5
- package/test/authenticator/staticLogin/specs/plain.spec.js +0 -5
- package/test/authenticator/staticLogin/staticServerConfig.js +13 -10
- package/test/authenticator/systemLogin/configCustom.js +3 -5
- package/test/authenticator/systemLogin/configFiori.js +2 -5
- package/test/authenticator/systemLogin/configPlain.js +3 -5
- package/test/authenticator/systemLogin/configSapCloud.js +3 -5
- package/test/authenticator/systemLogin/specs/custom.spec.js +3 -5
- package/test/authenticator/systemLogin/specs/fiori.spec.js +3 -4
- package/test/authenticator/systemLogin/specs/plain.spec.js +3 -5
- package/test/authenticator/systemLogin/specs/sapCloud.spec.js +3 -5
- package/test/core/dataExchange/config.export.js +11 -18
- package/test/core/dataExchange/config.import.js +7 -12
- package/test/core/dataExchange/config.js +9 -11
- package/test/core/dataExchange/config.parallel.group.js +53 -61
- package/test/core/dataExchange/config.parallel.js +53 -58
- package/test/core/dataExchange/data/another/folder/data/anotherFolder/purchase-orders/Limit-Purchase-Order.json +1 -1
- package/test/core/dataExchange/data/another/folder/data/anotherFolder/purchase-orders/ServicePurchaseOrder.2Items.json +1 -1
- package/test/core/dataExchange/data/another/folder/data/anotherFolder/purchaseRequisition_HI.json +1 -1
- package/test/core/dataExchange/data/another/folder/data/anotherFolder/subfolder/LimitPurchaseOrder.json +1 -1
- package/test/core/dataExchange/data/another/folder/data/anotherFolder/subfolder/PurchaseOrderItems.json +1 -1
- package/test/core/dataExchange/data/another/folder/data/anotherFolder/subfolder/PurchaseOrderWithScheduline.json +1 -1
- package/test/core/dataExchange/data/another/folder/data/anotherFolder/subfolder/ServiceAndMaterialPurchaseOrder.json +1 -1
- package/test/core/dataExchange/data/another/folder/data/anotherFolder/subfolder/ServicePurchaseOrder.json +1 -1
- package/test/core/dataExchange/data/another/folder/data/anotherFolder/subfolder/ServicePurchaseOrder2Items.json +1 -1
- package/test/core/dataExchange/data/my/folder/data/qs9/data.json +1 -1
- package/test/core/dataExchange/data/my/folder/data/qs9/purchaseRequisition.json +1 -1
- package/test/core/dataExchange/data/my/folder/data/qs9/supplierInvoice.json +1 -1
- package/test/core/dataExchange/data/my/folder/data/qs9/webUser.json +1 -1
- package/test/core/dataExchange/data/ui/moreDataFolder/anotherUser.json +1 -1
- package/test/core/dataExchange/data/ui/user.json +1 -1
- package/test/core/dataExchange/data/ui/webUser.json +1 -1
- package/test/core/dataExchange/specs/export.fast.spec.js +11 -16
- package/test/core/dataExchange/specs/export.slow.spec.js +13 -18
- package/test/core/dataExchange/specs/export.spec.js +13 -23
- package/test/core/dataExchange/specs/import.spec.js +6 -23
- package/test/core/dataExchange/specs/importExport.spec.js +47 -62
- package/test/core/dataExchange/utils.js +11 -15
- package/test/core/functional/README.md +8 -5
- package/test/core/functional/chaining/chaining.test.js +46 -49
- package/test/core/functional/chaining/test.conf.js +1 -4
- package/test/core/functional/locators/ancestorProperties.test.js +49 -59
- package/test/core/functional/locators/childProperties.test.js +30 -36
- package/test/core/functional/locators/descendantProperties.test.js +50 -57
- package/test/core/functional/locators/domProperties.test.js +25 -29
- package/test/core/functional/locators/elementProperties.test.js +30 -29
- package/test/core/functional/locators/mixedProperties.test.js +317 -108
- package/test/core/functional/locators/parentProperties.test.js +18 -22
- package/test/core/functional/locators/siblingProperties.test.js +66 -75
- package/test/core/functional/locators/utils.js +1 -1
- package/test/core/functional/nativeBrowser/runInBrowser.test.js +84 -58
- package/test/core/functional/nativeBrowser/test.conf.js +1 -3
- package/test/core/functional/nonUi5/basic.test.js +3 -3
- package/test/core/functional/nonUi5/getWithDomElement.test.js +0 -2
- package/test/core/functional/nonUi5/getWithDomElements.test.js +2 -3
- package/test/core/functional/nonUi5/test.conf.js +1 -4
- package/test/core/functional/ui5Properties/countries.json +1 -1
- package/test/core/functional/ui5Properties/getAggregations.test.js +19 -27
- package/test/core/functional/ui5Properties/getAssociations.test.js +3 -3
- package/test/core/functional/ui5Properties/getBindingInfos.test.js +17 -17
- package/test/core/functional/ui5Properties/getProperties.test.js +25 -33
- package/test/core/functional/ui5Properties/test.conf.js +1 -6
- package/test/core/functional/uiveri5/sample.test.js +1 -2
- package/test/core/functional/uiveri5/test.conf.js +1 -3
- package/test/core/testIntegration/config.js +1 -1
- package/test/core/testIntegration/configMultiCombo.js +1 -1
- package/test/core/testIntegration/configTable.js +1 -1
- package/test/core/testIntegration/filters1.spec.js +908 -870
- package/test/core/testIntegration/multicombobox.spec.js +64 -60
- package/test/core/testIntegration/table.spec.js +35 -33
- package/test/helper/configurations/base.conf.js +6 -3
- package/test/helper/configurations/chrome.headless.conf.js +1 -1
- package/test/helper/sleeper.js +1 -1
- package/test/reuse/common/assertion/expectDefined.spec.js +1 -2
- package/test/reuse/common/assertion/expectEqual.spec.js +36 -26
- package/test/reuse/common/assertion/expectFalse.spec.js +1 -1
- package/test/reuse/common/assertion/expectTrue.spec.js +1 -1
- package/test/reuse/common/assertion/expectUndefined.spec.js +1 -2
- package/test/reuse/common/assertion/expectUnequal.spec.js +24 -13
- package/test/reuse/common/assertion/expectUrlToBe.spec.js +3 -6
- package/test/reuse/common/assertion/test.assertion.conf.js +39 -35
- package/test/reuse/common/date/calculate.spec.js +36 -36
- package/test/reuse/common/date/calculateWithTime.spec.js +88 -88
- package/test/reuse/common/date/getNextMonth.spec.js +3 -3
- package/test/reuse/common/date/getNextYear.spec.js +2 -2
- package/test/reuse/common/date/getPreviousMonth.spec.js +2 -2
- package/test/reuse/common/date/getPreviousYear.spec.js +2 -2
- package/test/reuse/common/date/getSpecific.spec.js +2 -2
- package/test/reuse/common/date/getToday.spec.js +2 -2
- package/test/reuse/common/date/getTomorrow.spec.js +2 -2
- package/test/reuse/common/date/test.date.conf.js +1 -1
- package/test/reuse/common/navigation/navigateToUrlAndRetry.spec.js +2 -6
- package/test/reuse/common/navigation/test.navigation.conf.js +14 -12
- package/test/reuse/common/userInteraction/clearAndFillActive.spec.js +1 -3
- package/test/reuse/common/userInteraction/clearAndFillActiveAndRetry.spec.js +2 -6
- package/test/reuse/common/userInteraction/fillActive.spec.js +2 -6
- package/test/reuse/common/userInteraction/fillActiveAndRetry.spec.js +2 -6
- package/test/reuse/common/userInteraction/pressKey.spec.js +6 -30
- package/test/reuse/common/userInteraction/test.userInteraction.conf.js +36 -38
- package/test/reuse/flp/userLocks/data/data.json +1 -1
- package/test/reuse/flp/userLocks/deleteExistingLockEntries.spec.js +0 -3
- package/test/reuse/flp/userLocks/getNumberOfLockEntries.spec.js +0 -2
- package/test/reuse/flp/userLocks/test.userLocks.conf.js +1 -4
- package/test/reuse/flp/userSettings/data/data.json +1 -1
- package/test/reuse/flp/userSettings/getDateFormatFromUserSettings.spec.js +0 -2
- package/test/reuse/flp/userSettings/getLanguageFromUserSettings.spec.js +0 -1
- package/test/reuse/flp/userSettings/getTimeFormatFromUserSettings.spec.js +0 -3
- package/test/reuse/flp/userSettings/getTimeZoneFromUserSettings.spec.js +0 -2
- package/test/reuse/flp/userSettings/setDateFormatFromUserSettings.spec.js +0 -2
- package/test/reuse/flp/userSettings/setLanguageFromUserSettings.spec.js +0 -2
- package/test/reuse/flp/userSettings/setNumberFormatFromUserSettings.spec.js +1 -3
- package/test/reuse/flp/userSettings/setS4UserSettings.spec.js +0 -2
- package/test/reuse/flp/userSettings/setTimeFormatFromUserSettings.spec.js +0 -3
- package/test/reuse/flp/userSettings/setTimeZoneFromUserSettings.spec.js +0 -2
- package/test/reuse/flp/userSettings/test.userSettings.apply.conf.js +1 -3
- package/test/reuse/helper/elementHighlight/test.elementHighlight.conf.js +2 -4
- package/test/reuse/nonUi5/assertion/expectAttributeToBe.spec.js +4 -11
- package/test/reuse/nonUi5/assertion/expectAttributeToContain.spec.js +3 -10
- package/test/reuse/nonUi5/assertion/expectCssPropertyValueToBe.spec.js +2 -4
- package/test/reuse/nonUi5/assertion/expectToBeNotVisible.spec.js +3 -5
- package/test/reuse/nonUi5/assertion/expectToBeVisible.spec.js +2 -2
- package/test/reuse/nonUi5/assertion/test.assertion.conf.js +39 -35
- package/test/reuse/nonUi5/assertion/test.assertion.sauceLabs.conf.js +40 -42
- package/test/reuse/nonUi5/element/getAttributeValue.spec.js +3 -9
- package/test/reuse/nonUi5/element/getByChild.spec.js +4 -8
- package/test/reuse/nonUi5/element/getByClass.spec.js +2 -7
- package/test/reuse/nonUi5/element/getByCss.spec.js +6 -11
- package/test/reuse/nonUi5/element/getByCssContainingText.spec.js +2 -6
- package/test/reuse/nonUi5/element/getById.spec.js +3 -10
- package/test/reuse/nonUi5/element/getByName.spec.js +2 -5
- package/test/reuse/nonUi5/element/getByParent.spec.js +5 -15
- package/test/reuse/nonUi5/element/getByXPath.spec.js +2 -5
- package/test/reuse/nonUi5/element/getCssPropertyValue.spec.js +1 -4
- package/test/reuse/nonUi5/element/getValue.spec.js +3 -6
- package/test/reuse/nonUi5/element/highlight.spec.js +0 -2
- package/test/reuse/nonUi5/element/isPresent.spec.js +1 -3
- package/test/reuse/nonUi5/element/isPresentByCss.spec.js +1 -1
- package/test/reuse/nonUi5/element/isPresentByXPath.spec.js +0 -1
- package/test/reuse/nonUi5/element/setInnerHTML.spec.js +2 -5
- package/test/reuse/nonUi5/element/test.element.conf.js +18 -15
- package/test/reuse/nonUi5/element/waitForAll.spec.js +2 -5
- package/test/reuse/nonUi5/element/waitToBeClickable.spec.js +2 -5
- package/test/reuse/nonUi5/element/waitToBePresent.spec.js +2 -3
- package/test/reuse/nonUi5/element/waitToBeVisible.spec.js +3 -8
- package/test/reuse/nonUi5/navigation/test.navigation.conf.js +1 -3
- package/test/reuse/nonUi5/userInteraction/checkAttributeAndValue.spec.js +13 -17
- package/test/reuse/nonUi5/userInteraction/clear.spec.js +3 -5
- package/test/reuse/nonUi5/userInteraction/clearAndFill.spec.js +1 -1
- package/test/reuse/nonUi5/userInteraction/clearAndFillAndRetry.spec.js +1 -3
- package/test/reuse/nonUi5/userInteraction/clearAndRetry.spec.js +1 -3
- package/test/reuse/nonUi5/userInteraction/click.spec.js +1 -3
- package/test/reuse/nonUi5/userInteraction/clickAndRetry.spec.js +2 -6
- package/test/reuse/nonUi5/userInteraction/clickElementInSvg.spec.js +1 -3
- package/test/reuse/nonUi5/userInteraction/doubleClick.spec.js +1 -1
- package/test/reuse/nonUi5/userInteraction/dragAndDrop.spec.js +2 -2
- package/test/reuse/nonUi5/userInteraction/fillAndRetry.spec.js +1 -3
- package/test/reuse/nonUi5/userInteraction/selectAll.spec.js +2 -2
- package/test/reuse/nonUi5/userInteraction/test.userInteraction.conf.js +1 -1
- package/test/reuse/nonUi5/userInteraction/test.userInteraction.sauceLabs.conf.js +43 -39
- package/test/reuse/service/odata/test.odata.conf.js +4 -7
- package/test/reuse/service/rest/db.json +1 -1
- package/test/reuse/service/rest/delete.spec.js +3 -10
- package/test/reuse/service/rest/get.spec.js +2 -9
- package/test/reuse/service/rest/init.spec.js +0 -2
- package/test/reuse/service/rest/patch.spec.js +5 -12
- package/test/reuse/service/rest/post.spec.js +6 -17
- package/test/reuse/service/rest/put.spec.js +10 -17
- package/test/reuse/service/rest/rest-server.js +5 -5
- package/test/reuse/service/rest/test.rest.conf.js +4 -11
- package/test/reuse/ui5/assertion/expectAttributeToBe.spec.js +77 -42
- package/test/reuse/ui5/assertion/expectAttributeToContain.spec.js +48 -18
- package/test/reuse/ui5/assertion/expectBindingContextPathToBe.spec.js +41 -42
- package/test/reuse/ui5/assertion/expectBindingPathToBe.spec.js +58 -64
- package/test/reuse/ui5/assertion/expectCssPropertyValueToBe.spec.js +1 -2
- package/test/reuse/ui5/assertion/expectMessageToastTextToBe.spec.js +7 -11
- package/test/reuse/ui5/assertion/expectTextToBe.spec.js +13 -13
- package/test/reuse/ui5/assertion/expectToBeEnabled.spec.js +2 -6
- package/test/reuse/ui5/assertion/expectToBeNotEnabled.spec.js +17 -20
- package/test/reuse/ui5/assertion/expectToBeNotVisible.spec.js +13 -14
- package/test/reuse/ui5/assertion/expectToBeVisible.spec.js +15 -20
- package/test/reuse/ui5/assertion/expectToBeVisibleInViewport.spec.js +11 -15
- package/test/reuse/ui5/assertion/expectValidationError.spec.js +14 -16
- package/test/reuse/ui5/assertion/expectValidationSuccess.spec.js +14 -16
- package/test/reuse/ui5/assertion/expectValueToBe.spec.js +14 -17
- package/test/reuse/ui5/assertion/expectValueToBeDefined.spec.js +6 -9
- package/test/reuse/ui5/assertion/test.assertion.sauceLab.conf.js +3 -3
- package/test/reuse/ui5/confirmationDialog/clickButton.spec.js +24 -28
- package/test/reuse/ui5/confirmationDialog/clickCancel.spec.js +24 -25
- package/test/reuse/ui5/confirmationDialog/clickCreate.spec.js +1 -1
- package/test/reuse/ui5/confirmationDialog/clickDelete.spec.js +25 -28
- package/test/reuse/ui5/confirmationDialog/clickNo.spec.js +21 -29
- package/test/reuse/ui5/confirmationDialog/clickOk.spec.js +19 -22
- package/test/reuse/ui5/confirmationDialog/clickRevokeApproval.spec.js +1 -1
- package/test/reuse/ui5/confirmationDialog/clickYes.spec.js +17 -25
- package/test/reuse/ui5/confirmationDialog/test.confirmationDialog.conf.js +1 -1
- package/test/reuse/ui5/confirmationDialog/test.confirmationDialog.sauceLab.conf.js +4 -4
- package/test/reuse/ui5/control/execute.spec.js +37 -25
- package/test/reuse/ui5/control/focus.spec.js +29 -29
- package/test/reuse/ui5/control/getAggregationProperty.spec.js +25 -21
- package/test/reuse/ui5/control/getAssociationProperty.spec.js +13 -15
- package/test/reuse/ui5/control/getBindingContextPathProperty.spec.js +12 -10
- package/test/reuse/ui5/control/getProperty.spec.js +12 -10
- package/test/reuse/ui5/control/getPropertyBinding.spec.js +12 -10
- package/test/reuse/ui5/control/test.control.sauceLab.conf.js +3 -4
- package/test/reuse/ui5/date/fillRange.spec.js +7 -10
- package/test/reuse/ui5/date/pick.spec.js +31 -34
- package/test/reuse/ui5/date/pickRange.spec.js +31 -25
- package/test/reuse/ui5/date/pickWithTime.spec.js +8 -10
- package/test/reuse/ui5/date/test.date.conf.js +3 -8
- package/test/reuse/ui5/date/test.date.sauceLab.conf.js +4 -9
- package/test/reuse/ui5/element/getBindingValue.spec.js +17 -23
- package/test/reuse/ui5/element/getByChild.spec.js +52 -52
- package/test/reuse/ui5/element/getByParent.spec.js +65 -61
- package/test/reuse/ui5/element/getByText.spec.js +10 -14
- package/test/reuse/ui5/element/getCssPropertyValue.spec.js +1 -1
- package/test/reuse/ui5/element/getDisplayed.spec.js +23 -26
- package/test/reuse/ui5/element/getId.spec.js +15 -18
- package/test/reuse/ui5/element/getPropertyValue.spec.js +19 -23
- package/test/reuse/ui5/element/highlight.spec.js +9 -12
- package/test/reuse/ui5/element/isVisible.spec.js +12 -12
- package/test/reuse/ui5/element/test.element.sauceLab.conf.js +3 -5
- package/test/reuse/ui5/element/waitForAll.spec.js +10 -15
- package/test/reuse/ui5/errorDialog/clickClose.spec.js +6 -9
- package/test/reuse/ui5/errorDialog/expectToBeVisible.spec.js +7 -11
- package/test/reuse/ui5/errorDialog/test.errorDialog.conf.js +2 -5
- package/test/reuse/ui5/errorDialog/test.errorDialog.sauceLab.conf.js +4 -9
- package/test/reuse/ui5/mockserver_qunit/Component.js +3 -8
- package/test/reuse/ui5/mockserver_qunit/controller/App.controller.js +12 -18
- package/test/reuse/ui5/mockserver_qunit/controller/BaseController.js +3 -10
- package/test/reuse/ui5/mockserver_qunit/controller/Home.controller.js +6 -11
- package/test/reuse/ui5/mockserver_qunit/controller/NotFound.controller.js +6 -11
- package/test/reuse/ui5/mockserver_qunit/controller/employee/Employee.controller.js +10 -16
- package/test/reuse/ui5/mockserver_qunit/controller/employee/EmployeeList.controller.js +4 -9
- package/test/reuse/ui5/mockserver_qunit/controller/employee/Resume.controller.js +39 -36
- package/test/reuse/ui5/mockserver_qunit/controller/employee/overview/EmployeeOverview.controller.js +2 -7
- package/test/reuse/ui5/mockserver_qunit/controller/employee/overview/EmployeeOverviewContent.controller.js +66 -79
- package/test/reuse/ui5/mockserver_qunit/index.html +19 -18
- package/test/reuse/ui5/mockserver_qunit/initMockServer.js +13 -13
- package/test/reuse/ui5/mockserver_qunit/localService/mockdata/Employees.json +153 -153
- package/test/reuse/ui5/mockserver_qunit/localService/mockdata/Resumes.json +63 -63
- package/test/reuse/ui5/mockserver_qunit/localService/mockserver.js +124 -128
- package/test/reuse/ui5/mockserver_qunit/localService/mockserverLoadAllData.js +7 -13
- package/test/reuse/ui5/mockserver_qunit/manifest.json +169 -167
- package/test/reuse/ui5/mockserver_qunit/test/flpSandboxMockServer.html +58 -56
- package/test/reuse/ui5/mockserver_qunit/test/flpSandboxMockServerAllData.html +65 -61
- package/test/reuse/ui5/mockserver_qunit/test/qmate/ui/config.js +60 -66
- package/test/reuse/ui5/mockserver_qunit/test/qmate/ui/qunitExecution/specs/runQUnitTests.spec.js +3 -4
- package/test/reuse/ui5/mockserver_qunit/test/qmate/ui/testDisplayNotFound/data/setup.json +8 -10
- package/test/reuse/ui5/mockserver_qunit/test/qmate/ui/testDisplayNotFound/specs/testDisplayNotFound.spec.js +16 -18
- package/test/reuse/ui5/mockserver_qunit/test/qmate/ui/testShowEmployeeList/data/mock/Employees.json +203 -203
- package/test/reuse/ui5/mockserver_qunit/test/qmate/ui/testShowEmployeeList/data/mock/Resumes.json +113 -113
- package/test/reuse/ui5/mockserver_qunit/test/qmate/ui/testShowEmployeeList/data/setup.json +8 -10
- package/test/reuse/ui5/mockserver_qunit/test/qmate/ui/testShowEmployeeList/data/testShowEmployeeList.json +1 -1
- package/test/reuse/ui5/mockserver_qunit/test/qmate/ui/testShowEmployeeList/specs/testShowEmployeeList.spec.js +24 -26
- package/test/reuse/ui5/mockserver_qunit/test/qmate/ui/utils/constants.js +2 -2
- package/test/reuse/ui5/mockserver_qunit/test/qmate/ui/utils/mockDataMapper.js +5 -6
- package/test/reuse/ui5/mockserver_qunit/test/qmate/ui/utils/mockHelper.js +37 -52
- package/test/reuse/ui5/mockserver_qunit/test/unit/allTests.js +2 -4
- package/test/reuse/ui5/mockserver_qunit/test/unit/unitTests.qunit.html +28 -31
- package/test/reuse/ui5/mockserver_qunit/test/unit/utils/Conversions.js +13 -10
- package/test/reuse/ui5/navigation/expectUnsupportedNavigationPopup.spec.js +12 -13
- package/test/reuse/ui5/navigation/navigateToApplicationWithQueryParams.spec.js +1 -1
- package/test/reuse/ui5/navigation/navigateToApplicationWithQueryParamsAndRetry.spec.js +1 -1
- package/test/reuse/ui5/navigation/navigateToSystemAndApplication.spec.js +1 -2
- package/test/reuse/ui5/navigation/navigateToSystemAndApplicationAndRetry.spec.js +2 -4
- package/test/reuse/ui5/navigation/test.navigation.conf.js +2 -7
- package/test/reuse/ui5/navigation/test.navigation.sauceLab.conf.js +4 -4
- package/test/reuse/ui5/navigation/test.navigation.static.sauceLab.conf.js +4 -4
- package/test/reuse/ui5/navigationBar/clickUserIcon.spec.js +5 -10
- package/test/reuse/ui5/navigationBar/expectPageTitle.spec.js +2 -3
- package/test/reuse/ui5/navigationBar/expectShellHeader.spec.js +2 -3
- package/test/reuse/ui5/navigationBar/test.navigationBar.conf.js +2 -8
- package/test/reuse/ui5/navigationBar/test.navigationBar.sauceLab.conf.js +4 -10
- package/test/reuse/ui5/session/login.spec.js +9 -11
- package/test/reuse/ui5/session/loginFiori.spec.js +5 -7
- package/test/reuse/ui5/session/loginSapCloud.spec.js +6 -8
- package/test/reuse/ui5/session/logout.spec.js +2 -3
- package/test/reuse/ui5/session/switchUser.spec.js +1 -1
- package/test/reuse/ui5/session/test.session.conf.js +1 -7
- package/test/reuse/ui5/session/test.session.sauceLab.conf.js +4 -12
- package/test/reuse/ui5/table/clickSettingsButton.spec.js +12 -18
- package/test/reuse/ui5/table/getAllColumnValuesByName.spec.js +1 -4
- package/test/reuse/ui5/table/getSelectorForRowByIndex.spec.js +11 -14
- package/test/reuse/ui5/table/getSelectorsForRowsByValues.spec.js +6 -9
- package/test/reuse/ui5/table/getTotalNumberOfRowsByValues.spec.js +1 -3
- package/test/reuse/ui5/table/openItemByIndex.spec.js +23 -29
- package/test/reuse/ui5/table/openItemByValues.spec.js +27 -38
- package/test/reuse/ui5/table/selectRowByValues.spec.js +7 -7
- package/test/reuse/ui5/table/sortColumnAscending.spec.js +17 -25
- package/test/reuse/ui5/table/sortColumnDescending.spec.js +13 -19
- package/test/reuse/ui5/table/test.table.sauceLab.conf.js +4 -8
- package/test/reuse/ui5/table/test.table.sauceLab.tunnel.conf.js +4 -8
- package/test/reuse/ui5/userInteraction/clear.spec.js +14 -18
- package/test/reuse/ui5/userInteraction/clearAndFill.spec.js +28 -29
- package/test/reuse/ui5/userInteraction/clearAndFillAndRetry.spec.js +4 -12
- package/test/reuse/ui5/userInteraction/clearAndFillSmartFieldInput.spec.js +20 -19
- package/test/reuse/ui5/userInteraction/clearAndFillSmartFieldInputAndRetry.spec.js +5 -7
- package/test/reuse/ui5/userInteraction/clearAndRetry.spec.js +11 -16
- package/test/reuse/ui5/userInteraction/click.spec.js +90 -29
- package/test/reuse/ui5/userInteraction/clickAndRetry.spec.js +1 -3
- package/test/reuse/ui5/userInteraction/clickSelectArrow.spec.js +29 -30
- package/test/reuse/ui5/userInteraction/clickSelectArrowAndRetry.spec.js +1 -3
- package/test/reuse/ui5/userInteraction/doubleClick.spec.js +18 -22
- package/test/reuse/ui5/userInteraction/dragAndDrop.spec.js +8 -10
- package/test/reuse/ui5/userInteraction/fill.spec.js +20 -22
- package/test/reuse/ui5/userInteraction/fillAndRetry.spec.js +2 -6
- package/test/reuse/ui5/userInteraction/mouseOverElement.spec.js +2 -5
- package/test/reuse/ui5/userInteraction/openF4Help.spec.js +8 -12
- package/test/reuse/ui5/userInteraction/openValueHelp.spec.js +11 -12
- package/test/reuse/ui5/userInteraction/rightClick.spec.js +17 -20
- package/test/reuse/ui5/userInteraction/scrollToElement.spec.js +38 -38
- package/test/reuse/ui5/userInteraction/searchFor.spec.js +3 -12
- package/test/reuse/ui5/userInteraction/selectBox.spec.js +36 -36
- package/test/reuse/ui5/userInteraction/selectCombobox.spec.js +16 -24
- package/test/reuse/ui5/userInteraction/selectMultiComboBox.spec.js +22 -31
- package/test/reuse/util/browser/back.spec.js +10 -11
- package/test/reuse/util/browser/clearBrowser.spec.js +1 -1
- package/test/reuse/util/browser/executeScript.spec.js +14 -16
- package/test/reuse/util/browser/getBaseUrl.spec.js +1 -1
- package/test/reuse/util/browser/getBrowserName.spec.js +1 -3
- package/test/reuse/util/browser/getCurrentUrl.spec.js +9 -9
- package/test/reuse/util/browser/getCurrentWindow.spec.js +1 -1
- package/test/reuse/util/browser/getUI5Version.spec.js +8 -8
- package/test/reuse/util/browser/log.spec.js +1 -3
- package/test/reuse/util/browser/logCurrentUrl.spec.js +1 -1
- package/test/reuse/util/browser/refresh.spec.js +14 -16
- package/test/reuse/util/browser/reloadSession.spec.js +1 -1
- package/test/reuse/util/browser/setBaseUrl.spec.js +2 -2
- package/test/reuse/util/browser/switchToDefaultContent.spec.js +28 -29
- package/test/reuse/util/browser/switchToWindow.spec.js +2 -3
- package/test/reuse/util/browser/test.browserCmndLineArgs.conf.js +1 -3
- package/test/reuse/util/browser/waitUntil.spec.js +8 -16
- package/test/reuse/util/component/loadEntryPoint.spec.js +2 -3
- package/test/reuse/util/component/storeEntryPoint.spec.js +6 -10
- package/test/reuse/util/component/test.component.conf.js +1 -4
- package/test/reuse/util/console/console.spec.js +1 -3
- package/test/reuse/util/console/test.console.conf.js +2 -4
- package/test/reuse/util/data/customSourceData/getSecureData.secure.json +1 -1
- package/test/reuse/util/data/customSourceData/test.json +1 -1
- package/test/reuse/util/data/data/test.json +1 -1
- package/test/reuse/util/data/getData.spec.js +3 -7
- package/test/reuse/util/data/test.data.conf.js +1 -5
- package/test/reuse/util/data/test.data.privacy.conf.js +1 -7
- package/test/reuse/util/file/getAttributeValuesFromJson.spec.js +1 -1
- package/test/reuse/util/file/getFileNamesByExtensions.spec.js +0 -1
- package/test/reuse/util/file/pdfParser.spec.js +76 -80
- package/test/reuse/util/file/test.file.conf.js +2 -1
- package/test/reuse/util/file/testFiles/test1.json +26 -77
- package/test/reuse/util/file/upload.spec.js +24 -29
- package/test/reuse/util/formatter/addRemoveLeadingZeros.spec.js +1 -2
- package/test/reuse/util/formatter/formatDate.spec.js +2 -2
- package/test/reuse/util/formatter/formatDateWithTime.spec.js +6 -2
- package/test/reuse/util/formatter/sliceStringAfter.spec.js +1 -1
- package/test/reuse/util/formatter/sliceStringAt.spec.js +1 -1
- package/test/reuse/util/formatter/stringifyJSON.spec.js +4 -4
- package/test/reuse/util/formatter/test.formatter.conf.js +2 -2
- package/test/reuse/util/system/system.spec.js +1 -3
- package/test/reuse/util/system/test.system.conf.js +3 -5
- package/test/reuse/util/userSettings/data/data.json +1 -1
- package/test/reuse/util/userSettings/getDateFormatFromUserSettings.spec.js +0 -2
- package/test/reuse/util/userSettings/getLanguageFromUserSettings.spec.js +0 -1
- package/test/reuse/util/userSettings/getTimeFormatFromUserSettings.spec.js +0 -3
- package/test/reuse/util/userSettings/getTimeZoneFromUserSettings.spec.js +0 -2
- package/test/reuse/util/userSettings/setDateFormatFromUserSettings.spec.js +0 -2
- package/test/reuse/util/userSettings/setLanguageFromUserSettings.spec.js +0 -2
- package/test/reuse/util/userSettings/setNumberFormatFromUserSettings.spec.js +1 -3
- package/test/reuse/util/userSettings/setS4UserSettings.spec.js +0 -2
- package/test/reuse/util/userSettings/setTimeFormatFromUserSettings.spec.js +0 -3
- package/test/reuse/util/userSettings/setTimeZoneFromUserSettings.spec.js +0 -2
- package/test/reuse/util/userSettings/test.userSettings.apply.conf.js +1 -3
- package/test/unit/stats/getUserId.error.spec.ts +3 -1
- package/test/unit/stats/getUserId.spec.ts +10 -10
- package/test/unit/vitest.config.ts +2 -2
- package/test/watchMode/config.js +1 -3
- package/test/watchMode/navigateToUrlAndClick.spec.js +7 -7
- package/tsconfig.json +1 -4
- package/lib/reuse/modules/mobile/Mobile.d.ts +0 -16
- package/lib/reuse/modules/mobile/Mobile.js +0 -23
- package/lib/reuse/modules/mobile/Mobile.js.map +0 -1
- package/lib/reuse/modules/mobile/android.d.ts +0 -32
- package/lib/reuse/modules/mobile/android.js +0 -85
- package/lib/reuse/modules/mobile/android.js.map +0 -1
- package/lib/reuse/modules/mobile/device.d.ts +0 -173
- package/lib/reuse/modules/mobile/device.js +0 -403
- package/lib/reuse/modules/mobile/device.js.map +0 -1
- package/lib/reuse/modules/mobile/element.d.ts +0 -95
- package/lib/reuse/modules/mobile/element.js +0 -185
- package/lib/reuse/modules/mobile/element.js.map +0 -1
- package/lib/reuse/modules/mobile/gestures.d.ts +0 -42
- package/lib/reuse/modules/mobile/gestures.js +0 -86
- package/lib/reuse/modules/mobile/gestures.js.map +0 -1
- package/lib/reuse/modules/mobile/ios.d.ts +0 -10
- package/lib/reuse/modules/mobile/ios.js +0 -19
- package/lib/reuse/modules/mobile/ios.js.map +0 -1
- package/lib/reuse/modules/mobile/userInteraction.d.ts +0 -94
- package/lib/reuse/modules/mobile/userInteraction.js +0 -210
- package/lib/reuse/modules/mobile/userInteraction.js.map +0 -1
- package/test/helper/configurations/mobile.conf.js +0 -16
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"device.js","sourceRoot":"","sources":["../../../../src/reuse/modules/mobile/device.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;AACb,UAAU;AACV,8DAAkE;AAClE,6EAAqD;AAKrD,MAAM,WAAW,GAAG;IAClB,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;CACV,CAAC;AAGX;;;GAGG;AACH,MAAa,MAAM;IACT,GAAG,GAAG,IAAI,oCAAoB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IACnD,YAAY,GAAG,IAAI,sBAAY,EAAE,CAAC;IAE1C,kGAAkG;IAE1F,KAAK,CAAC,eAAe;QAC3B,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAElD,MAAM,mBAAmB,GAAG,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QAC/C,MAAM,QAAQ,GAAW,MAAM,OAAO,CAAC,YAAY,CAAC,YAAY,CAAC;QACjE,OAAO,mBAAmB,CAAC,QAAQ,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;IACrE,CAAC;IAEO,KAAK,CAAC,iBAAiB;QAC7B,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QACpD,MAAM,QAAQ,GAAW,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,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;IAC1E,CAAC;CACF;AA1YD,wBA0YC;AACD,kBAAe,IAAI,MAAM,EAAE,CAAC"}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { Element } from "../../../../@types/wdio";
|
|
2
|
-
/**
|
|
3
|
-
* @class element
|
|
4
|
-
* @memberof mobile
|
|
5
|
-
*/
|
|
6
|
-
export declare class ElementModule {
|
|
7
|
-
private vlf;
|
|
8
|
-
private ErrorHandler;
|
|
9
|
-
/**
|
|
10
|
-
* @function isVisible
|
|
11
|
-
* @memberof mobile.element
|
|
12
|
-
* @description Returns a boolean if the mobile element is visible to the user.
|
|
13
|
-
* @param {Element} element - The Mobile Ui element.
|
|
14
|
-
* @param {boolean} [strict=true] - If strict mode is enabled it will only return "true" if the element is visible on the mobile view and within the viewport.
|
|
15
|
-
* If "false", it will be sufficient if the element is visible on the view but not inside the current viewport.
|
|
16
|
-
* @returns {boolean} Returns true or false.
|
|
17
|
-
* @example
|
|
18
|
-
* await mobile.element.isVisible(elem);
|
|
19
|
-
*/
|
|
20
|
-
isVisible(element: Element, strict?: boolean): Promise<boolean>;
|
|
21
|
-
/**
|
|
22
|
-
* @function isPresent
|
|
23
|
-
* @memberof mobile.element
|
|
24
|
-
* @description Returns a boolean if the element is present at the DOM or not. It might be hidden.
|
|
25
|
-
* @param {Element} element - The element.
|
|
26
|
-
* @returns {boolean} Returns true or false.
|
|
27
|
-
* @example
|
|
28
|
-
* await mobile.element.isPresent(elem);
|
|
29
|
-
*/
|
|
30
|
-
isPresent(element: Element): Promise<boolean>;
|
|
31
|
-
/**
|
|
32
|
-
* @function waitToBePresent
|
|
33
|
-
* @memberof mobile.element
|
|
34
|
-
* @description Waits until the element with the given selector is present.
|
|
35
|
-
* @param {Object} selector - The CSS selector describing the element.
|
|
36
|
-
* @param {number} [timeout = 30000] - The timeout to wait (ms).
|
|
37
|
-
* @returns {boolean} Returns true or false.
|
|
38
|
-
* @example
|
|
39
|
-
* await mobile.element.waitToBePresent(".input01");
|
|
40
|
-
* await mobile.element.waitToBePresent("#button12");
|
|
41
|
-
* await mobile.element.waitToBePresent("p:first-child");
|
|
42
|
-
*/
|
|
43
|
-
waitToBePresent(selector: any, timeout?: number): Promise<boolean>;
|
|
44
|
-
/**
|
|
45
|
-
* @function waitToBeVisible
|
|
46
|
-
* @memberof mobile.element
|
|
47
|
-
* @description Waits until the element with the given selector is visible.
|
|
48
|
-
* @param {Object} selector - The CSS selector describing the element.
|
|
49
|
-
* @param {number} [timeout=30000] - The timeout to wait (ms).
|
|
50
|
-
* @returns {boolean} Returns true or false.
|
|
51
|
-
* @example
|
|
52
|
-
* await mobile.element.waitToBeVisible(".input01");
|
|
53
|
-
* await mobile.element.waitToBeVisible("#button12");
|
|
54
|
-
* await mobile.element.waitToBeVisible("p:first-child");
|
|
55
|
-
*/
|
|
56
|
-
waitToBeVisible(selector: any, timeout?: number): Promise<boolean>;
|
|
57
|
-
/**
|
|
58
|
-
* @function waitToBeClickable
|
|
59
|
-
* @memberof mobile.element
|
|
60
|
-
* @description Waits until the element with the given selector is clickable.
|
|
61
|
-
* @param {Object} selector - The CSS selector describing the element.
|
|
62
|
-
* @param {number} [timeout=30000] - The timeout to wait (ms).
|
|
63
|
-
* @returns {boolean} Returns true or false.
|
|
64
|
-
* @example
|
|
65
|
-
* await mobile.element.waitToBeClickable(".input01");
|
|
66
|
-
* await mobile.element.waitToBeClickable("#button12");
|
|
67
|
-
* await mobile.element.waitToBeClickable("p:first-child");
|
|
68
|
-
*/
|
|
69
|
-
waitToBeClickable(selector: any, timeout?: number): Promise<boolean>;
|
|
70
|
-
/**
|
|
71
|
-
* @function isSelected
|
|
72
|
-
* @memberof mobile.element
|
|
73
|
-
* @description Returns a boolean if the element (e.g. checkbox) is selected.
|
|
74
|
-
* @param {Element | string} elementOrSelector - The element.
|
|
75
|
-
* @returns {boolean} Returns true or false.
|
|
76
|
-
* @example
|
|
77
|
-
* const isSelected = await mobile.element.isSelected(elem);
|
|
78
|
-
*/
|
|
79
|
-
isSelected(elementOrSelector: Element | string): Promise<boolean>;
|
|
80
|
-
/**
|
|
81
|
-
* @function waitToBeEnabled
|
|
82
|
-
* @memberof mobile.element
|
|
83
|
-
* @description Waits until the element with the given selector is present.
|
|
84
|
-
* @param {Object} selector - The CSS selector describing the element.
|
|
85
|
-
* @param {number} [timeout=30000] - The timeout to wait (ms).
|
|
86
|
-
* @returns {boolean} Returns true or false.
|
|
87
|
-
* @example
|
|
88
|
-
* await mobile.element.waitToBeEnabled(".input01");
|
|
89
|
-
* await mobile.element.waitToBeEnabled("#button12");
|
|
90
|
-
* await mobile.element.waitToBeEnabled("p:first-child");
|
|
91
|
-
*/
|
|
92
|
-
waitToBeEnabled(selector: any, timeout?: number): Promise<boolean>;
|
|
93
|
-
}
|
|
94
|
-
declare const _default: ElementModule;
|
|
95
|
-
export default _default;
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ElementModule = void 0;
|
|
7
|
-
const verboseLogger_1 = require("../../helper/verboseLogger");
|
|
8
|
-
const errorHandler_1 = __importDefault(require("../../helper/errorHandler"));
|
|
9
|
-
const elementResolving_1 = require("../../helper/elementResolving");
|
|
10
|
-
const constants_1 = require("../constants");
|
|
11
|
-
/**
|
|
12
|
-
* @class element
|
|
13
|
-
* @memberof mobile
|
|
14
|
-
*/
|
|
15
|
-
class ElementModule {
|
|
16
|
-
vlf = new verboseLogger_1.VerboseLoggerFactory("mobile", "element");
|
|
17
|
-
ErrorHandler = new errorHandler_1.default();
|
|
18
|
-
/**
|
|
19
|
-
* @function isVisible
|
|
20
|
-
* @memberof mobile.element
|
|
21
|
-
* @description Returns a boolean if the mobile element is visible to the user.
|
|
22
|
-
* @param {Element} element - The Mobile Ui element.
|
|
23
|
-
* @param {boolean} [strict=true] - If strict mode is enabled it will only return "true" if the element is visible on the mobile view and within the viewport.
|
|
24
|
-
* If "false", it will be sufficient if the element is visible on the view but not inside the current viewport.
|
|
25
|
-
* @returns {boolean} Returns true or false.
|
|
26
|
-
* @example
|
|
27
|
-
* await mobile.element.isVisible(elem);
|
|
28
|
-
*/
|
|
29
|
-
async isVisible(element, strict = true) {
|
|
30
|
-
const vl = this.vlf.initLog(this.isVisible);
|
|
31
|
-
try {
|
|
32
|
-
if (strict) {
|
|
33
|
-
return element.isDisplayedInViewport();
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
return element.isDisplayed();
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
catch (error) {
|
|
40
|
-
return this.ErrorHandler.logException(error);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* @function isPresent
|
|
45
|
-
* @memberof mobile.element
|
|
46
|
-
* @description Returns a boolean if the element is present at the DOM or not. It might be hidden.
|
|
47
|
-
* @param {Element} element - The element.
|
|
48
|
-
* @returns {boolean} Returns true or false.
|
|
49
|
-
* @example
|
|
50
|
-
* await mobile.element.isPresent(elem);
|
|
51
|
-
*/
|
|
52
|
-
async isPresent(element) {
|
|
53
|
-
const vl = this.vlf.initLog(this.isPresent);
|
|
54
|
-
return element.isExisting();
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* @function waitToBePresent
|
|
58
|
-
* @memberof mobile.element
|
|
59
|
-
* @description Waits until the element with the given selector is present.
|
|
60
|
-
* @param {Object} selector - The CSS selector describing the element.
|
|
61
|
-
* @param {number} [timeout = 30000] - The timeout to wait (ms).
|
|
62
|
-
* @returns {boolean} Returns true or false.
|
|
63
|
-
* @example
|
|
64
|
-
* await mobile.element.waitToBePresent(".input01");
|
|
65
|
-
* await mobile.element.waitToBePresent("#button12");
|
|
66
|
-
* await mobile.element.waitToBePresent("p:first-child");
|
|
67
|
-
*/
|
|
68
|
-
async waitToBePresent(selector, timeout = parseFloat(process.env.QMATE_CUSTOM_TIMEOUT) || constants_1.GLOBAL_DEFAULT_WAIT_TIMEOUT) {
|
|
69
|
-
const vl = this.vlf.initLog(this.waitToBePresent);
|
|
70
|
-
try {
|
|
71
|
-
vl.log(`wdio.waitForExist invocation for selector ${selector}`);
|
|
72
|
-
await $(selector).waitForExist({
|
|
73
|
-
timeout: timeout,
|
|
74
|
-
interval: constants_1.GLOBAL_DEFAULT_WAIT_INTERVAL,
|
|
75
|
-
timeoutMsg: `Timeout '${+timeout / 1000}s' by waiting for element is present.`
|
|
76
|
-
});
|
|
77
|
-
return true;
|
|
78
|
-
}
|
|
79
|
-
catch (error) {
|
|
80
|
-
this.ErrorHandler.logException(error);
|
|
81
|
-
return false;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* @function waitToBeVisible
|
|
86
|
-
* @memberof mobile.element
|
|
87
|
-
* @description Waits until the element with the given selector is visible.
|
|
88
|
-
* @param {Object} selector - The CSS selector describing the element.
|
|
89
|
-
* @param {number} [timeout=30000] - The timeout to wait (ms).
|
|
90
|
-
* @returns {boolean} Returns true or false.
|
|
91
|
-
* @example
|
|
92
|
-
* await mobile.element.waitToBeVisible(".input01");
|
|
93
|
-
* await mobile.element.waitToBeVisible("#button12");
|
|
94
|
-
* await mobile.element.waitToBeVisible("p:first-child");
|
|
95
|
-
*/
|
|
96
|
-
async waitToBeVisible(selector, timeout = parseFloat(process.env.QMATE_CUSTOM_TIMEOUT) || constants_1.GLOBAL_DEFAULT_WAIT_TIMEOUT) {
|
|
97
|
-
const vl = this.vlf.initLog(this.waitToBeVisible);
|
|
98
|
-
try {
|
|
99
|
-
vl.log(`wdio.waitForDisplayed invocation for selector ${selector}`);
|
|
100
|
-
await $(selector).waitForDisplayed({
|
|
101
|
-
timeout: timeout,
|
|
102
|
-
interval: constants_1.GLOBAL_DEFAULT_WAIT_INTERVAL,
|
|
103
|
-
timeoutMsg: `Timeout '${+timeout / 1000}s' by waiting for element is displayed.`
|
|
104
|
-
});
|
|
105
|
-
return true;
|
|
106
|
-
}
|
|
107
|
-
catch (error) {
|
|
108
|
-
this.ErrorHandler.logException(error);
|
|
109
|
-
return false;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* @function waitToBeClickable
|
|
114
|
-
* @memberof mobile.element
|
|
115
|
-
* @description Waits until the element with the given selector is clickable.
|
|
116
|
-
* @param {Object} selector - The CSS selector describing the element.
|
|
117
|
-
* @param {number} [timeout=30000] - The timeout to wait (ms).
|
|
118
|
-
* @returns {boolean} Returns true or false.
|
|
119
|
-
* @example
|
|
120
|
-
* await mobile.element.waitToBeClickable(".input01");
|
|
121
|
-
* await mobile.element.waitToBeClickable("#button12");
|
|
122
|
-
* await mobile.element.waitToBeClickable("p:first-child");
|
|
123
|
-
*/
|
|
124
|
-
async waitToBeClickable(selector, timeout = parseFloat(process.env.QMATE_CUSTOM_TIMEOUT) || constants_1.GLOBAL_DEFAULT_WAIT_TIMEOUT) {
|
|
125
|
-
const vl = this.vlf.initLog(this.waitToBeClickable);
|
|
126
|
-
try {
|
|
127
|
-
vl.log(`wdio.waitForClickable invocation for selector ${selector}`);
|
|
128
|
-
await $(selector).waitForClickable({
|
|
129
|
-
timeout: timeout,
|
|
130
|
-
interval: constants_1.GLOBAL_DEFAULT_WAIT_INTERVAL,
|
|
131
|
-
timeoutMsg: `Timeout '${+timeout / 1000}s' by waiting for element is clickable.`
|
|
132
|
-
});
|
|
133
|
-
return true;
|
|
134
|
-
}
|
|
135
|
-
catch (error) {
|
|
136
|
-
this.ErrorHandler.logException(error);
|
|
137
|
-
return false;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* @function isSelected
|
|
142
|
-
* @memberof mobile.element
|
|
143
|
-
* @description Returns a boolean if the element (e.g. checkbox) is selected.
|
|
144
|
-
* @param {Element | string} elementOrSelector - The element.
|
|
145
|
-
* @returns {boolean} Returns true or false.
|
|
146
|
-
* @example
|
|
147
|
-
* const isSelected = await mobile.element.isSelected(elem);
|
|
148
|
-
*/
|
|
149
|
-
async isSelected(elementOrSelector) {
|
|
150
|
-
const vl = this.vlf.initLog(this.isSelected);
|
|
151
|
-
const element = await (0, elementResolving_1.resolveMobileSelectorOrElement)(elementOrSelector);
|
|
152
|
-
return await element.isSelected();
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* @function waitToBeEnabled
|
|
156
|
-
* @memberof mobile.element
|
|
157
|
-
* @description Waits until the element with the given selector is present.
|
|
158
|
-
* @param {Object} selector - The CSS selector describing the element.
|
|
159
|
-
* @param {number} [timeout=30000] - The timeout to wait (ms).
|
|
160
|
-
* @returns {boolean} Returns true or false.
|
|
161
|
-
* @example
|
|
162
|
-
* await mobile.element.waitToBeEnabled(".input01");
|
|
163
|
-
* await mobile.element.waitToBeEnabled("#button12");
|
|
164
|
-
* await mobile.element.waitToBeEnabled("p:first-child");
|
|
165
|
-
*/
|
|
166
|
-
async waitToBeEnabled(selector, timeout = parseFloat(process.env.QMATE_CUSTOM_TIMEOUT) || constants_1.GLOBAL_DEFAULT_WAIT_TIMEOUT) {
|
|
167
|
-
const vl = this.vlf.initLog(this.waitToBeEnabled);
|
|
168
|
-
try {
|
|
169
|
-
vl.log(`wdio.waitTotoBeEnabled invocation for selector ${selector}`);
|
|
170
|
-
await $(selector).toBeEnabled({
|
|
171
|
-
timeout: timeout,
|
|
172
|
-
interval: constants_1.GLOBAL_DEFAULT_WAIT_INTERVAL,
|
|
173
|
-
timeoutMsg: `Timeout '${+timeout / 1000}s' by waiting for element is enabled.`
|
|
174
|
-
});
|
|
175
|
-
return true;
|
|
176
|
-
}
|
|
177
|
-
catch (error) {
|
|
178
|
-
this.ErrorHandler.logException(error);
|
|
179
|
-
return false;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
exports.ElementModule = ElementModule;
|
|
184
|
-
exports.default = new ElementModule();
|
|
185
|
-
//# sourceMappingURL=element.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"element.js","sourceRoot":"","sources":["../../../../src/reuse/modules/mobile/element.ts"],"names":[],"mappings":";;;;;;AACA,8DAAkE;AAClE,6EAAqD;AACrD,oEAA+E;AAC/E,4CAAyF;AAEzF;;;GAGG;AACH,MAAa,aAAa;IAChB,GAAG,GAAG,IAAI,oCAAoB,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;IACpD,YAAY,GAAG,IAAI,sBAAY,EAAE,CAAC;IAE1C;;;;;;;;;;OAUG;IACH,KAAK,CAAC,SAAS,CAAC,OAAgB,EAAE,SAAkB,IAAI;QACtD,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC5C,IAAI,CAAC;YACH,IAAI,MAAM,EAAE,CAAC;gBACX,OAAO,OAAO,CAAC,qBAAqB,EAAE,CAAC;YACzC,CAAC;iBAAM,CAAC;gBACN,OAAO,OAAO,CAAC,WAAW,EAAE,CAAC;YAC/B,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;QAC/C,CAAC;IACH,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,SAAS,CAAC,OAAgB;QAC9B,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC5C,OAAO,OAAO,CAAC,UAAU,EAAE,CAAC;IAC9B,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,eAAe,CAAC,QAAa,EAAE,UAAkB,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAqB,CAAC,IAAI,uCAA2B;QACjI,MAAM,EAAE,GAAG,IAAI,CAAC,GA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C5B,OAAO,EAAE,OAAO;gBAChB,QAAQ,EAAE,wCAA4B;gBACtC,UAAU,EAAE,YAAY,CAAC,OAAO,GAAG,IAAI,uCAAuC;aAC/E,CAAC,CAAC;YACH,OAAO,IAAI,CAAC;QACd,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;YACtC,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;CACF;AAzKD,sCAyKC;AACD,kBAAe,IAAI,aAAa,EAAE,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @class gestures
|
|
3
|
-
* @memberof mobile
|
|
4
|
-
*/
|
|
5
|
-
export declare class Gestures {
|
|
6
|
-
private vlf;
|
|
7
|
-
private ErrorHandler;
|
|
8
|
-
/**
|
|
9
|
-
* @function swipe
|
|
10
|
-
* @memberof mobile.gestures
|
|
11
|
-
* @description Swipe from one point to another on the screen,
|
|
12
|
-
* Ensure that the provided coordinates are within the bounds of the screen to avoid unexpected behavior.
|
|
13
|
-
* @param {number} startX - The starting X coordinate of the swipe
|
|
14
|
-
* @param {number} startY - The starting Y coordinate of the swipe
|
|
15
|
-
* @param {number} endX - The ending X coordinate of the swipe
|
|
16
|
-
* @param {number} endY - The ending Y coordinate of the swipe
|
|
17
|
-
* @param {number} [duration=1000] - The duration of the swipe in milliseconds (optional, default is 1000ms)
|
|
18
|
-
* @returns {Promise<void>}
|
|
19
|
-
* @example
|
|
20
|
-
* // Swipes from left to right across the screen horizontally (useful for image carousels or galleries).
|
|
21
|
-
* await mobile.gestures.swipe(100, 800, 800, 800);
|
|
22
|
-
* // Swipes from bottom to top vertically to scroll down a list.
|
|
23
|
-
* await mobile.gestures.swipe(300, 1000, 300, 400);
|
|
24
|
-
* // Swipes from the top down to refresh content on a mobile app (common for pull-to-refresh).
|
|
25
|
-
* await mobile.gestures.swipe(400, 200, 400, 800);
|
|
26
|
-
*/
|
|
27
|
-
swipe(startX: number, startY: number, endX: number, endY: number, duration?: number): Promise<void>;
|
|
28
|
-
/**
|
|
29
|
-
* @function tap
|
|
30
|
-
* @memberof mobile.gestures
|
|
31
|
-
* @description Executes a tap at the given screen coordinates,
|
|
32
|
-
* Ensure that the provided coordinates are within the bounds of the screen to avoid unexpected behavior.
|
|
33
|
-
* @param {number} coordX - The horizontal screen coordinate for the tap.
|
|
34
|
-
* @param {number} coordY - The vertical screen coordinate for the tap.
|
|
35
|
-
* @returns {Promise<void>}
|
|
36
|
-
* @example
|
|
37
|
-
* await mobile.gestures.tap(100, 800);
|
|
38
|
-
*/
|
|
39
|
-
tap(coordX: number, coordY: number): Promise<void>;
|
|
40
|
-
}
|
|
41
|
-
declare const _default: Gestures;
|
|
42
|
-
export default _default;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Gestures = void 0;
|
|
7
|
-
const verboseLogger_1 = require("../../helper/verboseLogger");
|
|
8
|
-
const errorHandler_1 = __importDefault(require("../../helper/errorHandler"));
|
|
9
|
-
/**
|
|
10
|
-
* @class gestures
|
|
11
|
-
* @memberof mobile
|
|
12
|
-
*/
|
|
13
|
-
class Gestures {
|
|
14
|
-
vlf = new verboseLogger_1.VerboseLoggerFactory("mobile", "gestures");
|
|
15
|
-
ErrorHandler = new errorHandler_1.default();
|
|
16
|
-
/**
|
|
17
|
-
* @function swipe
|
|
18
|
-
* @memberof mobile.gestures
|
|
19
|
-
* @description Swipe from one point to another on the screen,
|
|
20
|
-
* Ensure that the provided coordinates are within the bounds of the screen to avoid unexpected behavior.
|
|
21
|
-
* @param {number} startX - The starting X coordinate of the swipe
|
|
22
|
-
* @param {number} startY - The starting Y coordinate of the swipe
|
|
23
|
-
* @param {number} endX - The ending X coordinate of the swipe
|
|
24
|
-
* @param {number} endY - The ending Y coordinate of the swipe
|
|
25
|
-
* @param {number} [duration=1000] - The duration of the swipe in milliseconds (optional, default is 1000ms)
|
|
26
|
-
* @returns {Promise<void>}
|
|
27
|
-
* @example
|
|
28
|
-
* // Swipes from left to right across the screen horizontally (useful for image carousels or galleries).
|
|
29
|
-
* await mobile.gestures.swipe(100, 800, 800, 800);
|
|
30
|
-
* // Swipes from bottom to top vertically to scroll down a list.
|
|
31
|
-
* await mobile.gestures.swipe(300, 1000, 300, 400);
|
|
32
|
-
* // Swipes from the top down to refresh content on a mobile app (common for pull-to-refresh).
|
|
33
|
-
* await mobile.gestures.swipe(400, 200, 400, 800);
|
|
34
|
-
*/
|
|
35
|
-
async swipe(startX, startY, endX, endY, duration = 1000) {
|
|
36
|
-
const vl = this.vlf.initLog(this.swipe);
|
|
37
|
-
try {
|
|
38
|
-
// Validate input coordinates
|
|
39
|
-
if (startX < 0 || startY < 0 || endX < 0 || endY < 0) {
|
|
40
|
-
throw new Error(`Invalid coordinates: (${startX}, ${startY}) to (${endX}, ${endY}) must be non-negative.`);
|
|
41
|
-
}
|
|
42
|
-
// Log the swipe action for debugging
|
|
43
|
-
vl.log(`Swiping from (${startX}, ${startY}) to (${endX}, ${endY}) over ${duration}ms`);
|
|
44
|
-
await browser.touchPerform([
|
|
45
|
-
{ action: "press", options: { x: startX, y: startY } },
|
|
46
|
-
{ action: "wait", options: { ms: duration } }, // Wait for the duration of the swipe
|
|
47
|
-
{ action: "moveTo", options: { x: endX, y: endY } },
|
|
48
|
-
{ action: "release" }
|
|
49
|
-
]);
|
|
50
|
-
vl.log("Swipe completed successfully...");
|
|
51
|
-
}
|
|
52
|
-
catch (error) {
|
|
53
|
-
this.ErrorHandler.logException(error);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* @function tap
|
|
58
|
-
* @memberof mobile.gestures
|
|
59
|
-
* @description Executes a tap at the given screen coordinates,
|
|
60
|
-
* Ensure that the provided coordinates are within the bounds of the screen to avoid unexpected behavior.
|
|
61
|
-
* @param {number} coordX - The horizontal screen coordinate for the tap.
|
|
62
|
-
* @param {number} coordY - The vertical screen coordinate for the tap.
|
|
63
|
-
* @returns {Promise<void>}
|
|
64
|
-
* @example
|
|
65
|
-
* await mobile.gestures.tap(100, 800);
|
|
66
|
-
*/
|
|
67
|
-
async tap(coordX, coordY) {
|
|
68
|
-
const vl = this.vlf.initLog(this.tap);
|
|
69
|
-
try {
|
|
70
|
-
// Input validation
|
|
71
|
-
if (coordX < 0 || coordY < 0) {
|
|
72
|
-
throw new Error(`Invalid coordinates: x (${coordX}) and y (${coordY}) must be non-negative.`);
|
|
73
|
-
}
|
|
74
|
-
// Log the tap action for debugging
|
|
75
|
-
vl.log(`Initiating tap at coordinates (${coordX}, ${coordY}).`);
|
|
76
|
-
await browser.touchPerform([{ action: "tap", options: { coordX, coordY } }]);
|
|
77
|
-
vl.log("Coordinate tap completed successfully...");
|
|
78
|
-
}
|
|
79
|
-
catch (error) {
|
|
80
|
-
this.ErrorHandler.logException(error);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
exports.Gestures = Gestures;
|
|
85
|
-
exports.default = new Gestures();
|
|
86
|
-
//# sourceMappingURL=gestures.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gestures.js","sourceRoot":"","sources":["../../../../src/reuse/modules/mobile/gestures.ts"],"names":[],"mappings":";;;;;;AAAA,8DAAkE;AAClE,6EAAqD;AAErD;;;GAGG;AACH,MAAa,QAAQ;IACX,GAAG,GAAG,IAAI,oCAAoB,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;IACrD,YAAY,GAAG,IAAI,sBAAY,EAAE,CAAC;IAE1C;;;;;;;;;;;;;;;;;;OAkBG;IACH,KAAK,CAAC,KAAK,CAAC,MAAc,EAAE,MAAc,EAAE,IAAY,EAAE,IAAY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AG,CAAC,CAAC;QACtC,IAAI,CAAC;YACH,mBAAmB;YACnB,IAAI,MAAM,GAAG,CAAC,IAAI,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC7B,MAAM,IAAI,KAAK,CAAC,2BAA2B,MAAM,YAAY,MAAM,yBAAyB,CAAC,CAAC;YAChG,CAAC;YACD,mCAAmC;YACnC,EAAE,CAAC,GAAG,CAAC,kCAAkC,MAAM,KAAK,MAAM,IAAI,CAAC,CAAC;YAEhE,MAAM,OAAO,CAAC,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC;YAE7E,EAAE,CAAC,GAAG,CAAC,0CAA0C,CAAC,CAAC;QACrD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;QACxC,CAAC;IACH,CAAC;CACF;AA3ED,4BA2EC;AACD,kBAAe,IAAI,QAAQ,EAAE,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Ios = void 0;
|
|
7
|
-
const verboseLogger_1 = require("../../helper/verboseLogger");
|
|
8
|
-
const errorHandler_1 = __importDefault(require("../../helper/errorHandler"));
|
|
9
|
-
/**
|
|
10
|
-
* @class ios
|
|
11
|
-
* @memberof mobile
|
|
12
|
-
*/
|
|
13
|
-
class Ios {
|
|
14
|
-
vlf = new verboseLogger_1.VerboseLoggerFactory("mobile", "ios");
|
|
15
|
-
ErrorHandler = new errorHandler_1.default();
|
|
16
|
-
}
|
|
17
|
-
exports.Ios = Ios;
|
|
18
|
-
exports.default = new Ios();
|
|
19
|
-
//# sourceMappingURL=ios.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ios.js","sourceRoot":"","sources":["../../../../src/reuse/modules/mobile/ios.ts"],"names":[],"mappings":";;;;;;AAAA,8DAAkE;AAClE,6EAAqD;AAErD;;;GAGG;AACH,MAAa,GAAG;IACN,GAAG,GAAG,IAAI,oCAAoB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IAChD,YAAY,GAAG,IAAI,sBAAY,EAAE,CAAC;CAC3C;AAHD,kBAGC;AACD,kBAAe,IAAI,GAAG,EAAE,CAAC"}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { Element } from "../../../../@types/wdio";
|
|
2
|
-
/**
|
|
3
|
-
* @class userInteraction
|
|
4
|
-
* @memberof mobile
|
|
5
|
-
*/
|
|
6
|
-
export declare class UserInteraction {
|
|
7
|
-
private vlf;
|
|
8
|
-
private ErrorHandler;
|
|
9
|
-
/**
|
|
10
|
-
* @function tap
|
|
11
|
-
* @memberof mobile.userInteraction
|
|
12
|
-
* @description Tap's on the mobile element.
|
|
13
|
-
* @param {Element | string} elementOrSelector - The element (e.g., accessibility ID, XPath) selectors describing the element.
|
|
14
|
-
* @param {Number} [timeout = 30000] - The timeout to wait(ms)
|
|
15
|
-
* @example
|
|
16
|
-
* await mobile.userInteraction.tap(elem);
|
|
17
|
-
* await mobile.userInteraction.tap(elem, 20000);
|
|
18
|
-
*/
|
|
19
|
-
tap(elementOrSelector: Element | string, timeout?: number): Promise<void>;
|
|
20
|
-
/**
|
|
21
|
-
* @function check
|
|
22
|
-
* @memberof mobile.userInteraction
|
|
23
|
-
* @description Checks the given checkbox.
|
|
24
|
-
* @param {Element | string} elementOrSelector - The element (e.g., accessibility ID, XPath) selectors describing the element.
|
|
25
|
-
* @param {number} [timeout = 30000] - The timeout to wait(ms)
|
|
26
|
-
* @example
|
|
27
|
-
* await mobile.userInteraction.check(element);
|
|
28
|
-
* await mobile.userInteraction.check(element, 20000);
|
|
29
|
-
*/
|
|
30
|
-
check(elementOrSelector: Element | string, timeout?: number): Promise<void>;
|
|
31
|
-
/**
|
|
32
|
-
* @function uncheck
|
|
33
|
-
* @memberOf mobile.userInteraction
|
|
34
|
-
* @description Unchecks the given checkbox.
|
|
35
|
-
* @param {Element | string} elementOrSelector - The element (e.g., accessibility ID, XPath) selectors describing the element.
|
|
36
|
-
* @param {number} [timeout = 30000] - The timeout to wait(ms)
|
|
37
|
-
* @example
|
|
38
|
-
* await mobile.userInteraction.uncheck(elementOrSelector);
|
|
39
|
-
* await mobile.userInteraction.uncheck(elementOrSelector, 20000);
|
|
40
|
-
*/
|
|
41
|
-
uncheck(elementOrSelector: Element | string, timeout?: number): Promise<void>;
|
|
42
|
-
/**
|
|
43
|
-
* @function doubleTap
|
|
44
|
-
* @memberof mobile.userInteraction
|
|
45
|
-
* @description Double Tap's on the mobile element.
|
|
46
|
-
* @param {Element | string} elementOrSelector - The element (e.g., accessibility ID, XPath) selectors describing the element.
|
|
47
|
-
* @param {number} [timeout = 30000] - The timeout to wait(ms)
|
|
48
|
-
* @returns {Promise<void>}
|
|
49
|
-
* @example
|
|
50
|
-
* await mobile.userInteraction.doubleTap(elem);
|
|
51
|
-
* await mobile.userInteraction.doubleTap(elem, 2000);
|
|
52
|
-
*/
|
|
53
|
-
doubleTap(elementOrSelector: Element | string, timeout?: number): Promise<void>;
|
|
54
|
-
/**
|
|
55
|
-
* @function fill
|
|
56
|
-
* @memberof mobile.userInteraction
|
|
57
|
-
* @description Enter a string value into a mobile input field.
|
|
58
|
-
* @param {Element | string} elementOrSelector - The element (e.g., accessibility ID, XPath) selectors describing the element.
|
|
59
|
-
* @param {string} value - The string value to be entered.
|
|
60
|
-
* @param {number} [timeout = 30000] - The timeout to wait (ms).
|
|
61
|
-
* @returns {Promise<void>}
|
|
62
|
-
* @example
|
|
63
|
-
* await mobile.userInteraction.fill(element);
|
|
64
|
-
* await mobile.userInteraction.fill(element, 2000);
|
|
65
|
-
*/
|
|
66
|
-
fill(elementOrSelector: Element | string, value: string, timeout?: number): Promise<void>;
|
|
67
|
-
/**
|
|
68
|
-
* @function clearAndFill
|
|
69
|
-
* @memberof mobile.userInteraction
|
|
70
|
-
* @description Enter a string into the mobile input field; it will clear the box before submission.
|
|
71
|
-
* @param {Element | string} elementOrSelector - The element (e.g., accessibility ID, XPath) selectors describing the element.
|
|
72
|
-
* @param {string} value - The string value to be entered.
|
|
73
|
-
* @param {number} [timeout = 30000] - The timeout to wait (ms).
|
|
74
|
-
* @returns {Promise<void>}
|
|
75
|
-
* @example
|
|
76
|
-
* await mobile.userInteraction.clearAndFill(element);
|
|
77
|
-
* await mobile.userInteraction.clearAndFill(element, 2000);
|
|
78
|
-
*/
|
|
79
|
-
clearAndFill(elementOrSelector: Element | string, value: string, timeout?: number): Promise<void>;
|
|
80
|
-
/**
|
|
81
|
-
* @function clear
|
|
82
|
-
* @memberof mobile.userInteraction
|
|
83
|
-
* @description Clear a string value into a mobile input field.
|
|
84
|
-
* @param {Element | string} elementOrSelector - The element (e.g., accessibility ID, XPath) selectors describing the element.
|
|
85
|
-
* @param {number} [timeout = 30000] - The timeout to wait (ms).
|
|
86
|
-
* @returns {Promise<void>}
|
|
87
|
-
* @example
|
|
88
|
-
* await mobile.userInteraction.clear(element);
|
|
89
|
-
* await mobile.userInteraction.clear(element, 2000);
|
|
90
|
-
*/
|
|
91
|
-
clear(elementOrSelector: Element | string, timeout?: number): Promise<void>;
|
|
92
|
-
}
|
|
93
|
-
declare const _default: UserInteraction;
|
|
94
|
-
export default _default;
|