popup method

Class: EspressoCheckSettingsPlatform: EspressoLanguage: Java SDK:

Use this method to execute a checkpoint of the current poup.

Syntax


eyes.check(Target.window().popup())

Parameters

This method does not take any parameters.

Return value

Type: <a class ='link' href='/Content/api/eyes-sdk/index-gen/class-checksettings-espresso-java.htm'>EspressoCheckSettings</a>

Remarks

Handling popups and dialogs

If your checkpoints includes a popup or dialog then the way you create the checkpoint depends on which layers you want to capture as illustrated in the code below:


eyes.check("viewport only", Target.window()); 
eyes.check("dialog only",Target.window().dialog()); 
eyes.check("popup only",Target.window().popup());
eyes.check("viewport and popup or dialog",Target.window().includeAllLayers()); 

The example illustrate the behavior with a Target.window target, but they apply to a Target.region, Target.googleMap or Target.fragment as well.