Click
This action clicks the specified object.
This action does not have any parameter.
Example:
Click
ClickAction
This action clicks the specified object from the web application under test.
This action does not have any parameter.
Note: ActionClick uses underlying selenium WebDriver "Action" class to perform click action. Qualitia recommends using this action for web applications.
Example:
ClickAction
ClickAt
This action clicks at the specified point on the object.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|
X | The x-coordinate of the click. | Yes | String |
Y | The y-coordinate of the click. | Yes | String |
Example ClickAt "5" "10"
ClickJS
This action clicks the specified object from the web application under test.
This action does not have any parameter.
Note: ClickJS uses javascript code to perform the click action. Qualitia recommends using this action for web applications.
Example:
ClickJS
ClickJSAndSelectWindowUsingURL
This action is used to click the web element or object that opens single or multiple windows from which a specific window is selected.
This action accepts 'waitTimeForWindow' for the specific window to open.
This action is used in the following 2 scenarios:
- When a single window opens after clicking the web element/object, you need to give only 'waitTimeForWindow' parameter.
- When multiple windows open after clicking the web element or object, then you can provide the exact URL or regex patterned URL window. You must give the URL and 'isURLPatternString' parameters.
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|
waitTimeForWindow | Enter the wait time for the window to open. | Yes | String |
URL | Enter a specific URL or regex pattern of URL for the window you want to select. | No | String |
isURLPatternString | Enter one of the following: - True: If you want to apply the regex pattern to URL.
- False: If you do not want to apply the regex pattern to URL.
| No | String |
Example 1
String waitTimeForWindow : "5",
String url : null(do not give any value)
String isURLPatternString : null(do not give any value)
Expected Result - Here you do not need to provide URL or isURLPatternString as after clicking the object or element opens. The action waits up to 5 seconds for the window to appear after clicking the web element or object and then select the window.
Example 2
String waitTimeForWindow - "5",
String url - "https://bflsme--preprod.cs57.my.salesforce.com/_ui/common/data/LookupPage? lkfm=editPage&lknm=cas3&lktp=003&lksrch=",
String isURLPatternString - "False",
The action waits for up to 5 seconds for multiple windows to appear after clicking web element or object and it selects the window with the url "https://bflsme--preprod.cs57.my.salesforce.com/_ui/common/data/LookupPage?lkfm=editPage&lknm=cas3&lktp=003&lksrch=". As the isURLPatternString parameter is 'false' , the action finds as per the given URL.
Example 3
String waitTimeForWindow - "5",
String url - "www.([A-Z])\w+",
String isURLPatternString - "True",
Expected Result - The action waits for up to 5 seconds for multiple windows to open after clicking web element/object and it selects the window which matches the regex pattern "www.([A-Z])\w+" as provided in the URL parameter. As the isURLPatternString parameter is 'True', the action treats the URL parameter as a regex pattern. In case there are multiple windows satisfying the regex pattern, the action selects the first window.
DoubleClick
This action double-clicks the specified web element.
This action does not have any parameter.
Example:
DoubleClick
DownloadFile
This action clicks the link/element which will populate a download window and then downloads the file.
The action supports and is explicitly tested for FF3, IE7, IE8. The action will not wait till the file is downloaded, this has to be handled externally by the user.
This action requires AutoIt to be installed.
Install AutoIT from the location http://www.autoitscript.com/site/autoit/downloads/
Click on Download AutoIt v3.
Choose full installation.
After the set up is completed, AutoIT installation path should be set against the Qualitia's configfile key "AutoITPath"
Input Parameters:
Parameter Name | Parameter Description | Mandatory | Data Type |
---|
folderName | The path where the file is to be download. Please check Table 1 "Parameter Mandate" to validate in the situation where this parameter will be mandatory. In case the parameter Mandatory; the user should take care that the folder path exists. The action does not validates whether the folder exist | Yes | String |
Filename | The filename of the downloadable file, to be given incase the user requires to give specific name and not depend on the default name of the file. In case, the file already exist, similar window like below will appear. Such windows are not handled by the action. Incase, the user does not provide this data, the action will pick the default file name available while download. | No | String |
Example:
Example DownloadFile "C:/ProgramData" "Qualitia"
This action is tested on IE8, FF and Chrome. This action is not supported on IE9, IE10, and Google Chrome <16.