ff-automationv2 2.2.32 → 2.2.33
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/dist/ai/llmprompts/llmPromptTypes/systemPromptTypes.d.ts +3 -0
- package/dist/ai/llmprompts/promptRegistry.js +4 -0
- package/dist/ai/llmprompts/systemPrompts/actionExtractorPrompt.js +16 -12
- package/dist/ai/llmprompts/systemPrompts/arithmeticPrompt.d.ts +2 -0
- package/dist/ai/llmprompts/systemPrompts/arithmeticPrompt.js +48 -0
- package/dist/ai/llmprompts/systemPrompts/getActionExtractorPrompt.js +1 -1
- package/dist/ai/llmprompts/systemPrompts/getActionExtractorPromptMob.js +1 -1
- package/dist/ai/llmprompts/systemPrompts/inputContextPrompt.js +2 -0
- package/dist/ai/llmprompts/systemPrompts/mobileKeywordExtractor.js +2 -2
- package/dist/ai/llmprompts/userPrompts/userPrompt.js +1 -0
- package/dist/automation/actions/executor.d.ts +1 -0
- package/dist/automation/actions/executor.js +25 -0
- package/dist/automation/actions/interaction/alert/enterDataToAlert.js +2 -2
- package/dist/automation/actions/interaction/alert/getTextPresentOnAlertPopup.js +2 -2
- package/dist/automation/actions/interaction/arithmetic/arithmeticOperations.d.ts +2 -0
- package/dist/automation/actions/interaction/arithmetic/arithmeticOperations.js +61 -0
- package/dist/automation/actions/interaction/clear/clearAndEnter.js +3 -3
- package/dist/automation/actions/interaction/elementlessActions/getOtp.js +5 -5
- package/dist/automation/actions/interaction/enterActions/EnterInputIntoElementFromClipBoardInterface_mob.js +2 -2
- package/dist/automation/actions/interaction/enterActions/enterInput.js +3 -3
- package/dist/automation/actions/interaction/enterActions/enterInputAndPress.js +3 -3
- package/dist/automation/actions/interaction/enterActions/enterUrl.js +3 -3
- package/dist/automation/actions/interaction/enterActions/enterusingJs.js +2 -2
- package/dist/automation/actions/interaction/enterActions/waitAndEnter.js +3 -3
- package/dist/automation/actions/interaction/get/MOB_GetADBLogsForGivenAppPackage.js +2 -2
- package/dist/automation/actions/interaction/get/MOB_GetAllContexts.js +2 -2
- package/dist/automation/actions/interaction/get/MOB_GetAllWindowHandles.js +3 -3
- package/dist/automation/actions/interaction/get/MOB_GetAltitude.js +2 -2
- package/dist/automation/actions/interaction/get/MOB_GetBatteryPercentage.js +2 -2
- package/dist/automation/actions/interaction/get/MOB_GetBatteryStatus.js +2 -2
- package/dist/automation/actions/interaction/get/MOB_GetClipBoardText.js +2 -2
- package/dist/automation/actions/interaction/get/MOB_GetCurrentActivity.js +2 -2
- package/dist/automation/actions/interaction/get/MOB_GetCurrentAppPackage.js +2 -2
- package/dist/automation/actions/interaction/get/MOB_GetCurrentContext.js +2 -2
- package/dist/automation/actions/interaction/get/MOB_GetCurrentDeviceDate.js +2 -2
- package/dist/automation/actions/interaction/get/MOB_GetCurrentDeviceSettings.js +2 -2
- package/dist/automation/actions/interaction/get/MOB_GetCurrentDeviceStatus.js +2 -2
- package/dist/automation/actions/interaction/get/MOB_GetCurrentDeviceSystemBars.js +2 -2
- package/dist/automation/actions/interaction/get/MOB_GetCurrentDeviceTime.js +2 -2
- package/dist/automation/actions/interaction/get/MOB_GetCurrentOrientation.js +2 -2
- package/dist/automation/actions/interaction/get/MOB_GetCurrentSessionId.js +2 -2
- package/dist/automation/actions/interaction/get/MOB_GetDeviceLocation.js +2 -2
- package/dist/automation/actions/interaction/get/MOB_GetDeviceName.js +2 -2
- package/dist/automation/actions/interaction/get/MOB_GetDeviceOsVersion.js +2 -2
- package/dist/automation/actions/interaction/get/MOB_GetDeviceUdid.js +2 -2
- package/dist/automation/actions/interaction/get/MOB_GetHeightOfElement.js +2 -2
- package/dist/automation/actions/interaction/get/MOB_GetHeightOfScreen.js +2 -2
- package/dist/automation/actions/interaction/get/MOB_GetHourFromCurrentDeviceTime.js +2 -2
- package/dist/automation/actions/interaction/get/MOB_GetLatitude.js +2 -2
- package/dist/automation/actions/interaction/get/MOB_GetLongitude.js +2 -2
- package/dist/automation/actions/interaction/get/MOB_GetMinuteFromCurrentDeviceTime.js +2 -2
- package/dist/automation/actions/interaction/get/MOB_GetSecondFromCurrentDeviceTime.js +2 -2
- package/dist/automation/actions/interaction/get/MOB_GetSizeOfScreen.js +2 -2
- package/dist/automation/actions/interaction/get/MOB_GetSupportedPerformanceDataTypes.js +2 -2
- package/dist/automation/actions/interaction/get/MOB_GetTextFromElementAndSetToClipBoard.js +2 -2
- package/dist/automation/actions/interaction/get/MOB_GetWidthOfElement.js +2 -2
- package/dist/automation/actions/interaction/get/MOB_GetWidthOfScreen.js +2 -2
- package/dist/automation/actions/interaction/get/browserWindowGetPosition.js +2 -2
- package/dist/automation/actions/interaction/get/getAllBrokenImages.js +2 -2
- package/dist/automation/actions/interaction/get/getAllBrokenLinkCount.js +2 -2
- package/dist/automation/actions/interaction/get/getAllBrokenLinks.js +2 -2
- package/dist/automation/actions/interaction/get/getAllConsoleErrors.js +2 -2
- package/dist/automation/actions/interaction/get/getAllConsoleInformation.js +2 -2
- package/dist/automation/actions/interaction/get/getAllConsoleLogs.js +2 -2
- package/dist/automation/actions/interaction/get/getAllConsoleWarnings.js +2 -2
- package/dist/automation/actions/interaction/get/getAllCookieNames.js +2 -2
- package/dist/automation/actions/interaction/get/getAllCookieValues.js +2 -2
- package/dist/automation/actions/interaction/get/getAllSelectedOptions.js +2 -2
- package/dist/automation/actions/interaction/get/getAllTheOptionsFromListBoxAsText.js +2 -2
- package/dist/automation/actions/interaction/get/getAllTheOptionsFromListBoxAsTextInSortedOrder.js +2 -2
- package/dist/automation/actions/interaction/get/getAllTheSelectedOptionsFromListBoxAsText.js +2 -2
- package/dist/automation/actions/interaction/get/getAllWindowHandles.js +2 -2
- package/dist/automation/actions/interaction/get/getAttribute.js +3 -3
- package/dist/automation/actions/interaction/get/getAudioCurrentPlaybackRate.js +2 -2
- package/dist/automation/actions/interaction/get/getAudioCurrentSeekTime.js +2 -2
- package/dist/automation/actions/interaction/get/getAudioCurrentVolume.js +2 -2
- package/dist/automation/actions/interaction/get/getAudioDecodedByte.js +2 -2
- package/dist/automation/actions/interaction/get/getAudioDefaultPlaybackRate.js +2 -2
- package/dist/automation/actions/interaction/get/getAudioMediaLength.js +2 -2
- package/dist/automation/actions/interaction/get/getAudioMediaSource.js +2 -2
- package/dist/automation/actions/interaction/get/getBestPracticesScore.js +2 -2
- package/dist/automation/actions/interaction/get/getBrowserCount.js +2 -2
- package/dist/automation/actions/interaction/get/getBrowserVersion.js +2 -2
- package/dist/automation/actions/interaction/get/getCapabilityNames.js +2 -2
- package/dist/automation/actions/interaction/get/getClipBoardText.js +2 -2
- package/dist/automation/actions/interaction/get/getCollectiveApiResponseTime.js +2 -2
- package/dist/automation/actions/interaction/get/getCollectiveApiStatusCode.js +2 -2
- package/dist/automation/actions/interaction/get/getCssValue.js +2 -2
- package/dist/automation/actions/interaction/get/getCurrentDayOfTheWeek.js +2 -2
- package/dist/automation/actions/interaction/get/getCurrentSecondsFromCurrentSystemTime.js +2 -2
- package/dist/automation/actions/interaction/get/getCurrentSystemDate.js +2 -2
- package/dist/automation/actions/interaction/get/getCurrentSystemDay.js +2 -2
- package/dist/automation/actions/interaction/get/getCurrentSystemMonth.js +2 -2
- package/dist/automation/actions/interaction/get/getCurrentSystemTime.js +2 -2
- package/dist/automation/actions/interaction/get/getCurrentSystemYear.js +2 -2
- package/dist/automation/actions/interaction/get/getCurrentWindowHandle.js +2 -2
- package/dist/automation/actions/interaction/get/getDataFromApiRequestHeaderForJsonPath.js +2 -2
- package/dist/automation/actions/interaction/get/getDataFromApiResponseForJsonPath.js +2 -2
- package/dist/automation/actions/interaction/get/getDateWithGivenFormat.js +2 -2
- package/dist/automation/actions/interaction/get/getDriverInstance.js +2 -2
- package/dist/automation/actions/interaction/get/getFirstContentfulPaint.js +2 -2
- package/dist/automation/actions/interaction/get/getFirstSelectedOption.js +2 -2
- package/dist/automation/actions/interaction/get/getFullPaintTime.js +2 -2
- package/dist/automation/actions/interaction/get/getHTMLCodeOfPage.js +2 -2
- package/dist/automation/actions/interaction/get/getHeightOfBrowserWindow.js +2 -2
- package/dist/automation/actions/interaction/get/getHeightOfWebElement.js +2 -2
- package/dist/automation/actions/interaction/get/getHourFromCurrentSystemTime.js +2 -2
- package/dist/automation/actions/interaction/get/getImplicitTimeOut.js +2 -2
- package/dist/automation/actions/interaction/get/getLargestContentfulPaint.js +2 -2
- package/dist/automation/actions/interaction/get/getListBoxSize.js +2 -2
- package/dist/automation/actions/interaction/get/getListOfElementsFromLocatorTypeLocatorValue.js +3 -3
- package/dist/automation/actions/interaction/get/getLocation.js +3 -3
- package/dist/automation/actions/interaction/get/getMinuteFromCurrentSystemTime.js +2 -2
- package/dist/automation/actions/interaction/get/getNetworkRouteTime.js +2 -2
- package/dist/automation/actions/interaction/get/getNumberOfBrokenImages.js +2 -2
- package/dist/automation/actions/interaction/get/getNumberOfLinksPresentInCurrentPage.js +2 -2
- package/dist/automation/actions/interaction/get/getNumberOfWorkingLinksFromCurrentPage.js +2 -2
- package/dist/automation/actions/interaction/get/getOptions.js +2 -2
- package/dist/automation/actions/interaction/get/getPageTitle.js +2 -2
- package/dist/automation/actions/interaction/get/getPerformanceMetrics.js +2 -2
- package/dist/automation/actions/interaction/get/getPwaScore.js +2 -2
- package/dist/automation/actions/interaction/get/getRect.js +3 -3
- package/dist/automation/actions/interaction/get/getScreenshot.js +2 -2
- package/dist/automation/actions/interaction/get/getScreenshotAs.js +2 -2
- package/dist/automation/actions/interaction/get/getSeoScore.js +2 -2
- package/dist/automation/actions/interaction/get/getSingleApiRequestPayload.js +2 -2
- package/dist/automation/actions/interaction/get/getSingleApiResponse.js +2 -2
- package/dist/automation/actions/interaction/get/getSingleApiResponseTime.js +2 -2
- package/dist/automation/actions/interaction/get/getSingleApiStatusCode.js +2 -2
- package/dist/automation/actions/interaction/get/getSize.js +3 -3
- package/dist/automation/actions/interaction/get/getSizeOfBrowserWindow.js +2 -2
- package/dist/automation/actions/interaction/get/getStringDataFromLocalFile.js +2 -2
- package/dist/automation/actions/interaction/get/getSystemProperty.js +2 -2
- package/dist/automation/actions/interaction/get/getTagName.js +3 -3
- package/dist/automation/actions/interaction/get/getText.js +3 -3
- package/dist/automation/actions/interaction/get/getTheFirstSelectedOptionFromListBoxAsText.js +2 -2
- package/dist/automation/actions/interaction/get/getTotalNumberOfCookies.js +2 -2
- package/dist/automation/actions/interaction/get/getTunnelIdentifier.js +2 -2
- package/dist/automation/actions/interaction/get/getURLPresentInAddressBar.js +2 -2
- package/dist/automation/actions/interaction/get/getUserHomeDirectory.js +2 -2
- package/dist/automation/actions/interaction/get/getValueByCookieName.js +2 -2
- package/dist/automation/actions/interaction/get/getValueFromLocalStorage.js +2 -2
- package/dist/automation/actions/interaction/get/getValueOfSystemVariable.js +2 -2
- package/dist/automation/actions/interaction/get/getVideoCurrentPlaybackRate.js +2 -2
- package/dist/automation/actions/interaction/get/getVideoCurrentSeekTime.js +2 -2
- package/dist/automation/actions/interaction/get/getVideoCurrentVolume.js +2 -2
- package/dist/automation/actions/interaction/get/getVideoDecodedByte.js +2 -2
- package/dist/automation/actions/interaction/get/getVideoDefaultPlaybackRate.js +2 -2
- package/dist/automation/actions/interaction/get/getVideoMediaLength.js +2 -2
- package/dist/automation/actions/interaction/get/getVideoMediaSource.js +2 -2
- package/dist/automation/actions/interaction/get/getWidthOfBrowser.js +2 -2
- package/dist/automation/actions/interaction/get/getWidthOfWebElement.js +2 -2
- package/dist/automation/actions/interaction/get/getWorkingLinksFromCurrentPage.js +2 -2
- package/dist/automation/actions/interaction/get/getWrappedElement.js +2 -2
- package/dist/automation/actions/interaction/get/getWrappedOptionFromListBoxAsText.js +2 -2
- package/dist/automation/actions/interaction/get/getXLocationOfBrowserWindow.js +2 -2
- package/dist/automation/actions/interaction/get/getXLocationOfWebElement.js +3 -3
- package/dist/automation/actions/interaction/get/getYLocationOfBrowserWindow.js +2 -2
- package/dist/automation/actions/interaction/get/getYLocationOfWebElement.js +3 -3
- package/dist/automation/actions/interaction/shadowDom/shadowDomEnter.js +2 -2
- package/dist/automation/actions/interaction/shadowDom/shadowDomGetText.js +2 -2
- package/dist/automation/actions/interface/FireFlinkResponseSchema.d.ts +13 -0
- package/dist/automation/actions/interface/FireFlinkResponseSchema.js +10 -1
- package/dist/automation/actions/interface/arithmeticActionInterface.d.ts +18 -0
- package/dist/automation/actions/interface/arithmeticActionInterface.js +2 -0
- package/dist/core/constants/allAction.js +2 -1
- package/dist/core/constants/supportedActions.js +2 -1
- package/dist/core/interfaces/actionInterface.d.ts +2 -0
- package/dist/core/interfaces/promptInterface.d.ts +3 -0
- package/dist/core/main/actionHandlerFactory.js +3 -0
- package/dist/core/main/runAutomationScript.js +40 -5
- package/dist/core/types/promptType.d.ts +2 -1
- package/dist/core/types/promptType.js +1 -0
- package/package.json +1 -1
- /package/dist/utils/helpers/{getHelper.d.ts → saveStepInputData.d.ts} +0 -0
- /package/dist/utils/helpers/{getHelper.js → saveStepInputData.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MOB_GetWidthOfScreen = void 0;
|
|
4
|
-
const
|
|
4
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
5
5
|
const appendScriptData_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData");
|
|
6
6
|
const MOB_GetWidthOfScreen = async (args) => {
|
|
7
7
|
try {
|
|
@@ -13,7 +13,7 @@ const MOB_GetWidthOfScreen = async (args) => {
|
|
|
13
13
|
returnTypeVariableName: args.returnTypeVariableName
|
|
14
14
|
});
|
|
15
15
|
const __result = size.width;
|
|
16
|
-
(0,
|
|
16
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, __result);
|
|
17
17
|
}
|
|
18
18
|
catch (error) {
|
|
19
19
|
args.scriptDataAppender.setErrorNLP("MOB_GetWidthOfScreen");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.browserWindowGetPosition = void 0;
|
|
4
4
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
5
|
-
const
|
|
5
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
6
6
|
const browserWindowGetPosition = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const rect = await args.driver.getWindowRect();
|
|
@@ -12,7 +12,7 @@ const browserWindowGetPosition = async (args) => {
|
|
|
12
12
|
nlpName: "BrowserWindowGetPosition",
|
|
13
13
|
returnTypeVariableName: args.returnTypeVariableName
|
|
14
14
|
});
|
|
15
|
-
(0,
|
|
15
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, position);
|
|
16
16
|
}
|
|
17
17
|
catch (error) {
|
|
18
18
|
args.scriptDataAppender.setErrorNLP("BrowserWindowGetPosition");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAllBrokenImages = void 0;
|
|
4
4
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
5
|
-
const
|
|
5
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
6
6
|
const getAllBrokenImages = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const brokenImages = await args.driver.execute(() => {
|
|
@@ -16,7 +16,7 @@ const getAllBrokenImages = async (args) => {
|
|
|
16
16
|
nlpName: "GetAllBrokenImages",
|
|
17
17
|
returnTypeVariableName: args.returnTypeVariableName
|
|
18
18
|
});
|
|
19
|
-
(0,
|
|
19
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, brokenImages);
|
|
20
20
|
}
|
|
21
21
|
catch (error) {
|
|
22
22
|
args.scriptDataAppender.setErrorNLP("GetAllBrokenImages");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAllBrokenLinkCount = void 0;
|
|
4
4
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
5
|
-
const
|
|
5
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
6
6
|
const getAllBrokenLinkCount = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const brokenLinks = await args.driver.execute(() => {
|
|
@@ -16,7 +16,7 @@ const getAllBrokenLinkCount = async (args) => {
|
|
|
16
16
|
nlpName: "GetAllBrokenLinkCount",
|
|
17
17
|
returnTypeVariableName: args.returnTypeVariableName
|
|
18
18
|
});
|
|
19
|
-
(0,
|
|
19
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, brokenLinks);
|
|
20
20
|
}
|
|
21
21
|
catch (error) {
|
|
22
22
|
args.scriptDataAppender.setErrorNLP("GetAllBrokenLinkCount");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAllBrokenLinks = void 0;
|
|
4
4
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
5
|
-
const
|
|
5
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
6
6
|
const getAllBrokenLinks = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const brokenLinks = await args.driver.execute(() => {
|
|
@@ -16,7 +16,7 @@ const getAllBrokenLinks = async (args) => {
|
|
|
16
16
|
nlpName: "GetAllBrokenLinks",
|
|
17
17
|
returnTypeVariableName: args.returnTypeVariableName
|
|
18
18
|
});
|
|
19
|
-
(0,
|
|
19
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, brokenLinks);
|
|
20
20
|
}
|
|
21
21
|
catch (error) {
|
|
22
22
|
args.scriptDataAppender.setErrorNLP("GetAllBrokenLinks");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAllConsoleErrors = void 0;
|
|
4
4
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
5
|
-
const
|
|
5
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
6
6
|
const getAllConsoleErrors = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
let errors = [];
|
|
@@ -18,7 +18,7 @@ const getAllConsoleErrors = async (args) => {
|
|
|
18
18
|
nlpName: "GetAllConsoleErrors",
|
|
19
19
|
returnTypeVariableName: args.returnTypeVariableName
|
|
20
20
|
});
|
|
21
|
-
(0,
|
|
21
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, errors);
|
|
22
22
|
}
|
|
23
23
|
catch (error) {
|
|
24
24
|
args.scriptDataAppender.setErrorNLP("GetAllConsoleErrors");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAllConsoleInformation = void 0;
|
|
4
4
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
5
|
-
const
|
|
5
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
6
6
|
const getAllConsoleInformation = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
let info = [];
|
|
@@ -18,7 +18,7 @@ const getAllConsoleInformation = async (args) => {
|
|
|
18
18
|
nlpName: "GetAllConsoleInformation",
|
|
19
19
|
returnTypeVariableName: args.returnTypeVariableName
|
|
20
20
|
});
|
|
21
|
-
(0,
|
|
21
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, info);
|
|
22
22
|
}
|
|
23
23
|
catch (error) {
|
|
24
24
|
args.scriptDataAppender.setErrorNLP("GetAllConsoleInformation");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAllConsoleLogs = void 0;
|
|
4
4
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
5
|
-
const
|
|
5
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
6
6
|
const getAllConsoleLogs = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
let logs = [];
|
|
@@ -17,7 +17,7 @@ const getAllConsoleLogs = async (args) => {
|
|
|
17
17
|
nlpName: "GetAllConsoleLogs",
|
|
18
18
|
returnTypeVariableName: args.returnTypeVariableName
|
|
19
19
|
});
|
|
20
|
-
(0,
|
|
20
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, logs);
|
|
21
21
|
}
|
|
22
22
|
catch (error) {
|
|
23
23
|
args.scriptDataAppender.setErrorNLP("GetAllConsoleLogs");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAllConsoleWarnings = void 0;
|
|
4
4
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
5
|
-
const
|
|
5
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
6
6
|
const getAllConsoleWarnings = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
let warnings = [];
|
|
@@ -18,7 +18,7 @@ const getAllConsoleWarnings = async (args) => {
|
|
|
18
18
|
nlpName: "GetAllConsoleWarnings",
|
|
19
19
|
returnTypeVariableName: args.returnTypeVariableName
|
|
20
20
|
});
|
|
21
|
-
(0,
|
|
21
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, warnings);
|
|
22
22
|
}
|
|
23
23
|
catch (error) {
|
|
24
24
|
args.scriptDataAppender.setErrorNLP("GetAllConsoleWarnings");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAllCookieNames = void 0;
|
|
4
4
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
5
|
-
const
|
|
5
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
6
6
|
const getAllCookieNames = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const cookies = await args.driver.getCookies();
|
|
@@ -12,7 +12,7 @@ const getAllCookieNames = async (args) => {
|
|
|
12
12
|
nlpName: "GetAllCookieNames",
|
|
13
13
|
returnTypeVariableName: args.returnTypeVariableName
|
|
14
14
|
});
|
|
15
|
-
(0,
|
|
15
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, names);
|
|
16
16
|
}
|
|
17
17
|
catch (error) {
|
|
18
18
|
args.scriptDataAppender.setErrorNLP("GetAllCookieNames");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAllCookieValues = void 0;
|
|
4
4
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
5
|
-
const
|
|
5
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
6
6
|
const getAllCookieValues = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const cookies = await args.driver.getCookies();
|
|
@@ -12,7 +12,7 @@ const getAllCookieValues = async (args) => {
|
|
|
12
12
|
nlpName: "GetAllCookieValues",
|
|
13
13
|
returnTypeVariableName: args.returnTypeVariableName
|
|
14
14
|
});
|
|
15
|
-
(0,
|
|
15
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, values);
|
|
16
16
|
}
|
|
17
17
|
catch (error) {
|
|
18
18
|
args.scriptDataAppender.setErrorNLP("GetAllCookieValues");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAllSelectedOptions = void 0;
|
|
4
|
-
const
|
|
4
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
5
5
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
6
6
|
const getAllSelectedOptions = async (args) => {
|
|
7
7
|
try {
|
|
@@ -17,7 +17,7 @@ const getAllSelectedOptions = async (args) => {
|
|
|
17
17
|
for (const opt of _selectedOptions) {
|
|
18
18
|
selectedTexts.push(await opt.getText());
|
|
19
19
|
}
|
|
20
|
-
(0,
|
|
20
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, selectedTexts);
|
|
21
21
|
(0, appendScriptData_js_1.appendScriptData)({
|
|
22
22
|
scriptDataAppender: args.scriptDataAppender,
|
|
23
23
|
nlpName: "GetAllSelectedOptions",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAllTheOptionsFromListBoxAsText = void 0;
|
|
4
|
-
const
|
|
4
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
5
5
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
6
6
|
const getAllTheOptionsFromListBoxAsText = async (args) => {
|
|
7
7
|
try {
|
|
@@ -25,7 +25,7 @@ const getAllTheOptionsFromListBoxAsText = async (args) => {
|
|
|
25
25
|
platform: args.platform,
|
|
26
26
|
returnTypeVariableName: args.returnTypeVariableName
|
|
27
27
|
});
|
|
28
|
-
(0,
|
|
28
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, _texts);
|
|
29
29
|
}
|
|
30
30
|
catch (error) {
|
|
31
31
|
args.scriptDataAppender.setErrorNLP("GetAllTheOptionsFromListBoxAsText");
|
package/dist/automation/actions/interaction/get/getAllTheOptionsFromListBoxAsTextInSortedOrder.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAllTheOptionsFromListBoxAsTextInSortedOrder = void 0;
|
|
4
|
-
const
|
|
4
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
5
5
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
6
6
|
const getAllTheOptionsFromListBoxAsTextInSortedOrder = async (args) => {
|
|
7
7
|
try {
|
|
@@ -31,7 +31,7 @@ const getAllTheOptionsFromListBoxAsTextInSortedOrder = async (args) => {
|
|
|
31
31
|
platform: args.platform,
|
|
32
32
|
returnTypeVariableName: args.returnTypeVariableName
|
|
33
33
|
});
|
|
34
|
-
(0,
|
|
34
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, _texts);
|
|
35
35
|
}
|
|
36
36
|
catch (error) {
|
|
37
37
|
args.scriptDataAppender.setErrorNLP("GetAllTheOptionsFromListBoxAsTextInSortedOrder");
|
package/dist/automation/actions/interaction/get/getAllTheSelectedOptionsFromListBoxAsText.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAllTheSelectedOptionsFromListBoxAsText = void 0;
|
|
4
|
-
const
|
|
4
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
5
5
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
6
6
|
const getAllTheSelectedOptionsFromListBoxAsText = async (args) => {
|
|
7
7
|
try {
|
|
@@ -27,7 +27,7 @@ const getAllTheSelectedOptionsFromListBoxAsText = async (args) => {
|
|
|
27
27
|
platform: args.platform,
|
|
28
28
|
returnTypeVariableName: args.returnTypeVariableName
|
|
29
29
|
});
|
|
30
|
-
(0,
|
|
30
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, _selectedTexts);
|
|
31
31
|
}
|
|
32
32
|
catch (error) {
|
|
33
33
|
args.scriptDataAppender.setErrorNLP("GetAllTheSelectedOptionsFromListBoxAsText");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAllWindowHandles = void 0;
|
|
4
4
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
5
|
-
const
|
|
5
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
6
6
|
const getAllWindowHandles = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const handles = await args.driver.getWindowHandles();
|
|
@@ -11,7 +11,7 @@ const getAllWindowHandles = async (args) => {
|
|
|
11
11
|
nlpName: "GetAllWindowHandles",
|
|
12
12
|
returnTypeVariableName: args.returnTypeVariableName
|
|
13
13
|
});
|
|
14
|
-
(0,
|
|
14
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, handles);
|
|
15
15
|
}
|
|
16
16
|
catch (error) {
|
|
17
17
|
args.scriptDataAppender.setErrorNLP("GetAllWindowHandles");
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getAttribute = getAttribute;
|
|
4
4
|
const logData_js_1 = require("../../../../utils/logger/logData.js");
|
|
5
5
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
6
|
-
const
|
|
6
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
7
7
|
async function getAttribute(args) {
|
|
8
8
|
const nlpName = args.platform === "ios" ? "IOS_GetAttribute" : "MOB_GetAttribute";
|
|
9
9
|
switch (args.platform) {
|
|
@@ -30,7 +30,7 @@ async function getAttribute(args) {
|
|
|
30
30
|
platform: args.platform,
|
|
31
31
|
returnTypeVariableName: args.returnTypeVariableName
|
|
32
32
|
});
|
|
33
|
-
(0,
|
|
33
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, attrVal);
|
|
34
34
|
}
|
|
35
35
|
catch (error) {
|
|
36
36
|
args.scriptDataAppender.setErrorNLP(nlpName);
|
|
@@ -60,7 +60,7 @@ async function getAttribute(args) {
|
|
|
60
60
|
platform: args.platform,
|
|
61
61
|
returnTypeVariableName: args.returnTypeVariableName
|
|
62
62
|
});
|
|
63
|
-
(0,
|
|
63
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, attrVal);
|
|
64
64
|
}
|
|
65
65
|
catch (error) {
|
|
66
66
|
args.scriptDataAppender.setErrorNLP("GetAttribute");
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAudioCurrentPlaybackRate = void 0;
|
|
4
|
-
const
|
|
4
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
5
5
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
6
6
|
const getAudioCurrentPlaybackRate = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const element = await args.driver.$(args.selector);
|
|
9
9
|
// playbackRate returns current speed (default is 1)
|
|
10
10
|
const _currentPlaybackRate = await element.getProperty("playbackRate");
|
|
11
|
-
(0,
|
|
11
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, _currentPlaybackRate);
|
|
12
12
|
(0, appendScriptData_js_1.appendScriptData)({
|
|
13
13
|
scriptDataAppender: args.scriptDataAppender,
|
|
14
14
|
nlpName: "GetAudioCurrentPlaybackRate",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAudioCurrentSeekTime = void 0;
|
|
4
|
-
const
|
|
4
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
5
5
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
6
6
|
const getAudioCurrentSeekTime = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const element = await args.driver.$(args.selector);
|
|
9
9
|
// currentTime returns current playback position in seconds
|
|
10
10
|
const _currentSeekTime = await element.getProperty("currentTime");
|
|
11
|
-
(0,
|
|
11
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, _currentSeekTime);
|
|
12
12
|
(0, appendScriptData_js_1.appendScriptData)({
|
|
13
13
|
scriptDataAppender: args.scriptDataAppender,
|
|
14
14
|
nlpName: "GetAudioCurrentSeekTime",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAudioCurrentVolume = void 0;
|
|
4
|
-
const
|
|
4
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
5
5
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
6
6
|
const getAudioCurrentVolume = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const element = await args.driver.$(args.selector);
|
|
9
9
|
// volume returns value between 0.0 and 1.0
|
|
10
10
|
const _currentVolume = await element.getProperty("volume");
|
|
11
|
-
(0,
|
|
11
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, _currentVolume);
|
|
12
12
|
(0, appendScriptData_js_1.appendScriptData)({
|
|
13
13
|
scriptDataAppender: args.scriptDataAppender,
|
|
14
14
|
nlpName: "GetAudioCurrentVolume",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAudioDecodedByte = void 0;
|
|
4
|
-
const
|
|
4
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
5
5
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
6
6
|
const getAudioDecodedByte = async (args) => {
|
|
7
7
|
try {
|
|
@@ -26,7 +26,7 @@ const getAudioDecodedByte = async (args) => {
|
|
|
26
26
|
platform: args.platform,
|
|
27
27
|
returnTypeVariableName: args.returnTypeVariableName
|
|
28
28
|
});
|
|
29
|
-
(0,
|
|
29
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, _decodedValue);
|
|
30
30
|
}
|
|
31
31
|
catch (error) {
|
|
32
32
|
args.scriptDataAppender.setErrorNLP("GetAudioDecodedByte");
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAudioDefaultPlaybackRate = void 0;
|
|
4
|
-
const
|
|
4
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
5
5
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
6
6
|
const getAudioDefaultPlaybackRate = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const element = await args.driver.$(args.selector);
|
|
9
9
|
// defaultPlaybackRate returns original playback speed (default = 1)
|
|
10
10
|
const _defaultPlaybackRate = await element.getProperty("defaultPlaybackRate");
|
|
11
|
-
(0,
|
|
11
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, _defaultPlaybackRate);
|
|
12
12
|
(0, appendScriptData_js_1.appendScriptData)({
|
|
13
13
|
scriptDataAppender: args.scriptDataAppender,
|
|
14
14
|
nlpName: "GetAudioDefaultPlaybackRate",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAudioMediaLength = void 0;
|
|
4
|
-
const
|
|
4
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
5
5
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
6
6
|
const getAudioMediaLength = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const element = await args.driver.$(args.selector);
|
|
9
9
|
// duration returns total audio length in seconds
|
|
10
10
|
const _audioDuration = await element.getProperty("duration");
|
|
11
|
-
(0,
|
|
11
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, _audioDuration);
|
|
12
12
|
(0, appendScriptData_js_1.appendScriptData)({
|
|
13
13
|
scriptDataAppender: args.scriptDataAppender,
|
|
14
14
|
nlpName: "GetAudioMediaLength",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAudioMediaSource = void 0;
|
|
4
|
-
const
|
|
4
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
5
5
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
6
6
|
const getAudioMediaSource = async (args) => {
|
|
7
7
|
try {
|
|
@@ -15,7 +15,7 @@ const getAudioMediaSource = async (args) => {
|
|
|
15
15
|
_audioSource = await sourceElement.getAttribute("src");
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
(0,
|
|
18
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, _audioSource);
|
|
19
19
|
(0, appendScriptData_js_1.appendScriptData)({
|
|
20
20
|
scriptDataAppender: args.scriptDataAppender,
|
|
21
21
|
nlpName: "GetAudioMediaSource",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getBestPracticesScore = void 0;
|
|
4
4
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
5
|
-
const
|
|
5
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
6
6
|
const getBestPracticesScore = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const score = await args.driver.execute(() => {
|
|
@@ -18,7 +18,7 @@ const getBestPracticesScore = async (args) => {
|
|
|
18
18
|
nlpName: "GetBestPracticesScore",
|
|
19
19
|
returnTypeVariableName: args.returnTypeVariableName
|
|
20
20
|
});
|
|
21
|
-
(0,
|
|
21
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, score);
|
|
22
22
|
}
|
|
23
23
|
catch (error) {
|
|
24
24
|
args.scriptDataAppender.setErrorNLP("GetBestPracticesScore");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getBrowserCount = void 0;
|
|
4
4
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
5
|
-
const
|
|
5
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
6
6
|
const getBrowserCount = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const handles = await args.driver.getWindowHandles();
|
|
@@ -12,7 +12,7 @@ const getBrowserCount = async (args) => {
|
|
|
12
12
|
nlpName: "GetBrowserCount",
|
|
13
13
|
returnTypeVariableName: args.returnTypeVariableName
|
|
14
14
|
});
|
|
15
|
-
(0,
|
|
15
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, count);
|
|
16
16
|
}
|
|
17
17
|
catch (error) {
|
|
18
18
|
args.scriptDataAppender.setErrorNLP("GetBrowserCount");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getBrowserVersion = void 0;
|
|
4
4
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
5
|
-
const
|
|
5
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
6
6
|
const getBrowserVersion = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const caps = await args.driver.capabilities;
|
|
@@ -12,7 +12,7 @@ const getBrowserVersion = async (args) => {
|
|
|
12
12
|
nlpName: "GetBrowserVersion",
|
|
13
13
|
returnTypeVariableName: args.returnTypeVariableName
|
|
14
14
|
});
|
|
15
|
-
(0,
|
|
15
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, version);
|
|
16
16
|
}
|
|
17
17
|
catch (error) {
|
|
18
18
|
args.scriptDataAppender.setErrorNLP("GetBrowserVersion");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getCapabilityNames = void 0;
|
|
4
4
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
5
|
-
const
|
|
5
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
6
6
|
const getCapabilityNames = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const caps = await args.driver.capabilities;
|
|
@@ -12,7 +12,7 @@ const getCapabilityNames = async (args) => {
|
|
|
12
12
|
nlpName: "GetCapabilityNames",
|
|
13
13
|
returnTypeVariableName: args.returnTypeVariableName
|
|
14
14
|
});
|
|
15
|
-
(0,
|
|
15
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, names);
|
|
16
16
|
}
|
|
17
17
|
catch (error) {
|
|
18
18
|
args.scriptDataAppender.setErrorNLP("GetCapabilityNames");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getClipBoardText = void 0;
|
|
4
4
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
5
|
-
const
|
|
5
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
6
6
|
const getClipBoardText = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
let clipText = "";
|
|
@@ -20,7 +20,7 @@ const getClipBoardText = async (args) => {
|
|
|
20
20
|
nlpName: "GetClipBoardText",
|
|
21
21
|
returnTypeVariableName: args.returnTypeVariableName
|
|
22
22
|
});
|
|
23
|
-
(0,
|
|
23
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, clipText);
|
|
24
24
|
}
|
|
25
25
|
catch (error) {
|
|
26
26
|
args.scriptDataAppender.setErrorNLP("GetClipBoardText");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getCollectiveApiResponseTime = void 0;
|
|
4
|
-
const
|
|
4
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
5
5
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
6
6
|
const getCollectiveApiResponseTime = async (args) => {
|
|
7
7
|
try {
|
|
@@ -20,7 +20,7 @@ const getCollectiveApiResponseTime = async (args) => {
|
|
|
20
20
|
stepInputs: [responseTimes],
|
|
21
21
|
returnTypeVariableName: args.returnTypeVariableName
|
|
22
22
|
});
|
|
23
|
-
(0,
|
|
23
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, responseTimes);
|
|
24
24
|
}
|
|
25
25
|
catch (error) {
|
|
26
26
|
args.scriptDataAppender.setErrorNLP("GetCollectiveApiResponseTime");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getCollectiveApiStatusCode = void 0;
|
|
4
|
-
const
|
|
4
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
5
5
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
6
6
|
const getCollectiveApiStatusCode = async (args) => {
|
|
7
7
|
try {
|
|
@@ -20,7 +20,7 @@ const getCollectiveApiStatusCode = async (args) => {
|
|
|
20
20
|
stepInputs: [statusCodes],
|
|
21
21
|
returnTypeVariableName: args.returnTypeVariableName
|
|
22
22
|
});
|
|
23
|
-
(0,
|
|
23
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, statusCodes);
|
|
24
24
|
}
|
|
25
25
|
catch (error) {
|
|
26
26
|
args.scriptDataAppender.setErrorNLP("GetCollectiveApiStatusCode");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getCssValue = void 0;
|
|
4
|
-
const
|
|
4
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
5
5
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
6
6
|
const getCssValue = async (args) => {
|
|
7
7
|
try {
|
|
@@ -10,7 +10,7 @@ const getCssValue = async (args) => {
|
|
|
10
10
|
const cssPropertyName = args.value;
|
|
11
11
|
const _cssValue = await element.getCSSProperty(cssPropertyName);
|
|
12
12
|
const cssVal = _cssValue?.value ?? _cssValue;
|
|
13
|
-
(0,
|
|
13
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, cssVal);
|
|
14
14
|
(0, appendScriptData_js_1.appendScriptData)({
|
|
15
15
|
scriptDataAppender: args.scriptDataAppender,
|
|
16
16
|
nlpName: "GetCssValue",
|