mirror of
https://github.com/MontFerret/ferret.git
synced 2025-07-13 01:20:35 +02:00
Feature/doc markup (#543)
* Added release notes * #509 fixedOCOD typo * Updated values * Updated comments * Changed stdlib docs format * Changed format of array in docs * Use 'any' instead of 'value' in docs * New format for optional params * Updated docs for testing package * Added namespace information
This commit is contained in:
@ -11,26 +11,20 @@ import (
|
||||
|
||||
// WAIT_CLASS waits for a class to appear on a given element.
|
||||
// Stops the execution until the navigation ends or operation times out.
|
||||
// @param node (HTMLPage | HTMLDocument | HTMLElement) - Target node.
|
||||
// @param selectorOrClass (String) - If document is passed, this param must represent an element selector.
|
||||
// Otherwise target class.
|
||||
// @param classOrTimeout (String|Int, optional) - If document is passed, this param must represent target class name.
|
||||
// Otherwise timeout.
|
||||
// @param timeout (Int, optional) - If document is passed, this param must represent timeout.
|
||||
// Otherwise not passed.
|
||||
// @param {HTMLPage | HTMLDocument | HTMLElement} node - Target html node.
|
||||
// @param {String} selectorOrClass - If document is passed, this param must represent an element selector. Otherwise target class.
|
||||
// @param {String | Int} [classOrTimeout] - If document is passed, this param must represent target class name. Otherwise timeout.
|
||||
// @param {Int} [timeout] - If document is passed, this param must represent timeout. Otherwise not passed.
|
||||
func WaitClass(ctx context.Context, args ...core.Value) (core.Value, error) {
|
||||
return waitClassWhen(ctx, args, drivers.WaitEventPresence)
|
||||
}
|
||||
|
||||
// WAIT_NO_CLASS waits for a class to disappear on a given element.
|
||||
// Stops the execution until the navigation ends or operation times out.
|
||||
// @param node (HTMLPage | HTMLDocument | HTMLElement) - Target node.
|
||||
// @param selectorOrClass (String) - If document is passed, this param must represent an element selector.
|
||||
// Otherwise target class.
|
||||
// @param classOrTimeout (String|Int, optional) - If document is passed, this param must represent target class name.
|
||||
// Otherwise timeout.
|
||||
// @param timeout (Int, optional) - If document is passed, this param must represent timeout.
|
||||
// Otherwise not passed.
|
||||
// @param {HTMLPage | HTMLDocument | HTMLElement} node - Target html node.
|
||||
// @param {String} selectorOrClass - If document is passed, this param must represent an element selector. Otherwise target class.
|
||||
// @param {String | Int} [classOrTimeout] - If document is passed, this param must represent target class name. Otherwise timeout.
|
||||
// @param {Int} [timeout] - If document is passed, this param must represent timeout. Otherwise not passed.
|
||||
func WaitNoClass(ctx context.Context, args ...core.Value) (core.Value, error) {
|
||||
return waitClassWhen(ctx, args, drivers.WaitEventAbsence)
|
||||
}
|
||||
|
Reference in New Issue
Block a user