ну держи, коли спрашиваешь
async setPriceUsingClick(value: number, initialValues: {min: number, max: number}) {
const lineStart = await this.line.getLocation();
const lineSize = await this.line.getSize();
const priceRange = initialValues.max - initialValues.min;
const pixelsPerOneValue = lineSize.width / priceRange;
const xCoordinate = (value - 1) * pixelsPerOneValue + lineStart.x;
await browser.performActions([
{
type: 'pointer',
id: 'mouse',
actions: [
{ type: 'pointerMove', duration: 0, x: Math.floor(xCoordinate) , y: Math.floor(lineStart.y) },
{ type: 'pointerDown', button: 0 },
{ type: 'pointerUp', button: 0 }
]
}
]);
}