Add Logout steps using AI Inspection

This exercise describes how to add Logout steps through AI Inspection.

Add steps to log out

This procedure describes how to use AI Inspection to add steps that log out of your Advantage Online Shopping account.

Do the following:

  1. In UFT One, open the Logout action, either from the Solution Explorer, or the canvas.

  2. In the AI Inspection window, click the Delay button to increase the delay so that you can prepare the application for object detection.

    This is particularly helpful when you want to click a menu item that is displayed by hovering over or clicking an object.

  3. Go to the inspected application and click the Profile icon to display the Sign out menu item.

    The AI Inspection window automatically inspects the new page.

  4. Return to the AI Inspection window. You can see that the Sign out menu item is inspected. Click the Sign out menu item and then click Add to test to add the corresponding step to the Editor.

Back to top

View your test steps in the Editor View

The entire action consists of two steps, and should look like this:

AIUtil("profile", micAnyText, micFromBottom, 1).Click
AIUtil.FindTextBlock("sign out").Click

Back to top

Next steps: