mirror of
https://github.com/MontFerret/ferret.git
synced 2025-07-17 01:32:22 +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:
@ -10,21 +10,21 @@ import (
|
||||
)
|
||||
|
||||
// WAIT_ATTR waits until a target attribute's value appears
|
||||
// @param node (HTMLPage | HTMLDocument | HTMLElement) - Parent document.
|
||||
// @param attrNameOrSelector (String) - String of an attr name or CSS selector.
|
||||
// @param attrValueOrAttrName (String | Any) - Attr value or name.
|
||||
// @param attrValueOrTimeout (Any | Int, optional) - Attr value or an optional timeout.
|
||||
// @param timeout (Int, optional) - Optional timeout.
|
||||
// @param {HTMLPage | HTMLDocument | HTMLElement} node - Target html node.
|
||||
// @param {String} attrNameOrSelector - String of an attr name or CSS selector.
|
||||
// @param {String | Any} attrValueOrAttrName - Attr value or name.
|
||||
// @param {Any | Int} [attrValueOrTimeout] - Attr value or a timeout.
|
||||
// @param {Int} [timeout=5000] - Wait timeout.
|
||||
func WaitAttribute(ctx context.Context, args ...core.Value) (core.Value, error) {
|
||||
return waitAttributeWhen(ctx, args, drivers.WaitEventPresence)
|
||||
}
|
||||
|
||||
// WAIT_NO_ATTR waits until a target attribute's value disappears
|
||||
// @param node (HTMLPage | HTMLDocument | HTMLElement) - Parent document.
|
||||
// @param attrNameOrSelector (String) - String of an attr name or CSS selector.
|
||||
// @param attrValueOrAttrName (String | Any) - Attr value or name.
|
||||
// @param attrValueOrTimeout (Any | Int, optional) - Attr value or an optional timeout.
|
||||
// @param timeout (Int, optional) - Optional timeout.
|
||||
// @param {HTMLPage | HTMLDocument | HTMLElement} node - Target html node.
|
||||
// @param {String} attrNameOrSelector - String of an attr name or CSS selector.
|
||||
// @param {String | Any} attrValueOrAttrName - Attr value or name.
|
||||
// @param {Any | Int} [attrValueOrTimeout] - Attr value or wait timeout.
|
||||
// @param {Int} [timeout=5000] - Wait timeout.
|
||||
func WaitNoAttribute(ctx context.Context, args ...core.Value) (core.Value, error) {
|
||||
return waitAttributeWhen(ctx, args, drivers.WaitEventAbsence)
|
||||
}
|
||||
|
Reference in New Issue
Block a user