File tree 3 files changed +9
-6
lines changed
types/core/engine/command
3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ export class Actions {
25
25
* @returns {SeleniumActions } The current Selenium Actions builder object for chaining browser actions.
26
26
* @example
27
27
* // 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');
30
30
* await commands.action.getAction()
31
31
* .dragAndDrop(elementToDrag, dropTarget)
32
32
* .perform();
Original file line number Diff line number Diff line change @@ -174,8 +174,9 @@ export class Measure {
174
174
stop ( testedStartUrl : string ) : Promise < any > ;
175
175
/**
176
176
* 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.
179
180
* @param {string } name - The name of the metric.
180
181
* @param {* } value - The value of the metric.
181
182
* @throws {Error } Throws an error if called before a measurement cycle has started.
@@ -184,7 +185,9 @@ export class Measure {
184
185
/**
185
186
* Adds multiple custom metrics to the current measurement result.
186
187
* 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.
188
191
*
189
192
* @param {Object } object - An object containing key-value pairs of metrics to add.
190
193
* @throws {Error } Throws an error if called before a measurement cycle has started.
Original file line number Diff line number Diff line change
You can’t perform that action at this time.
0 commit comments