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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getPwaScore = 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 getPwaScore = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const score = await args.driver.execute(() => {
|
|
@@ -18,7 +18,7 @@ const getPwaScore = async (args) => {
|
|
|
18
18
|
nlpName: "GetPwaScore",
|
|
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("GetPwaScore");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRect = void 0;
|
|
4
|
-
const
|
|
4
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
5
5
|
const logData_js_1 = require("../../../../utils/logger/logData.js");
|
|
6
6
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
7
7
|
const getRect = async (args) => {
|
|
@@ -21,7 +21,7 @@ const getRect = async (args) => {
|
|
|
21
21
|
};
|
|
22
22
|
logData_js_1.logger.info("Rect->", _rect);
|
|
23
23
|
const rect = { ..._location, ..._size };
|
|
24
|
-
(0,
|
|
24
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, rect);
|
|
25
25
|
(0, appendScriptData_js_1.appendScriptData)({
|
|
26
26
|
scriptDataAppender: args.scriptDataAppender,
|
|
27
27
|
nlpName: nlpName,
|
|
@@ -55,7 +55,7 @@ const getRect = async (args) => {
|
|
|
55
55
|
};
|
|
56
56
|
logData_js_1.logger.info("Rect->", _rect);
|
|
57
57
|
const rect = { ..._location, ..._size };
|
|
58
|
-
(0,
|
|
58
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, rect);
|
|
59
59
|
(0, appendScriptData_js_1.appendScriptData)({
|
|
60
60
|
scriptDataAppender: args.scriptDataAppender,
|
|
61
61
|
nlpName: "GetRect",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getScreenshot = 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 getScreenshot = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const screenshot = await args.driver.takeScreenshot();
|
|
@@ -11,7 +11,7 @@ const getScreenshot = async (args) => {
|
|
|
11
11
|
nlpName: "GetScreenshot",
|
|
12
12
|
returnTypeVariableName: args.returnTypeVariableName
|
|
13
13
|
});
|
|
14
|
-
(0,
|
|
14
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, screenshot);
|
|
15
15
|
}
|
|
16
16
|
catch (error) {
|
|
17
17
|
args.scriptDataAppender.setErrorNLP("GetScreenshot");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getScreenshotAs = 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 getScreenshotAs = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const screenshot = await args.driver.takeScreenshot();
|
|
@@ -12,7 +12,7 @@ const getScreenshotAs = async (args) => {
|
|
|
12
12
|
stepInputs: [args.value || ""],
|
|
13
13
|
returnTypeVariableName: args.returnTypeVariableName
|
|
14
14
|
});
|
|
15
|
-
(0,
|
|
15
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, screenshot);
|
|
16
16
|
}
|
|
17
17
|
catch (error) {
|
|
18
18
|
args.scriptDataAppender.setErrorNLP("GetScreenshotAs");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getSeoScore = 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 getSeoScore = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const score = await args.driver.execute(() => {
|
|
@@ -22,7 +22,7 @@ const getSeoScore = async (args) => {
|
|
|
22
22
|
nlpName: "GetSeoScore",
|
|
23
23
|
returnTypeVariableName: args.returnTypeVariableName
|
|
24
24
|
});
|
|
25
|
-
(0,
|
|
25
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, score);
|
|
26
26
|
}
|
|
27
27
|
catch (error) {
|
|
28
28
|
args.scriptDataAppender.setErrorNLP("GetSeoScore");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getSingleApiRequestPayload = 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 getSingleApiRequestPayload = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const payload = args.value || "";
|
|
@@ -12,7 +12,7 @@ const getSingleApiRequestPayload = async (args) => {
|
|
|
12
12
|
stepInputs: [payload],
|
|
13
13
|
returnTypeVariableName: args.returnTypeVariableName
|
|
14
14
|
});
|
|
15
|
-
(0,
|
|
15
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, payload);
|
|
16
16
|
}
|
|
17
17
|
catch (error) {
|
|
18
18
|
args.scriptDataAppender.setErrorNLP("GetSingleApiRequestPayload");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getSingleApiResponse = 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 getSingleApiResponse = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const url = args.value;
|
|
@@ -16,7 +16,7 @@ const getSingleApiResponse = async (args) => {
|
|
|
16
16
|
stepInputs: [url],
|
|
17
17
|
returnTypeVariableName: args.returnTypeVariableName
|
|
18
18
|
});
|
|
19
|
-
(0,
|
|
19
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, res);
|
|
20
20
|
}
|
|
21
21
|
catch (error) {
|
|
22
22
|
args.scriptDataAppender.setErrorNLP("GetSingleApiResponse");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getSingleApiResponseTime = 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 getSingleApiResponseTime = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const url = args.value;
|
|
@@ -16,7 +16,7 @@ const getSingleApiResponseTime = async (args) => {
|
|
|
16
16
|
stepInputs: [url],
|
|
17
17
|
returnTypeVariableName: args.returnTypeVariableName
|
|
18
18
|
});
|
|
19
|
-
(0,
|
|
19
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, resTime);
|
|
20
20
|
}
|
|
21
21
|
catch (error) {
|
|
22
22
|
args.scriptDataAppender.setErrorNLP("GetSingleApiResponseTime");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getSingleApiStatusCode = 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 getSingleApiStatusCode = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const url = args.value;
|
|
@@ -16,7 +16,7 @@ const getSingleApiStatusCode = async (args) => {
|
|
|
16
16
|
stepInputs: [url],
|
|
17
17
|
returnTypeVariableName: args.returnTypeVariableName
|
|
18
18
|
});
|
|
19
|
-
(0,
|
|
19
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, statusCode);
|
|
20
20
|
}
|
|
21
21
|
catch (error) {
|
|
22
22
|
args.scriptDataAppender.setErrorNLP("GetSingleApiStatusCode");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getSize = void 0;
|
|
4
|
-
const
|
|
4
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
5
5
|
const logData_js_1 = require("../../../../utils/logger/logData.js");
|
|
6
6
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
7
7
|
const getSize = async (args) => {
|
|
@@ -13,7 +13,7 @@ const getSize = async (args) => {
|
|
|
13
13
|
const element = await args.driver.$(args.selector);
|
|
14
14
|
const _size = await element.getSize();
|
|
15
15
|
logData_js_1.logger.info("Size", _size);
|
|
16
|
-
(0,
|
|
16
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, _size);
|
|
17
17
|
(0, appendScriptData_js_1.appendScriptData)({
|
|
18
18
|
scriptDataAppender: args.scriptDataAppender,
|
|
19
19
|
nlpName: nlpName,
|
|
@@ -38,7 +38,7 @@ const getSize = async (args) => {
|
|
|
38
38
|
try {
|
|
39
39
|
const element = await args.driver.$(args.selector);
|
|
40
40
|
const _size = await element.getSize();
|
|
41
|
-
(0,
|
|
41
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, _size);
|
|
42
42
|
(0, appendScriptData_js_1.appendScriptData)({
|
|
43
43
|
scriptDataAppender: args.scriptDataAppender,
|
|
44
44
|
nlpName: "GetSize",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getSizeOfBrowserWindow = 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 getSizeOfBrowserWindow = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const rect = await args.driver.getWindowSize();
|
|
9
|
-
(0,
|
|
9
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, rect);
|
|
10
10
|
(0, appendScriptData_js_1.appendScriptData)({
|
|
11
11
|
scriptDataAppender: args.scriptDataAppender,
|
|
12
12
|
nlpName: "GetSizeOfBrowserWindow",
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.getStringDataFromLocalFile = void 0;
|
|
7
7
|
const fs_1 = __importDefault(require("fs"));
|
|
8
8
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
9
|
-
const
|
|
9
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
10
10
|
const getStringDataFromLocalFile = async (args) => {
|
|
11
11
|
try {
|
|
12
12
|
const filePath = args.value;
|
|
@@ -17,7 +17,7 @@ const getStringDataFromLocalFile = async (args) => {
|
|
|
17
17
|
stepInputs: [filePath],
|
|
18
18
|
returnTypeVariableName: args.returnTypeVariableName
|
|
19
19
|
});
|
|
20
|
-
(0,
|
|
20
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, content);
|
|
21
21
|
}
|
|
22
22
|
catch (error) {
|
|
23
23
|
args.scriptDataAppender.setErrorNLP("GetStringDataFromLocalFile");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getSystemProperty = 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 getSystemProperty = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const propName = args.value;
|
|
@@ -13,7 +13,7 @@ const getSystemProperty = async (args) => {
|
|
|
13
13
|
stepInputs: [propName],
|
|
14
14
|
returnTypeVariableName: args.returnTypeVariableName
|
|
15
15
|
});
|
|
16
|
-
(0,
|
|
16
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, val);
|
|
17
17
|
}
|
|
18
18
|
catch (error) {
|
|
19
19
|
args.scriptDataAppender.setErrorNLP("GetSystemProperty");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getTagName = getTagName;
|
|
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
|
async function getTagName(args) {
|
|
7
7
|
const nlpName = args.platform === "ios" ? "IOS_GetTagName" : "MOB_GetTagName";
|
|
@@ -27,7 +27,7 @@ async function getTagName(args) {
|
|
|
27
27
|
platform: args.platform,
|
|
28
28
|
returnTypeVariableName: args.returnTypeVariableName
|
|
29
29
|
});
|
|
30
|
-
(0,
|
|
30
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, tagName);
|
|
31
31
|
}
|
|
32
32
|
catch (error) {
|
|
33
33
|
args.scriptDataAppender.setErrorNLP(nlpName);
|
|
@@ -55,7 +55,7 @@ async function getTagName(args) {
|
|
|
55
55
|
platform: args.platform,
|
|
56
56
|
returnTypeVariableName: args.returnTypeVariableName
|
|
57
57
|
});
|
|
58
|
-
(0,
|
|
58
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, tagName);
|
|
59
59
|
}
|
|
60
60
|
catch (error) {
|
|
61
61
|
args.scriptDataAppender.setErrorNLP("GetTagName");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getText = void 0;
|
|
4
|
-
const
|
|
4
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
5
5
|
const logData_js_1 = require("../../../../utils/logger/logData.js");
|
|
6
6
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
7
7
|
const getText = async (args) => {
|
|
@@ -14,7 +14,7 @@ const getText = async (args) => {
|
|
|
14
14
|
const attrName = args.platform === "ios" ? "value" : "text";
|
|
15
15
|
const _text = await element.getAttribute(attrName);
|
|
16
16
|
logData_js_1.logger.info("Text", _text);
|
|
17
|
-
(0,
|
|
17
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, _text);
|
|
18
18
|
(0, appendScriptData_js_1.appendScriptData)({
|
|
19
19
|
scriptDataAppender: args.scriptDataAppender,
|
|
20
20
|
nlpName: nlpName,
|
|
@@ -40,7 +40,7 @@ const getText = async (args) => {
|
|
|
40
40
|
const element = await args.driver.$(args.selector);
|
|
41
41
|
const _text = await element.getText();
|
|
42
42
|
logData_js_1.logger.info("Text", _text);
|
|
43
|
-
(0,
|
|
43
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, _text);
|
|
44
44
|
(0, appendScriptData_js_1.appendScriptData)({
|
|
45
45
|
scriptDataAppender: args.scriptDataAppender,
|
|
46
46
|
nlpName: "GetText",
|
package/dist/automation/actions/interaction/get/getTheFirstSelectedOptionFromListBoxAsText.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getTheFirstSelectedOptionFromListBoxAsText = 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 getTheFirstSelectedOptionFromListBoxAsText = async (args) => {
|
|
7
7
|
try {
|
|
@@ -15,7 +15,7 @@ const getTheFirstSelectedOptionFromListBoxAsText = async (args) => {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
const val = _firstSelectedText ?? "";
|
|
18
|
-
(0,
|
|
18
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, val);
|
|
19
19
|
(0, appendScriptData_js_1.appendScriptData)({
|
|
20
20
|
scriptDataAppender: args.scriptDataAppender,
|
|
21
21
|
nlpName: "GetTheFirstSelectedOptionFromListBoxAsText",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getTotalNumberOfCookies = 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 getTotalNumberOfCookies = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const cookies = await args.driver.getCookies();
|
|
@@ -12,7 +12,7 @@ const getTotalNumberOfCookies = async (args) => {
|
|
|
12
12
|
nlpName: "GetTotalNumberOfCookies",
|
|
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("GetTotalNumberOfCookies");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getTunnelIdentifier = 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 getTunnelIdentifier = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const tunnelId = args.value || args.driver.capabilities?.tunnelIdentifier || "";
|
|
@@ -12,7 +12,7 @@ const getTunnelIdentifier = async (args) => {
|
|
|
12
12
|
stepInputs: [tunnelId],
|
|
13
13
|
returnTypeVariableName: args.returnTypeVariableName
|
|
14
14
|
});
|
|
15
|
-
(0,
|
|
15
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, tunnelId);
|
|
16
16
|
}
|
|
17
17
|
catch (error) {
|
|
18
18
|
args.scriptDataAppender.setErrorNLP("GetTunnelIdentifier");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getURLPresentInAddressBar = 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 getURLPresentInAddressBar = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const url = await args.driver.getUrl();
|
|
@@ -11,7 +11,7 @@ const getURLPresentInAddressBar = async (args) => {
|
|
|
11
11
|
nlpName: "GetURLPresentInAddressBar",
|
|
12
12
|
returnTypeVariableName: args.returnTypeVariableName
|
|
13
13
|
});
|
|
14
|
-
(0,
|
|
14
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, url);
|
|
15
15
|
}
|
|
16
16
|
catch (error) {
|
|
17
17
|
args.scriptDataAppender.setErrorNLP("GetURLPresentInAddressBar");
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.getUserHomeDirectory = void 0;
|
|
7
7
|
const os_1 = __importDefault(require("os"));
|
|
8
8
|
const appendScriptData_js_1 = require("../../../../fireflinkData/fireflinkScript/appendScriptData.js");
|
|
9
|
-
const
|
|
9
|
+
const saveStepInputData_js_1 = require("../../../../utils/helpers/saveStepInputData.js");
|
|
10
10
|
const getUserHomeDirectory = async (args) => {
|
|
11
11
|
try {
|
|
12
12
|
const home = os_1.default.homedir();
|
|
@@ -15,7 +15,7 @@ const getUserHomeDirectory = async (args) => {
|
|
|
15
15
|
nlpName: "GetUserHomeDirectory",
|
|
16
16
|
returnTypeVariableName: args.returnTypeVariableName
|
|
17
17
|
});
|
|
18
|
-
(0,
|
|
18
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, home);
|
|
19
19
|
}
|
|
20
20
|
catch (error) {
|
|
21
21
|
args.scriptDataAppender.setErrorNLP("GetUserHomeDirectory");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getValueByCookieName = 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 getValueByCookieName = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const cookieName = args.value;
|
|
@@ -14,7 +14,7 @@ const getValueByCookieName = async (args) => {
|
|
|
14
14
|
stepInputs: [cookieName],
|
|
15
15
|
returnTypeVariableName: args.returnTypeVariableName
|
|
16
16
|
});
|
|
17
|
-
(0,
|
|
17
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, val);
|
|
18
18
|
}
|
|
19
19
|
catch (error) {
|
|
20
20
|
args.scriptDataAppender.setErrorNLP("GetValueByCookieName");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getValueFromLocalStorage = 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 getValueFromLocalStorage = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const key = args.value;
|
|
@@ -13,7 +13,7 @@ const getValueFromLocalStorage = async (args) => {
|
|
|
13
13
|
stepInputs: [key],
|
|
14
14
|
returnTypeVariableName: args.returnTypeVariableName
|
|
15
15
|
});
|
|
16
|
-
(0,
|
|
16
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, val);
|
|
17
17
|
}
|
|
18
18
|
catch (error) {
|
|
19
19
|
args.scriptDataAppender.setErrorNLP("GetValueFromLocalStorage");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getValueOfSystemVariable = 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 getValueOfSystemVariable = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const varName = args.value;
|
|
@@ -13,7 +13,7 @@ const getValueOfSystemVariable = async (args) => {
|
|
|
13
13
|
stepInputs: [varName],
|
|
14
14
|
returnTypeVariableName: args.returnTypeVariableName
|
|
15
15
|
});
|
|
16
|
-
(0,
|
|
16
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, val);
|
|
17
17
|
}
|
|
18
18
|
catch (error) {
|
|
19
19
|
args.scriptDataAppender.setErrorNLP("GetValueOfSystemVariable");
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getVideoCurrentPlaybackRate = 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 getVideoCurrentPlaybackRate = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const element = await args.driver.$(args.selector);
|
|
9
9
|
// Get current playback rate (1.0, 1.5, 2.0 etc.)
|
|
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: "GetVideoCurrentPlaybackRate",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getVideoCurrentSeekTime = 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 getVideoCurrentSeekTime = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const element = await args.driver.$(args.selector);
|
|
9
9
|
// currentTime gives the 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: "GetVideoCurrentSeekTime",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getVideoCurrentVolume = 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 getVideoCurrentVolume = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const element = await args.driver.$(args.selector);
|
|
9
9
|
// volume property 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: "GetVideoCurrentVolume",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getVideoDecodedByte = 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 getVideoDecodedByte = async (args) => {
|
|
7
7
|
try {
|
|
@@ -31,7 +31,7 @@ const getVideoDecodedByte = async (args) => {
|
|
|
31
31
|
platform: args.platform,
|
|
32
32
|
returnTypeVariableName: args.returnTypeVariableName
|
|
33
33
|
});
|
|
34
|
-
(0,
|
|
34
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, _decodedFrames);
|
|
35
35
|
}
|
|
36
36
|
catch (error) {
|
|
37
37
|
args.scriptDataAppender.setErrorNLP("GetVideoDecodedByte");
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getVideoDefaultPlaybackRate = 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 getVideoDefaultPlaybackRate = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const element = await args.driver.$(args.selector);
|
|
9
9
|
// defaultPlaybackRate gives the original playback speed of the video
|
|
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: "GetVideoDefaultPlaybackRate",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getVideoMediaLength = 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 getVideoMediaLength = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const element = await args.driver.$(args.selector);
|
|
9
9
|
// duration returns total media length in seconds
|
|
10
10
|
const _videoDuration = await element.getProperty("duration");
|
|
11
|
-
(0,
|
|
11
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, _videoDuration);
|
|
12
12
|
(0, appendScriptData_js_1.appendScriptData)({
|
|
13
13
|
scriptDataAppender: args.scriptDataAppender,
|
|
14
14
|
nlpName: "GetVideoMediaLength",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getVideoMediaSource = 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 getVideoMediaSource = async (args) => {
|
|
7
7
|
try {
|
|
@@ -17,7 +17,7 @@ const getVideoMediaSource = async (args) => {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
const src = videoSource || "";
|
|
20
|
-
(0,
|
|
20
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, src);
|
|
21
21
|
(0, appendScriptData_js_1.appendScriptData)({
|
|
22
22
|
scriptDataAppender: args.scriptDataAppender,
|
|
23
23
|
nlpName: "GetVideoMediaSource",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getWidthOfBrowser = 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 getWidthOfBrowser = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const rect = await args.driver.getWindowRect();
|
|
@@ -12,7 +12,7 @@ const getWidthOfBrowser = async (args) => {
|
|
|
12
12
|
nlpName: "GetWidthOfBrowser",
|
|
13
13
|
returnTypeVariableName: args.returnTypeVariableName
|
|
14
14
|
});
|
|
15
|
-
(0,
|
|
15
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, width);
|
|
16
16
|
}
|
|
17
17
|
catch (error) {
|
|
18
18
|
args.scriptDataAppender.setErrorNLP("GetWidthOfBrowser");
|