The object is not always displayed

Relevant for: GUI tests and scripted GUI components

If the object is displayed only in certain situations or when certain conditions are met, try one of the following:

  • Insert a conditional statement before the step containing the object.

    For example:

    If  Browser("Advantage Shopping").Page("Advantage Shopping").WebEdit("username").Exist
        Browser("Advantage Shopping").Page("Advantage Shopping").WebEdit("username").Set "tutorial"
    End If

  • Set the step containing the object as an optional step.

    For details, see Optional steps.