Skip to content

Commit ada9315

Browse files
committed
update
1 parent 0922a49 commit ada9315

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

types/core/engine/command/actions.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ export class Actions {
2525
* @returns {SeleniumActions} The current Selenium Actions builder object for chaining browser actions.
2626
* @example
2727
* // Example of using the actions builder to perform a drag-and-drop operation:
28-
* const elementToDrag = await commands.action.getElementByCss('.draggable');
29-
* const dropTarget = await commands.action.getElementByCss('.drop-target');
28+
* const elementToDrag = await commands.element.getByCss('.draggable');
29+
* const dropTarget = await commands.element.getByCss('.drop-target');
3030
* await commands.action.getAction()
3131
* .dragAndDrop(elementToDrag, dropTarget)
3232
* .perform();

types/core/engine/command/measure.d.ts

+6-3
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,9 @@ export class Measure {
174174
stop(testedStartUrl: string): Promise<any>;
175175
/**
176176
* Adds a custom metric to the current measurement result.
177-
* This method should be called after a measurement has started and before it has stopped.
178-
*
177+
* The metric will be attached to the latest tested page, meaming
178+
* you need to have measured a URL and stopped the measurement before
179+
* you add the metric.
179180
* @param {string} name - The name of the metric.
180181
* @param {*} value - The value of the metric.
181182
* @throws {Error} Throws an error if called before a measurement cycle has started.
@@ -184,7 +185,9 @@ export class Measure {
184185
/**
185186
* Adds multiple custom metrics to the current measurement result.
186187
* This method accepts an object containing multiple key-value pairs representing different metrics.
187-
* Similar to `add`, it should be used within an active measurement cycle.
188+
* The metric will be attached to the latest tested page, meaming
189+
* you need to have measured a URL and stopped the measurement before
190+
* you add the metric.
188191
*
189192
* @param {Object} object - An object containing key-value pairs of metrics to add.
190193
* @throws {Error} Throws an error if called before a measurement cycle has started.

types/core/engine/command/measure.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

0 commit comments

Comments
 (0)