Get Browser Name
Last updated
Was this helpful?
Last updated
Was this helpful?
This is pre-built Action located under the @Browser Element Name. It instructs the Avo Assure Client to fetch the browser name on which the test case is being debugged or executed. The Get Browser Name Action retrieves the name of the current browser session. This is particularly useful when running tests across multiple browsers.
Input: N/A
Output: <Dynamic Variable>;<Dynamic Variable>(Optional)
When testing web applications, it's often important to validate or log the specific browser being used for the test, especially when running cross-browser tests. The Get Browser Name Action in Avo Assure helps in determining which browser is currently being used in an automated test session. This can be useful in scenarios where different browser Results need to be validated.
You want to retrieve the browser name being used to confirm it's the correct one (e.g., Chrome, Firefox, Edge) before performing further browser-specific actions or validations.
The test should retrieve the name of the browser (in this case, Chrome) and use that information for logging or decision-making in the test script.
The Get Browser Name Action is retrieving the name of current browser and save it in the {result} output variable, which can be utilized for display or other purposes.