Skip to main content

FloatingRegionByElement class

Platform: Selenium
Language: Python


Used to create a region based on a webelement, to be passed to the method floating.

Import statement

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

FloatingRegionByElement method

Syntax

region = FloatingRegionByElement(element, bounds)

Parameters

element

Type: AnyWebElement

A WebElement whose position and size is used to define the inner region area.

bounds

Type: FloatingBounds

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

Return value

Type: FloatingRegionByElement