ff-automationv2 2.2.7 → 2.2.9
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/systemPrompts/fireflinkElementIndexExtractor_Mob.js +2 -1
- package/dist/ai/llmprompts/systemPrompts/getActionExtractorPromptMob.js +3 -2
- package/dist/ai/llmprompts/systemPrompts/mobileKeywordExtractor.js +3 -1
- package/dist/ai/llmprompts/systemPrompts/verifyActionExtractorPromptMob.js +6 -4
- package/dist/ai/llmprompts/systemPrompts/waitActionExtractorPromptMob.js +2 -1
- package/dist/automation/actions/executor.d.ts +54 -0
- package/dist/automation/actions/executor.js +789 -0
- package/dist/automation/actions/interaction/click/doubleClick.js +1 -5
- package/dist/automation/actions/interaction/enterActions/enterInputAndPress.js +10 -3
- package/dist/automation/actions/interaction/enterActions/waitAndEnter.js +20 -19
- package/dist/automation/actions/interaction/get/MOB_GetADBLogsForGivenAppPackage.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetADBLogsForGivenAppPackage.js +18 -0
- package/dist/automation/actions/interaction/get/MOB_GetAllContexts.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetAllContexts.js +17 -0
- package/dist/automation/actions/interaction/get/MOB_GetAllWindowHandles.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetAllWindowHandles.js +26 -0
- package/dist/automation/actions/interaction/get/MOB_GetAltitude.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetAltitude.js +17 -0
- package/dist/automation/actions/interaction/get/MOB_GetBatteryPercentage.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetBatteryPercentage.js +19 -0
- package/dist/automation/actions/interaction/get/MOB_GetBatteryStatus.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetBatteryStatus.js +16 -0
- package/dist/automation/actions/interaction/get/MOB_GetClipBoardText.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetClipBoardText.js +17 -0
- package/dist/automation/actions/interaction/get/MOB_GetCurrentActivity.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetCurrentActivity.js +16 -0
- package/dist/automation/actions/interaction/get/MOB_GetCurrentAppPackage.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetCurrentAppPackage.js +17 -0
- package/dist/automation/actions/interaction/get/MOB_GetCurrentContext.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetCurrentContext.js +16 -0
- package/dist/automation/actions/interaction/get/MOB_GetCurrentDeviceDate.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetCurrentDeviceDate.js +18 -0
- package/dist/automation/actions/interaction/get/MOB_GetCurrentDeviceSettings.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetCurrentDeviceSettings.js +16 -0
- package/dist/automation/actions/interaction/get/MOB_GetCurrentDeviceStatus.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetCurrentDeviceStatus.js +16 -0
- package/dist/automation/actions/interaction/get/MOB_GetCurrentDeviceSystemBars.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetCurrentDeviceSystemBars.js +16 -0
- package/dist/automation/actions/interaction/get/MOB_GetCurrentDeviceTime.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetCurrentDeviceTime.js +16 -0
- package/dist/automation/actions/interaction/get/MOB_GetCurrentOrientation.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetCurrentOrientation.js +16 -0
- package/dist/automation/actions/interaction/get/MOB_GetCurrentSessionId.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetCurrentSessionId.js +16 -0
- package/dist/automation/actions/interaction/get/MOB_GetDeviceLocation.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetDeviceLocation.js +17 -0
- package/dist/automation/actions/interaction/get/MOB_GetDeviceName.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetDeviceName.js +17 -0
- package/dist/automation/actions/interaction/get/MOB_GetDeviceOsVersion.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetDeviceOsVersion.js +17 -0
- package/dist/automation/actions/interaction/get/MOB_GetDeviceUdid.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetDeviceUdid.js +17 -0
- package/dist/automation/actions/interaction/get/MOB_GetHeightOfElement.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetHeightOfElement.js +23 -0
- package/dist/automation/actions/interaction/get/MOB_GetHeightOfScreen.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetHeightOfScreen.js +17 -0
- package/dist/automation/actions/interaction/get/MOB_GetHourFromCurrentDeviceTime.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetHourFromCurrentDeviceTime.js +18 -0
- package/dist/automation/actions/interaction/get/MOB_GetLatitude.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetLatitude.js +19 -0
- package/dist/automation/actions/interaction/get/MOB_GetLongitude.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetLongitude.js +19 -0
- package/dist/automation/actions/interaction/get/MOB_GetMinuteFromCurrentDeviceTime.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetMinuteFromCurrentDeviceTime.js +18 -0
- package/dist/automation/actions/interaction/get/MOB_GetSecondFromCurrentDeviceTime.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetSecondFromCurrentDeviceTime.js +17 -0
- package/dist/automation/actions/interaction/get/MOB_GetSizeOfScreen.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetSizeOfScreen.js +16 -0
- package/dist/automation/actions/interaction/get/MOB_GetSupportedPerformanceDataTypes.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetSupportedPerformanceDataTypes.js +16 -0
- package/dist/automation/actions/interaction/get/MOB_GetTextFromElementAndSetToClipBoard.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetTextFromElementAndSetToClipBoard.js +31 -0
- package/dist/automation/actions/interaction/get/MOB_GetWidthOfElement.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetWidthOfElement.js +23 -0
- package/dist/automation/actions/interaction/get/MOB_GetWidthOfScreen.d.ts +2 -0
- package/dist/automation/actions/interaction/get/MOB_GetWidthOfScreen.js +17 -0
- package/dist/automation/actions/interaction/get/getRect.js +2 -4
- package/dist/automation/actions/interaction/get/getScreenshot.js +23 -18
- package/dist/automation/actions/interaction/get/getScreenshotAs.js +30 -40
- package/dist/automation/actions/interaction/press/pressAnyKeyNTimes.js +8 -1
- package/dist/automation/actions/interaction/press/pressEnterKey.js +1 -1
- package/dist/automation/actions/interaction/set/MOB_SetContext.d.ts +2 -0
- package/dist/automation/actions/interaction/set/MOB_SetContext.js +17 -0
- package/dist/automation/actions/interaction/set/MOB_SetEmulatorPowerPercentage.d.ts +2 -0
- package/dist/automation/actions/interaction/set/MOB_SetEmulatorPowerPercentage.js +24 -0
- package/dist/automation/actions/interaction/set/setClipBoardText.js +1 -0
- package/dist/automation/actions/interaction/verify/MOB_VerifyBatteryLevel.d.ts +2 -0
- package/dist/automation/actions/interaction/verify/MOB_VerifyBatteryLevel.js +22 -0
- package/dist/automation/actions/interaction/verify/MOB_VerifyIfAirplaneModeOff.d.ts +2 -0
- package/dist/automation/actions/interaction/verify/MOB_VerifyIfAirplaneModeOff.js +17 -0
- package/dist/automation/actions/interaction/verify/MOB_VerifyIfAirplaneModeOn.d.ts +2 -0
- package/dist/automation/actions/interaction/verify/MOB_VerifyIfAirplaneModeOn.js +17 -0
- package/dist/automation/actions/interaction/verify/MOB_VerifyIfAppIsClosed.d.ts +2 -0
- package/dist/automation/actions/interaction/verify/MOB_VerifyIfAppIsClosed.js +17 -0
- package/dist/automation/actions/interaction/verify/MOB_VerifyIfDeviceIsLocked.d.ts +2 -0
- package/dist/automation/actions/interaction/verify/MOB_VerifyIfDeviceIsLocked.js +16 -0
- package/dist/automation/actions/interaction/verify/MOB_VerifyIfDeviceIsUnlocked.d.ts +2 -0
- package/dist/automation/actions/interaction/verify/MOB_VerifyIfDeviceIsUnlocked.js +17 -0
- package/dist/automation/actions/interaction/verify/MOB_VerifyIfGpsOff.d.ts +2 -0
- package/dist/automation/actions/interaction/verify/MOB_VerifyIfGpsOff.js +17 -0
- package/dist/automation/actions/interaction/verify/MOB_VerifyIfGpsOn.d.ts +2 -0
- package/dist/automation/actions/interaction/verify/MOB_VerifyIfGpsOn.js +17 -0
- package/dist/automation/actions/interaction/verify/MOB_VerifyIfKeyboardIsHidden.d.ts +2 -0
- package/dist/automation/actions/interaction/verify/MOB_VerifyIfKeyboardIsHidden.js +17 -0
- package/dist/automation/actions/interaction/verify/MOB_VerifyIfKeyboardIsShown.d.ts +2 -0
- package/dist/automation/actions/interaction/verify/MOB_VerifyIfKeyboardIsShown.js +16 -0
- package/dist/automation/actions/interaction/verify/MOB_VerifyIfWifiOff.d.ts +2 -0
- package/dist/automation/actions/interaction/verify/MOB_VerifyIfWifiOff.js +17 -0
- package/dist/automation/actions/interaction/verify/MOB_VerifyIfWifiOn.d.ts +2 -0
- package/dist/automation/actions/interaction/verify/MOB_VerifyIfWifiOn.js +17 -0
- package/dist/automation/actions/interaction/verify/VerifyAttributeValue.js +92 -28
- package/dist/automation/actions/interaction/verify/VerifyHeightOfWebElement.js +2 -1
- package/dist/automation/actions/interaction/verify/VerifyListBoxOptionsAreSorted.js +0 -2
- package/dist/automation/actions/interaction/verify/VerifyPartialAttributeValue.js +98 -37
- package/dist/automation/actions/interaction/verify/verifypartialtext.js +1 -1
- package/dist/automation/actions/interaction/verify/verifytext.js +5 -2
- package/dist/automation/actions/interaction/wait/MOB_WaitTillAllElementsAreInvisible.ts.d.ts +2 -0
- package/dist/automation/actions/interaction/wait/MOB_WaitTillAllElementsAreInvisible.ts.js +25 -0
- package/dist/automation/actions/interaction/wait/MOB_WaitTillAttributeOfElementContainsString.d.ts +2 -0
- package/dist/automation/actions/interaction/wait/MOB_WaitTillAttributeOfElementContainsString.js +27 -0
- package/dist/automation/actions/interaction/wait/MOB_WaitTillElementIsEnabled.d.ts +2 -0
- package/dist/automation/actions/interaction/wait/MOB_WaitTillElementIsEnabled.js +22 -0
- package/dist/automation/actions/interaction/wait/MOB_WaitTillElementIsInvisible.d.ts +2 -0
- package/dist/automation/actions/interaction/wait/MOB_WaitTillElementIsInvisible.js +22 -0
- package/dist/automation/actions/interaction/wait/MOB_WaitTillElementIsSelected.d.ts +2 -0
- package/dist/automation/actions/interaction/wait/MOB_WaitTillElementIsSelected.js +22 -0
- package/dist/automation/actions/interaction/wait/MOB_WaitTillElementIsVisible.d.ts +2 -0
- package/dist/automation/actions/interaction/wait/MOB_WaitTillElementIsVisible.js +22 -0
- package/dist/automation/actions/interaction/wait/MOB_WaitTillStalenessOfElement.d.ts +2 -0
- package/dist/automation/actions/interaction/wait/MOB_WaitTillStalenessOfElement.js +22 -0
- package/dist/automation/actions/interaction/wait/waitTillAttributeOfElementIsString.js +1 -1
- package/dist/automation/actions/interaction/wait/waitTillPresenceOfAllElements.js +12 -2
- package/dist/automation/actions/interface/getActionInterface.d.ts +174 -0
- package/dist/automation/actions/interface/setActionInterface.d.ts +12 -0
- package/dist/automation/actions/interface/verifyActionInterface.d.ts +62 -0
- package/dist/automation/actions/interface/waitActionInterface.d.ts +55 -0
- package/dist/core/constants/supportedActions.js +89 -8
- package/dist/core/interfaces/actionInterface.d.ts +53 -0
- package/dist/core/main/actionHandlerFactory.js +162 -0
- package/dist/core/main/executionContext.js +1 -1
- package/dist/core/main/runAutomationScript.js +3 -3
- package/dist/domAnalysis/searchBest.js +4 -2
- package/dist/fireflinkData/fireflinkScript/scriptGenrationData.d.ts +0 -2
- package/dist/fireflinkData/fireflinkScript/scriptGenrationData.js +1 -4
- package/package.json +1 -1
- package/dist/service/scriptRunner.service.d.ts +0 -10
- package/dist/service/scriptRunner.service.js +0 -36
- package/dist/utils/mobileXpath/findXpathFromIndex.d.ts +0 -2
- package/dist/utils/mobileXpath/findXpathFromIndex.js +0 -61
- package/dist/utils/mobileXpath/findXpathFromIndexInterface.d.ts +0 -4
- package/dist/utils/mobileXpath/findXpathFromIndexInterface.js +0 -1
|
@@ -31,12 +31,13 @@ You are an AI assistant. For the step, extract the element keyword from the step
|
|
|
31
31
|
login - ff-inspect-803
|
|
32
32
|
then should return login - ff-inspect-803 witch is near to user reference element user login - ff-inspect-790**
|
|
33
33
|
- **Find the FF-inspecter attribute value of the element in the filtered dom JSON whose text or content-desc or other attributes best or perfect match for the step.**
|
|
34
|
-
- nlpName: Extract nlpName from the list of nlps: ${Actions} based on the step.
|
|
34
|
+
- nlpName: Extract nlpName from the list of nlps: ${Actions} based on the step.If step is enter url, nlpName should be MOB_EnterUrl.
|
|
35
35
|
- For taping action dont take attribute_value of the node contining edittext in class, resource-id.
|
|
36
36
|
- For some steps you can see two inputs but you need to uderstand step and send the requred input_text.
|
|
37
37
|
ex:Double tap on the 30,50
|
|
38
38
|
here here input:30,50
|
|
39
39
|
- and for this MOB_TapNTimes nlps send number of times to tap as input_text.
|
|
40
|
+
- If step is press any key and if the step contains any key name like ENTER,SPACE,BACKSPACE etc and give keyname of the given key as input_text if they mention key and how many times to press key 'keyname,number of times' or enter input and press key keep it as 'input,keyname'.
|
|
40
41
|
- nlpName: wait for wait action, and in input_text give time to wait. like sleep for 30 seconds, here nlpName is wait and input_text is 30.
|
|
41
42
|
- Extract input text from step for all actions,if input is not there give empty string "".
|
|
42
43
|
- Based on step give most relevant type of element. use this list to choose elementType: ${elementType} and Never change syntax of elementType, follow the syntax of elementType in list.if elementType is not there in list return 'link'.
|
|
@@ -8,7 +8,7 @@ export async function getActionExtractorPromptMob({ extractedDomJson, priorAndNe
|
|
|
8
8
|
"MOB_GetDriverInstance","MOB_GetCurrentWindowHandle","MOB_GetCurrentSessionId","MOB_GetHeightOfScreen","MOB_GetCurrentDeviceSystemBars",
|
|
9
9
|
"MOB_GetAttributeValueFromListOfWebElements","MOB_GetTagName","MOB_GetListOfElementsFromLocatorTypeLocatorValue","MOB_GetScreenshot","MOB_GetTextFromElementAndSetToClipBoard",
|
|
10
10
|
"MOB_GetHeightOfElement","MOB_GetTextFromListOfWebElements","MOB_GetHexCodeForGivenXYCoordinatesOfImage","MOB_GetADBLogsForGivenAppPackage","MOB_GetScreenshotAs","MOB_GetWidthOfElement",
|
|
11
|
-
"MOB_GetX", "MOB_GetLocation","MOB_GetY","MOB_GetPerformanceData","MOB_GetRect","MOB_GetText","
|
|
11
|
+
"MOB_GetX", "MOB_GetLocation","MOB_GetY","MOB_GetPerformanceData","MOB_GetRect","MOB_GetText","GetSize","MOB_GetAttribute"`;
|
|
12
12
|
const elementType = ["link", "textfield", "icon", "button", "radiobutton", "checkbox", "tab", "action overflow button", "hamburger menu", "toggle button", "steppers", "sliders"];
|
|
13
13
|
const prompt = `You are an intelligent assistant that extracts structured UI action data.
|
|
14
14
|
Given the step: step, the simplified DOM: ${extractedDomJson} and the list of NLP names: ${nlpList}.
|
|
@@ -17,7 +17,7 @@ Select the perfect matching NLP name from the list that best fits the step's int
|
|
|
17
17
|
|
|
18
18
|
Return **only valid JSON** in the following format:
|
|
19
19
|
{
|
|
20
|
-
"
|
|
20
|
+
"attribute_value": "Fire-Flink-x",
|
|
21
21
|
"nlpName": "x",
|
|
22
22
|
"input_text":"x"
|
|
23
23
|
"keyword": "x",
|
|
@@ -39,6 +39,7 @@ Rules:
|
|
|
39
39
|
- Based on step give most relevant type of element. use this list to choose elementType: ${elementType} and Never change syntax of elementType, follow the syntax of elementType in list.if elementType is not there in list return 'link'.
|
|
40
40
|
- Extract locator_type if mentioned in the step, like(text,resource-id,content-desc,xpath)
|
|
41
41
|
- Extract attribute_type if mentioned in the step, like (text,resource-id,content-desc,className).
|
|
42
|
+
- if the step is getText or getTextFromElement map to MOB_GetText nlp similarly for getSize or GetSizeOfElement map to MOB_GetSize.
|
|
42
43
|
- Respond with valid JSON only.
|
|
43
44
|
`;
|
|
44
45
|
return prompt;
|
|
@@ -6,6 +6,7 @@ From the step, extract ONLY the meaningful keywords so that i can search for the
|
|
|
6
6
|
Rules:
|
|
7
7
|
- understand the step and context from the ${priorAndNextSteps}.and only extract keywords from current step and dont extract from prior and next steps.
|
|
8
8
|
- 3 to 5 keywords maximum.
|
|
9
|
+
- If step has 2 action like wait and any other action then give action as wait.
|
|
9
10
|
- If the step is about luanching an app or opening app, like (action, param1, param2) or(action,'param1,param2') then wrap them into array and give them as keywords like ['com.app.android', 'com.app.activity']
|
|
10
11
|
and also give them in the format (launch app, 'com.app.android', 'com.app.activity') like first package name and second activity name. if any separator exists (- / | :), split on it.
|
|
11
12
|
If they mention package:com.app.android and activity:com.app.activity remove variable name and then convert them into ['com.app.android, 'com.app.activity']
|
|
@@ -17,7 +18,8 @@ If they mention package:com.app.android and activity:com.app.activity remove var
|
|
|
17
18
|
- Do NOT include status/technical words (displayed, enabled, authenticate, visible).
|
|
18
19
|
- If an element label contains multiple words (e.g., "Sign In", "Add to Cart"), keep them together as ONE keyword and do not split them and also for keywords you generated, do not split them.
|
|
19
20
|
-** element_name: extract name of the element that mentioned in the step not from keywords or other steps.(eg:tap on x -> element_name:x). always try to retuen short and meaning full element name from step**
|
|
20
|
-
- action: openApp for opening or launching of app, tap for taping or selecting or clicking or
|
|
21
|
+
- action: openApp for opening or launching of app, tap for taping or selecting or clicking or pressing, enter for entering input, wait for waiting or sleeping, verify for verifying or checking,scroll for scrolling and swiping, get for getting,fetching element, closeApp for closing the app.
|
|
22
|
+
- If step is press any key give action as tap.
|
|
21
23
|
- action must be one of from this list ${allowedActions}.if not one of them, return action as 'combined'. if step about set or find or open chrome browser or open app with apk path or install apk or uninstall apk or activate or terminate action return action as 'combined'
|
|
22
24
|
Respond only with JSON using this format:
|
|
23
25
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export async function verifyActionExtractorPromptMob({ extractedDomJson, priorAndNextSteps, }) {
|
|
2
|
-
const nlpList = ` "MOB_VerifyElementIsDisplayed,MOB_VerifyElementIsEnabled,MOB_VerifyElementIsSelected,MOB_VerifyText,MOB_VerifyAttributeValue,MOB_VerifyPartialAttributeValue,"
|
|
3
|
-
"MOB_VerifyElementIsDisplayedInSpecifiedTime,MOB_VerifyElementIsEnabledInSpecifiedTime,
|
|
2
|
+
const nlpList = ` "MOB_VerifyElementIsDisplayed,MOB_VerifyElementIsDisabled,MOB_VerifyElementIsEnabled,MOB_VerifyElementIsSelected,MOB_VerifyText,MOB_VerifyAttributeValue,MOB_VerifyPartialAttributeValue,"
|
|
3
|
+
"MOB_VerifyElementIsDisplayedInSpecifiedTime,MOB_VerifyElementIsEnabledInSpecifiedTime,"
|
|
4
4
|
"MOB_VerifyBatteryLevel,MOB_VerifyPartialText,MOB_VerifyElementIsClickable,"
|
|
5
5
|
"MOB_VerifyIfKeyboardIsHidden,MOB_VerifyIfKeyboardIsShown,MOB_VerifyIfXAndYCoordinateOfElement,"
|
|
6
6
|
"MOB_VerifyHeightOfElement,MOB_VerifyXLocationOfAndroidElement,MOB_VerifyIfDeviceIsUnlocked,"
|
|
@@ -17,7 +17,7 @@ Select the perfect matching NLP name from the list that best fits the step's int
|
|
|
17
17
|
|
|
18
18
|
Return **only valid JSON** in the following format:
|
|
19
19
|
{
|
|
20
|
-
"
|
|
20
|
+
"attribute_value": "Fire-Flink-x",
|
|
21
21
|
"nlpName": "x",
|
|
22
22
|
"input_text":"x"
|
|
23
23
|
"keyword": "x",
|
|
@@ -33,9 +33,11 @@ Rules:
|
|
|
33
33
|
here keyword : "flights" , input : flight, here input:30,50
|
|
34
34
|
- If step mention time and element name then Input_text should be elementname,time.
|
|
35
35
|
example: Verify the home is displayed for 30 seconds
|
|
36
|
-
here keyword : "home" , input : home,30
|
|
36
|
+
here keyword : "home" , input : home,30 only they mention seconds as input in step
|
|
37
37
|
- If step mention verify text then only pick MOB_VerifyText nlp otherwise pick MOB_VerifyElementIsDisplayed.
|
|
38
|
+
- If step mention verify x and y coordinate of element then only pick MOB_VerifyIfXAndYCoordinateOfElement.
|
|
38
39
|
- Extract input_text from the step that is which is being verified in the {step}, if you can't find any input text in the step, return keyword as input_text.
|
|
40
|
+
- For MOB_VerifyHeightOfElement just provide height mentioned in the step as the input_text don't add anything else
|
|
39
41
|
- Extract keyword from the step, if the step contains any keyword.
|
|
40
42
|
- Use the closest semantic match for the step; return attribute_value as Fire-Flink-0, only if nothing is found.
|
|
41
43
|
- Based on step give most relevant type of element. use this list to choose elementType: ${elementType} and Never change syntax of elementType, follow the syntax of elementType in list.if elementType is not there in list return 'link'.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export async function waitActionExtractorPromptMob({ extractedDomJson, priorAndNextSteps, }) {
|
|
2
|
-
const nlpList = `"MOB_WaitTillPresenceOfElement","MOB_WaitTillElementIsSelected","MOB_WaitTillElementHasText","MOB_WaitTillElementIsEnabled",
|
|
2
|
+
const nlpList = `"MOB_WaitTillPresenceOfAllElements","MOB_WaitTillPresenceOfElement","MOB_WaitTillElementIsSelected","MOB_WaitTillElementHasText","MOB_WaitTillElementIsEnabled",
|
|
3
3
|
"MOB_WaitTillElementIsVisible","MOB_WaitTillElementContainsText","MOB_WaitTillAttributeOfElementContainsString","MOB_WaitTillAllElementsAreInvisible",
|
|
4
4
|
"MOB_WaitTillElementIsInvisible","MOB_WaitTillElementIsClickable","MOB_WaitTillAttributeOfElementIsString","MOB_WaitTillPresenceOfAllElements",
|
|
5
5
|
"MOB_WaitTillStalenessOfElement","MOB_WaitAndSendKeys","MOB_WaitAndClick","Sleep"`;
|
|
@@ -26,6 +26,7 @@ Rules:
|
|
|
26
26
|
- For some steps you can see two inputs but you need to uderstand step and send the requred input_text.
|
|
27
27
|
ex: Wait until the flights has the flight text
|
|
28
28
|
here keyword : "flights" , input : flight
|
|
29
|
+
- **If the step has input in a string with comma take that string as it is in input_text.**
|
|
29
30
|
- Extract input_text from the step, if you can't find any input text in the step, return keyword as input_text.
|
|
30
31
|
- Extract keyword from the step, if the step contains any keyword.
|
|
31
32
|
- Use the closest semantic match for the step; return attribute_value as Fire-Flink-0, only if nothing is found.
|
|
@@ -289,4 +289,58 @@ export declare class ActionExecutor implements IActionExecutor {
|
|
|
289
289
|
OpenAppWithApkFilePath(value: string): Promise<void>;
|
|
290
290
|
ActivateAppUsingAppPackage(value: string): Promise<void>;
|
|
291
291
|
LongPress(selector: string, value: string, elementName: string, elementType: string): Promise<void>;
|
|
292
|
+
MOB_GetDeviceLocation(): Promise<void>;
|
|
293
|
+
MOB_GetBatteryPercentage(): Promise<void>;
|
|
294
|
+
MOB_GetLongitude(): Promise<void>;
|
|
295
|
+
MOB_GetLatitude(): Promise<void>;
|
|
296
|
+
MOB_GetAltitude(): Promise<void>;
|
|
297
|
+
MOB_GetCurrentDeviceDate(): Promise<void>;
|
|
298
|
+
MOB_GetMinuteFromCurrentDeviceTime(): Promise<void>;
|
|
299
|
+
MOB_GetCurrentAppPackage(): Promise<void>;
|
|
300
|
+
MOB_GetAllContexts(): Promise<void>;
|
|
301
|
+
MOB_GetHourFromCurrentDeviceTime(): Promise<void>;
|
|
302
|
+
MOB_GetSecondFromCurrentDeviceTime(): Promise<void>;
|
|
303
|
+
MOB_GetSupportedPerformanceDataTypes(): Promise<void>;
|
|
304
|
+
MOB_GetCurrentOrientation(): Promise<void>;
|
|
305
|
+
MOB_GetCurrentDeviceTime(): Promise<void>;
|
|
306
|
+
MOB_GetCurrentContext(): Promise<void>;
|
|
307
|
+
MOB_GetCurrentDeviceSettings(): Promise<void>;
|
|
308
|
+
MOB_GetClipBoardText(): Promise<void>;
|
|
309
|
+
MOB_GetCurrentDeviceStatus(): Promise<void>;
|
|
310
|
+
MOB_GetSizeOfScreen(): Promise<void>;
|
|
311
|
+
MOB_GetAllWindowHandles(): Promise<void>;
|
|
312
|
+
MOB_GetWidthOfScreen(): Promise<void>;
|
|
313
|
+
MOB_GetBatteryStatus(): Promise<void>;
|
|
314
|
+
MOB_GetCurrentActivity(): Promise<void>;
|
|
315
|
+
MOB_GetDeviceOsVersion(): Promise<void>;
|
|
316
|
+
MOB_GetDeviceUdid(): Promise<void>;
|
|
317
|
+
MOB_GetDeviceName(): Promise<void>;
|
|
318
|
+
MOB_GetCurrentSessionId(): Promise<void>;
|
|
319
|
+
MOB_GetHeightOfScreen(): Promise<void>;
|
|
320
|
+
MOB_GetCurrentDeviceSystemBars(): Promise<void>;
|
|
321
|
+
MOB_GetWidthOfElement(selector: string, elementName: string, elementType: string): Promise<void>;
|
|
322
|
+
MOB_GetHeightOfElement(selector: string, elementName: string, elementType: string): Promise<void>;
|
|
323
|
+
MOB_GetTextFromElementAndSetToClipBoard(selector: string, elementName: string, elementType: string): Promise<void>;
|
|
324
|
+
MOB_GetADBLogsForGivenAppPackage(value: string): Promise<void>;
|
|
325
|
+
MOB_VerifyIfAppIsClosed(value: string): Promise<void>;
|
|
326
|
+
MOB_VerifyIfAirplaneModeOn(): Promise<void>;
|
|
327
|
+
MOB_VerifyIfGpsOn(): Promise<void>;
|
|
328
|
+
MOB_VerifyIfGpsOff(): Promise<void>;
|
|
329
|
+
MOB_VerifyIfAirplaneModeOff(): Promise<void>;
|
|
330
|
+
MOB_VerifyIfDeviceIsLocked(): Promise<void>;
|
|
331
|
+
MOB_VerifyIfWifiOn(): Promise<void>;
|
|
332
|
+
MOB_VerifyIfDeviceIsUnlocked(): Promise<void>;
|
|
333
|
+
MOB_VerifyIfWifiOff(): Promise<void>;
|
|
334
|
+
MOB_VerifyIfKeyboardIsShown(): Promise<void>;
|
|
335
|
+
MOB_VerifyIfKeyboardIsHidden(): Promise<void>;
|
|
336
|
+
MOB_VerifyBatteryLevel(value: string): Promise<void>;
|
|
337
|
+
MOB_WaitTillAllElementsAreInvisible(): Promise<void>;
|
|
338
|
+
MOB_WaitTillElementIsSelected(selector: string, elementName: string, elementType: string): Promise<void>;
|
|
339
|
+
MOB_WaitTillElementIsEnabled(selector: string, elementName: string, elementType: string): Promise<void>;
|
|
340
|
+
MOB_WaitTillElementIsVisible(selector: string, elementName: string, elementType: string): Promise<void>;
|
|
341
|
+
MOB_WaitTillStalenessOfElement(selector: string, elementName: string, elementType: string): Promise<void>;
|
|
342
|
+
MOB_WaitTillElementIsInvisible(selector: string, elementName: string, elementType: string): Promise<void>;
|
|
343
|
+
MOB_WaitTillAttributeOfElementContainsString(selector: string, elementName: string, attributeName: string, elementType: string, value: string): Promise<void>;
|
|
344
|
+
MOB_SetContext(value: string): Promise<void>;
|
|
345
|
+
MOB_SetEmulatorPowerPercentage(value: string): Promise<void>;
|
|
292
346
|
}
|