VisualLocator class
Platform: Selenium 3Language: Python SDK:
Use the methods of this class to create visual locators that can be passed to Eyes.locate
to find regions in the viewport with the images defined by the visual locaters.
The return value of the methods of this class are objects of the class VisualLocatorSettings.
You can call one or more VisualLocatorSettings methods, chained in a fluent style
to add more locator names and to define how many locators to return.
Import statement
from applitools.core import VisualLocator
Methods
- name()
- Use this method to specify a single visual locator name.
- names()
- Use this method to specify a list of visual locator names.