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.getCurrentDayOfTheWeek = 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 getCurrentDayOfTheWeek = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const day = new Date().toLocaleDateString("en-US", { weekday: "long" });
|
|
@@ -11,7 +11,7 @@ const getCurrentDayOfTheWeek = async (args) => {
|
|
|
11
11
|
nlpName: "GetCurrentDayOfTheWeek",
|
|
12
12
|
returnTypeVariableName: args.returnTypeVariableName
|
|
13
13
|
});
|
|
14
|
-
(0,
|
|
14
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, day);
|
|
15
15
|
}
|
|
16
16
|
catch (error) {
|
|
17
17
|
args.scriptDataAppender.setErrorNLP("GetCurrentDayOfTheWeek");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getCurrentSecondsFromCurrentSystemTime = 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 getCurrentSecondsFromCurrentSystemTime = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const sec = String(new Date().getSeconds());
|
|
@@ -11,7 +11,7 @@ const getCurrentSecondsFromCurrentSystemTime = async (args) => {
|
|
|
11
11
|
nlpName: "GetCurrentSecondsFromCurrentSystemTime",
|
|
12
12
|
returnTypeVariableName: args.returnTypeVariableName
|
|
13
13
|
});
|
|
14
|
-
(0,
|
|
14
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, sec);
|
|
15
15
|
}
|
|
16
16
|
catch (error) {
|
|
17
17
|
args.scriptDataAppender.setErrorNLP("GetCurrentSecondsFromCurrentSystemTime");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getCurrentSystemDate = 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 getCurrentSystemDate = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const date = new Date().toISOString().slice(0, 10);
|
|
@@ -11,7 +11,7 @@ const getCurrentSystemDate = async (args) => {
|
|
|
11
11
|
nlpName: "GetCurrentSystemDate",
|
|
12
12
|
returnTypeVariableName: args.returnTypeVariableName
|
|
13
13
|
});
|
|
14
|
-
(0,
|
|
14
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, date);
|
|
15
15
|
}
|
|
16
16
|
catch (error) {
|
|
17
17
|
args.scriptDataAppender.setErrorNLP("GetCurrentSystemDate");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getCurrentSystemDay = 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 getCurrentSystemDay = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const day = String(new Date().getDate());
|
|
@@ -11,7 +11,7 @@ const getCurrentSystemDay = async (args) => {
|
|
|
11
11
|
nlpName: "GetCurrentSystemDay",
|
|
12
12
|
returnTypeVariableName: args.returnTypeVariableName
|
|
13
13
|
});
|
|
14
|
-
(0,
|
|
14
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, day);
|
|
15
15
|
}
|
|
16
16
|
catch (error) {
|
|
17
17
|
args.scriptDataAppender.setErrorNLP("GetCurrentSystemDay");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getCurrentSystemMonth = 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 getCurrentSystemMonth = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const month = String(new Date().getMonth() + 1);
|
|
@@ -11,7 +11,7 @@ const getCurrentSystemMonth = async (args) => {
|
|
|
11
11
|
nlpName: "GetCurrentSystemMonth",
|
|
12
12
|
returnTypeVariableName: args.returnTypeVariableName
|
|
13
13
|
});
|
|
14
|
-
(0,
|
|
14
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, month);
|
|
15
15
|
}
|
|
16
16
|
catch (error) {
|
|
17
17
|
args.scriptDataAppender.setErrorNLP("GetCurrentSystemMonth");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getCurrentSystemTime = 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 getCurrentSystemTime = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const time = new Date().toTimeString().split(" ")[0];
|
|
@@ -11,7 +11,7 @@ const getCurrentSystemTime = async (args) => {
|
|
|
11
11
|
nlpName: "GetCurrentSystemTime",
|
|
12
12
|
returnTypeVariableName: args.returnTypeVariableName
|
|
13
13
|
});
|
|
14
|
-
(0,
|
|
14
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, time);
|
|
15
15
|
}
|
|
16
16
|
catch (error) {
|
|
17
17
|
args.scriptDataAppender.setErrorNLP("GetCurrentSystemTime");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getCurrentSystemYear = 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 getCurrentSystemYear = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const year = String(new Date().getFullYear());
|
|
@@ -11,7 +11,7 @@ const getCurrentSystemYear = async (args) => {
|
|
|
11
11
|
nlpName: "GetCurrentSystemYear",
|
|
12
12
|
returnTypeVariableName: args.returnTypeVariableName
|
|
13
13
|
});
|
|
14
|
-
(0,
|
|
14
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, year);
|
|
15
15
|
}
|
|
16
16
|
catch (error) {
|
|
17
17
|
args.scriptDataAppender.setErrorNLP("GetCurrentSystemYear");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getCurrentWindowHandle = 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 getCurrentWindowHandle = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const handle = await args.driver.getWindowHandle();
|
|
@@ -11,7 +11,7 @@ const getCurrentWindowHandle = async (args) => {
|
|
|
11
11
|
nlpName: "GetCurrentWindowHandle",
|
|
12
12
|
returnTypeVariableName: args.returnTypeVariableName
|
|
13
13
|
});
|
|
14
|
-
(0,
|
|
14
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, handle);
|
|
15
15
|
}
|
|
16
16
|
catch (error) {
|
|
17
17
|
args.scriptDataAppender.setErrorNLP("GetCurrentWindowHandle");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getDataFromApiRequestHeaderForJsonPath = 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 getDataFromApiRequestHeaderForJsonPath = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const jsonPath = args.value || "";
|
|
@@ -12,7 +12,7 @@ const getDataFromApiRequestHeaderForJsonPath = async (args) => {
|
|
|
12
12
|
stepInputs: [jsonPath],
|
|
13
13
|
returnTypeVariableName: args.returnTypeVariableName
|
|
14
14
|
});
|
|
15
|
-
(0,
|
|
15
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, jsonPath);
|
|
16
16
|
}
|
|
17
17
|
catch (error) {
|
|
18
18
|
args.scriptDataAppender.setErrorNLP("GetDataFromApiRequestHeaderForJsonPath");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getDataFromApiResponseForJsonPath = 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 getDataFromApiResponseForJsonPath = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const jsonPath = args.value || "";
|
|
@@ -12,7 +12,7 @@ const getDataFromApiResponseForJsonPath = async (args) => {
|
|
|
12
12
|
stepInputs: [jsonPath],
|
|
13
13
|
returnTypeVariableName: args.returnTypeVariableName
|
|
14
14
|
});
|
|
15
|
-
(0,
|
|
15
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, jsonPath);
|
|
16
16
|
}
|
|
17
17
|
catch (error) {
|
|
18
18
|
args.scriptDataAppender.setErrorNLP("GetDataFromApiResponseForJsonPath");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getDateWithGivenFormat = 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 getDateWithGivenFormat = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const format = args.value || "YYYY-MM-DD";
|
|
@@ -20,7 +20,7 @@ const getDateWithGivenFormat = async (args) => {
|
|
|
20
20
|
stepInputs: [format],
|
|
21
21
|
returnTypeVariableName: args.returnTypeVariableName
|
|
22
22
|
});
|
|
23
|
-
(0,
|
|
23
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, formatted);
|
|
24
24
|
}
|
|
25
25
|
catch (error) {
|
|
26
26
|
args.scriptDataAppender.setErrorNLP("GetDateWithGivenFormat");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getDriverInstance = 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 getDriverInstance = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const sessionId = args.driver.sessionId || "driver";
|
|
@@ -11,7 +11,7 @@ const getDriverInstance = async (args) => {
|
|
|
11
11
|
nlpName: "GetDriverInstance",
|
|
12
12
|
returnTypeVariableName: args.returnTypeVariableName
|
|
13
13
|
});
|
|
14
|
-
(0,
|
|
14
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, sessionId);
|
|
15
15
|
}
|
|
16
16
|
catch (error) {
|
|
17
17
|
args.scriptDataAppender.setErrorNLP("GetDriverInstance");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getFirstContentfulPaint = 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 getFirstContentfulPaint = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const fcp = await args.driver.execute(() => {
|
|
@@ -14,7 +14,7 @@ const getFirstContentfulPaint = async (args) => {
|
|
|
14
14
|
nlpName: "GetFirstContentfulPaint",
|
|
15
15
|
returnTypeVariableName: args.returnTypeVariableName
|
|
16
16
|
});
|
|
17
|
-
(0,
|
|
17
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, fcp);
|
|
18
18
|
}
|
|
19
19
|
catch (error) {
|
|
20
20
|
args.scriptDataAppender.setErrorNLP("GetFirstContentfulPaint");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getFirstSelectedOption = 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 getFirstSelectedOption = async (args) => {
|
|
7
7
|
try {
|
|
@@ -15,7 +15,7 @@ const getFirstSelectedOption = async (args) => {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
const text = _firstSelected ? await _firstSelected.getText() : "";
|
|
18
|
-
(0,
|
|
18
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, text);
|
|
19
19
|
(0, appendScriptData_js_1.appendScriptData)({
|
|
20
20
|
scriptDataAppender: args.scriptDataAppender,
|
|
21
21
|
nlpName: "GetFirstSelectedOption",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getFullPaintTime = 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 getFullPaintTime = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const fullPaint = await args.driver.execute(() => {
|
|
@@ -14,7 +14,7 @@ const getFullPaintTime = async (args) => {
|
|
|
14
14
|
nlpName: "GetFullPaintTime",
|
|
15
15
|
returnTypeVariableName: args.returnTypeVariableName
|
|
16
16
|
});
|
|
17
|
-
(0,
|
|
17
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, fullPaint);
|
|
18
18
|
}
|
|
19
19
|
catch (error) {
|
|
20
20
|
args.scriptDataAppender.setErrorNLP("GetFullPaintTime");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getHTMLCodeOfPage = 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 getHTMLCodeOfPage = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const html = await args.driver.getPageSource();
|
|
@@ -11,7 +11,7 @@ const getHTMLCodeOfPage = async (args) => {
|
|
|
11
11
|
nlpName: "GetHTMLCodeOfPage",
|
|
12
12
|
returnTypeVariableName: args.returnTypeVariableName
|
|
13
13
|
});
|
|
14
|
-
(0,
|
|
14
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, html);
|
|
15
15
|
}
|
|
16
16
|
catch (error) {
|
|
17
17
|
args.scriptDataAppender.setErrorNLP("GetHTMLCodeOfPage");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getHeightOfBrowserWindow = 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 getHeightOfBrowserWindow = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const rect = await args.driver.getWindowRect();
|
|
@@ -12,7 +12,7 @@ const getHeightOfBrowserWindow = async (args) => {
|
|
|
12
12
|
nlpName: "GetHeightOfBrowserWindow",
|
|
13
13
|
returnTypeVariableName: args.returnTypeVariableName
|
|
14
14
|
});
|
|
15
|
-
(0,
|
|
15
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, height);
|
|
16
16
|
}
|
|
17
17
|
catch (error) {
|
|
18
18
|
args.scriptDataAppender.setErrorNLP("GetHeightOfBrowserWindow");
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getHeightOfWebElement = 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 getHeightOfWebElement = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const element = await args.driver.$(args.selector);
|
|
9
9
|
const _size = await element.getSize();
|
|
10
10
|
const _height = _size.height;
|
|
11
|
-
(0,
|
|
11
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, _size.height);
|
|
12
12
|
(0, appendScriptData_js_1.appendScriptData)({
|
|
13
13
|
scriptDataAppender: args.scriptDataAppender,
|
|
14
14
|
nlpName: "GetHeightOfWebElement",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getHourFromCurrentSystemTime = 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 getHourFromCurrentSystemTime = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const hour = String(new Date().getHours());
|
|
@@ -11,7 +11,7 @@ const getHourFromCurrentSystemTime = async (args) => {
|
|
|
11
11
|
nlpName: "GetHourFromCurrentSystemTime",
|
|
12
12
|
returnTypeVariableName: args.returnTypeVariableName
|
|
13
13
|
});
|
|
14
|
-
(0,
|
|
14
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, hour);
|
|
15
15
|
}
|
|
16
16
|
catch (error) {
|
|
17
17
|
args.scriptDataAppender.setErrorNLP("GetHourFromCurrentSystemTime");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getImplicitTimeOut = 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 getImplicitTimeOut = async (args) => {
|
|
7
7
|
const nlpName = args.platform === "android" || args.platform === "ios" ? "MOB_GetImplicitTimeOut" : "GetImplicitTimeOut";
|
|
8
8
|
try {
|
|
@@ -13,7 +13,7 @@ const getImplicitTimeOut = async (args) => {
|
|
|
13
13
|
nlpName: nlpName,
|
|
14
14
|
returnTypeVariableName: args.returnTypeVariableName
|
|
15
15
|
});
|
|
16
|
-
(0,
|
|
16
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, timeout);
|
|
17
17
|
}
|
|
18
18
|
catch (error) {
|
|
19
19
|
args.scriptDataAppender.setErrorNLP(nlpName);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getLargestContentfulPaint = 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 getLargestContentfulPaint = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const lcp = await args.driver.execute(() => {
|
|
@@ -14,7 +14,7 @@ const getLargestContentfulPaint = async (args) => {
|
|
|
14
14
|
nlpName: "GetLargestContentfulPaint",
|
|
15
15
|
returnTypeVariableName: args.returnTypeVariableName
|
|
16
16
|
});
|
|
17
|
-
(0,
|
|
17
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, lcp);
|
|
18
18
|
}
|
|
19
19
|
catch (error) {
|
|
20
20
|
args.scriptDataAppender.setErrorNLP("GetLargestContentfulPaint");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getListBoxSize = getListBoxSize;
|
|
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
|
async function getListBoxSize(args) {
|
|
@@ -25,7 +25,7 @@ async function getListBoxSize(args) {
|
|
|
25
25
|
platform: args.platform,
|
|
26
26
|
returnTypeVariableName: args.returnTypeVariableName
|
|
27
27
|
});
|
|
28
|
-
(0,
|
|
28
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, size);
|
|
29
29
|
}
|
|
30
30
|
catch (error) {
|
|
31
31
|
args.scriptDataAppender.setErrorNLP("GetListBoxSize");
|
package/dist/automation/actions/interaction/get/getListOfElementsFromLocatorTypeLocatorValue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getListOfElementsFromLocatorTypeLocatorValue = 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 getListOfElementsFromLocatorTypeLocatorValue = async (args) => {
|
|
@@ -48,7 +48,7 @@ const getListOfElementsFromLocatorTypeLocatorValue = async (args) => {
|
|
|
48
48
|
stepInputs: [locatorType, locatorValue],
|
|
49
49
|
returnTypeVariableName: args.returnTypeVariableName
|
|
50
50
|
});
|
|
51
|
-
(0,
|
|
51
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, _elements.length);
|
|
52
52
|
}
|
|
53
53
|
catch (error) {
|
|
54
54
|
args.scriptDataAppender.setErrorNLP("GetListOfElementsFromLocatorTypeLocatorValue");
|
|
@@ -91,7 +91,7 @@ const getListOfElementsFromLocatorTypeLocatorValue = async (args) => {
|
|
|
91
91
|
stepInputs: [locatorType, locatorValue],
|
|
92
92
|
returnTypeVariableName: args.returnTypeVariableName
|
|
93
93
|
});
|
|
94
|
-
(0,
|
|
94
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, _elements.length);
|
|
95
95
|
}
|
|
96
96
|
catch (error) {
|
|
97
97
|
args.scriptDataAppender.setErrorNLP("IOS_GetListOfElementsFromLocatorTypeLocatorValue");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getLocation = 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 getLocation = async (args) => {
|
|
@@ -26,7 +26,7 @@ const getLocation = async (args) => {
|
|
|
26
26
|
platform: args.platform,
|
|
27
27
|
returnTypeVariableName: args.returnTypeVariableName
|
|
28
28
|
});
|
|
29
|
-
(0,
|
|
29
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, _location);
|
|
30
30
|
}
|
|
31
31
|
catch (error) {
|
|
32
32
|
args.scriptDataAppender.setErrorNLP(nlpName);
|
|
@@ -52,7 +52,7 @@ const getLocation = async (args) => {
|
|
|
52
52
|
platform: args.platform,
|
|
53
53
|
returnTypeVariableName: args.returnTypeVariableName
|
|
54
54
|
});
|
|
55
|
-
(0,
|
|
55
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, _location);
|
|
56
56
|
}
|
|
57
57
|
catch (error) {
|
|
58
58
|
args.scriptDataAppender.setErrorNLP("GetLocation");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getMinuteFromCurrentSystemTime = 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 getMinuteFromCurrentSystemTime = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const minute = String(new Date().getMinutes());
|
|
@@ -11,7 +11,7 @@ const getMinuteFromCurrentSystemTime = async (args) => {
|
|
|
11
11
|
nlpName: "GetMinuteFromCurrentSystemTime",
|
|
12
12
|
returnTypeVariableName: args.returnTypeVariableName
|
|
13
13
|
});
|
|
14
|
-
(0,
|
|
14
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, minute);
|
|
15
15
|
}
|
|
16
16
|
catch (error) {
|
|
17
17
|
args.scriptDataAppender.setErrorNLP("GetMinuteFromCurrentSystemTime");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getNetworkRouteTime = 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 getNetworkRouteTime = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const routeTime = await args.driver.execute(() => {
|
|
@@ -14,7 +14,7 @@ const getNetworkRouteTime = async (args) => {
|
|
|
14
14
|
nlpName: "GetNetworkRouteTime",
|
|
15
15
|
returnTypeVariableName: args.returnTypeVariableName
|
|
16
16
|
});
|
|
17
|
-
(0,
|
|
17
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, routeTime);
|
|
18
18
|
}
|
|
19
19
|
catch (error) {
|
|
20
20
|
args.scriptDataAppender.setErrorNLP("GetNetworkRouteTime");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getNumberOfBrokenImages = 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 getNumberOfBrokenImages = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const count = await args.driver.execute(() => {
|
|
@@ -14,7 +14,7 @@ const getNumberOfBrokenImages = async (args) => {
|
|
|
14
14
|
nlpName: "GetNumberOfBrokenImages",
|
|
15
15
|
returnTypeVariableName: args.returnTypeVariableName
|
|
16
16
|
});
|
|
17
|
-
(0,
|
|
17
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, count);
|
|
18
18
|
}
|
|
19
19
|
catch (error) {
|
|
20
20
|
args.scriptDataAppender.setErrorNLP("GetNumberOfBrokenImages");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getNumberOfLinksPresentInCurrentPage = 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 getNumberOfLinksPresentInCurrentPage = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const links = await args.driver.$$("a");
|
|
@@ -12,7 +12,7 @@ const getNumberOfLinksPresentInCurrentPage = async (args) => {
|
|
|
12
12
|
nlpName: "GetNumberOfLinksPresentInCurrentPage",
|
|
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("GetNumberOfLinksPresentInCurrentPage");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getNumberOfWorkingLinksFromCurrentPage = 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 getNumberOfWorkingLinksFromCurrentPage = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const count = await args.driver.execute(() => {
|
|
@@ -16,7 +16,7 @@ const getNumberOfWorkingLinksFromCurrentPage = async (args) => {
|
|
|
16
16
|
nlpName: "GetNumberOfWorkingLinksFromCurrentPage",
|
|
17
17
|
returnTypeVariableName: args.returnTypeVariableName
|
|
18
18
|
});
|
|
19
|
-
(0,
|
|
19
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, count);
|
|
20
20
|
}
|
|
21
21
|
catch (error) {
|
|
22
22
|
args.scriptDataAppender.setErrorNLP("GetNumberOfWorkingLinksFromCurrentPage");
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getOptions = 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 getOptions = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const selectElement = await args.driver.$(args.selector);
|
|
9
9
|
const _options = await selectElement.$$('option');
|
|
10
|
-
(0,
|
|
10
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, _options);
|
|
11
11
|
(0, appendScriptData_js_1.appendScriptData)({
|
|
12
12
|
scriptDataAppender: args.scriptDataAppender,
|
|
13
13
|
nlpName: "GetOptions",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getPageTitle = 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 getPageTitle = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const title = await args.driver.getTitle();
|
|
@@ -11,7 +11,7 @@ const getPageTitle = async (args) => {
|
|
|
11
11
|
nlpName: "GetPageTitle",
|
|
12
12
|
returnTypeVariableName: args.returnTypeVariableName
|
|
13
13
|
});
|
|
14
|
-
(0,
|
|
14
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, title);
|
|
15
15
|
}
|
|
16
16
|
catch (error) {
|
|
17
17
|
args.scriptDataAppender.setErrorNLP("GetPageTitle");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getPerformanceMetrics = 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 getPerformanceMetrics = async (args) => {
|
|
7
7
|
try {
|
|
8
8
|
const metrics = await args.driver.execute(() => {
|
|
@@ -18,7 +18,7 @@ const getPerformanceMetrics = async (args) => {
|
|
|
18
18
|
nlpName: "GetPerformanceMetrics",
|
|
19
19
|
returnTypeVariableName: args.returnTypeVariableName
|
|
20
20
|
});
|
|
21
|
-
(0,
|
|
21
|
+
(0, saveStepInputData_js_1.saveStepInputData)(args, metrics);
|
|
22
22
|
}
|
|
23
23
|
catch (error) {
|
|
24
24
|
args.scriptDataAppender.setErrorNLP("GetPerformanceMetrics");
|