Skip to main content

FloatingRegionBySelector class

Platform: Selenium
Language: Python


The class constructor used to create an object to be passed to the method floating.

Import statement

from from applitools.selenium import Eyes, Target,from applitools.selenium.visual_grid import VisualGridRunner import FloatingRegionBySelector

FloatingRegionBySelector method

Syntax

region = FloatingRegionBySelector(by, value, bounds)

Parameters

by

Type: str

The 'by' part of a Selenium selector for an element which represents the inner region.

value

Type: str

The 'value' part of a Selenium selector for an element which represents the inner region.

bounds

Type: FloatingBounds

The amount the floating region can move in any direction. See FloatingBounds.

Return value

Type: FloatingRegionBySelector