MCPcopy Create free account
hub / github.com/angular/components / setValueByClick

Function setValueByClick

src/material/slider/slider.e2e.spec.ts:152–154  ·  view source on GitHub ↗

Clicks on the MatSlider at the coordinates corresponding to the given value.

(slider: webdriver.WebElement, value: number)

Source from the content-addressed store, hash-verified

150
151 /** Clicks on the MatSlider at the coordinates corresponding to the given value. */
152 async function setValueByClick(slider: webdriver.WebElement, value: number): Promise<void> {
153 return clickElementAtPoint(slider, await getCoordsForValue(slider, value));
154 }
155
156 /** Clicks on the MatSlider at the coordinates corresponding to the given value. */
157 async function slideToValue(

Callers 1

slider.e2e.spec.tsFile · 0.70

Calls 2

clickElementAtPointFunction · 0.85
getCoordsForValueFunction · 0.70

Tested by

no test coverage detected