Image Selector

Selector with coordinates or image path

These options can be used to define control slices of a specific control. You can determine coordinates or the image path. Remember to use the namespace Mobilize.QualityMate.Automation.Selectors

// The selector attribute with x and y coordinates
[Selector("#controlId", 50, 50)]
public IControlSlice SomeControlSlice { get; set; }

// The selector attribute with x1, y1, optional x2, optional y2 coordinates
// The optional coordinates are to define a rectangle inside the control
[Selector("#controlId", 50, 50, 100, 100)]
public IControlSlice SomeControlSlice { get; set; }

// The selector attribute with an image path
// The path could be absolute or relative
[Selector("#controlId", "..//controlSliceImage.jpg")]
public IControlSlice SomeControlSlice { get; set; }

Only works using the CSS Selector standards.

Last updated