Documentation
¶
Overview ¶
generated by js/modules/k6/html/gen/gen_elements.go; DO NOT EDIT
Index ¶
- Constants
- type AnchorElement
- type AreaElement
- type Attribute
- type AudioElement
- type BaseElement
- type ButtonElement
- type CanvasElement
- type DataElement
- type DataListElement
- type DelElement
- type Element
- func (e Element) Attributes() map[string]Attribute
- func (e Element) ChildElementCount() int
- func (e Element) ChildNodes() []sobek.Value
- func (e Element) Children() []sobek.Value
- func (e Element) ClassList() []string
- func (e Element) ClassName() sobek.Value
- func (e Element) Contains(v sobek.Value) bool
- func (e Element) FirstChild() sobek.Value
- func (e Element) FirstElementChild() sobek.Value
- func (e Element) GetAttribute(name string) sobek.Value
- func (e Element) GetAttributeNode(name string) sobek.Value
- func (e Element) GetElementsByClassName(name string) []sobek.Value
- func (e Element) GetElementsByTagName(name string) []sobek.Value
- func (e Element) HasAttribute(name string) bool
- func (e Element) HasAttributes() bool
- func (e Element) HasChildNodes() bool
- func (e Element) Id() string
- func (e Element) InnerHTML() sobek.Value
- func (e Element) IsDefaultNamespace() bool
- func (e Element) IsEqualNode(v sobek.Value) bool
- func (e Element) IsSameNode(v sobek.Value) bool
- func (e Element) Lang() sobek.Value
- func (e Element) LastChild() sobek.Value
- func (e Element) LastElementChild() sobek.Value
- func (e Element) Matches(selector string) bool
- func (e Element) NamespaceURI() string
- func (e Element) NextElementSibling() sobek.Value
- func (e Element) NextSibling() sobek.Value
- func (e Element) NodeName() string
- func (e Element) NodeType() sobek.Value
- func (e Element) NodeValue() sobek.Value
- func (e Element) OwnerDocument() sobek.Value
- func (e Element) ParentElement() sobek.Value
- func (e Element) ParentNode() sobek.Value
- func (e Element) PreviousElementSibling() sobek.Value
- func (e Element) PreviousSibling() sobek.Value
- func (e Element) QuerySelector(selector string) sobek.Value
- func (e Element) QuerySelectorAll(selector string) []sobek.Value
- func (e Element) Selection() Selection
- func (e Element) TextContent() string
- func (e Element) ToString() sobek.Value
- type EmbedElement
- type FieldSetElement
- type FormElement
- func (f FormElement) AcceptCharset() string
- func (f FormElement) Action() string
- func (f FormElement) Autocomplete() string
- func (f FormElement) Elements() []sobek.Value
- func (f FormElement) Encoding() string
- func (f FormElement) Enctype() string
- func (f FormElement) Length() int
- func (f FormElement) Method() string
- func (f FormElement) Name() string
- func (f FormElement) NoValidate() bool
- func (f FormElement) Target() string
- type FormFieldElement
- func (f FormFieldElement) Form() sobek.Value
- func (f FormFieldElement) FormAction() string
- func (f FormFieldElement) FormEnctype() string
- func (f FormFieldElement) FormMethod() string
- func (f FormFieldElement) FormNoValidate() bool
- func (f FormFieldElement) FormTarget() string
- func (f FormFieldElement) Labels() []sobek.Value
- func (f FormFieldElement) Name() string
- type FormValue
- type HrefElement
- func (h HrefElement) AccessKey() string
- func (h HrefElement) Download() string
- func (h HrefElement) Hash() string
- func (h HrefElement) Host() string
- func (h HrefElement) Hostname() string
- func (h HrefElement) Href() string
- func (h HrefElement) HrefLang() string
- func (h HrefElement) Origin() string
- func (h HrefElement) Password() string
- func (h HrefElement) Pathname() string
- func (h HrefElement) Port() string
- func (h HrefElement) Protocol() string
- func (h HrefElement) ReferrerPolicy() string
- func (h HrefElement) Rel() string
- func (h HrefElement) RelList() []string
- func (h HrefElement) Search() string
- func (h HrefElement) Target() string
- func (h HrefElement) Text() string
- func (h HrefElement) ToString() string
- func (h HrefElement) Type() string
- func (h HrefElement) Username() string
- type IFrameElement
- type ImageElement
- func (i ImageElement) Alt() string
- func (i ImageElement) CrossOrigin() sobek.Value
- func (i ImageElement) CurrentSrc() string
- func (i ImageElement) Height() int
- func (i ImageElement) IsMap() bool
- func (i ImageElement) Name() string
- func (i ImageElement) ReferrerPolicy() string
- func (i ImageElement) Sizes() string
- func (i ImageElement) Src() string
- func (i ImageElement) Srcset() string
- func (i ImageElement) UseMap() string
- func (i ImageElement) Width() int
- type InputElement
- func (i InputElement) Accept() string
- func (i InputElement) AccessKey() string
- func (i InputElement) Alt() string
- func (i InputElement) Autocomplete() string
- func (i InputElement) Autofocus() bool
- func (i InputElement) Checked() bool
- func (i InputElement) DefaultChecked() bool
- func (i InputElement) DefaultValue() string
- func (i InputElement) DirName() string
- func (i InputElement) Disabled() bool
- func (i InputElement) Height() string
- func (i InputElement) List() sobek.Value
- func (i InputElement) Max() string
- func (i InputElement) MaxLength() int
- func (i InputElement) Min() string
- func (i InputElement) Multiple() bool
- func (i InputElement) Name() string
- func (i InputElement) Pattern() string
- func (i InputElement) Placeholder() string
- func (i InputElement) Readonly() bool
- func (i InputElement) Required() bool
- func (i InputElement) Size() int
- func (i InputElement) Src() string
- func (i InputElement) Step() string
- func (i InputElement) TabIndex() int
- func (i InputElement) Type() string
- func (i InputElement) Value() string
- func (i InputElement) Width() string
- type InsElement
- type KeygenElement
- func (k KeygenElement) Autofocus() bool
- func (k KeygenElement) Challenge() string
- func (k KeygenElement) Disabled() bool
- func (k KeygenElement) Form() sobek.Value
- func (k KeygenElement) Keytype() string
- func (k KeygenElement) Labels() []sobek.Value
- func (k KeygenElement) Name() string
- func (k KeygenElement) Type() string
- type LabelElement
- type LegendElement
- type LiElement
- type LinkElement
- func (l LinkElement) CrossOrigin() sobek.Value
- func (l LinkElement) Href() string
- func (l LinkElement) Hreflang() string
- func (l LinkElement) Media() string
- func (l LinkElement) ReferrerPolicy() string
- func (l LinkElement) Rel() string
- func (l LinkElement) RelList() []string
- func (l LinkElement) Target() string
- func (l LinkElement) Type() string
- type MapElement
- type MediaElement
- func (m MediaElement) Autoplay() bool
- func (m MediaElement) Controls() bool
- func (m MediaElement) CrossOrigin() sobek.Value
- func (m MediaElement) CurrentSrc() string
- func (m MediaElement) DefaultMuted() bool
- func (m MediaElement) Loop() bool
- func (m MediaElement) MediaGroup() string
- func (m MediaElement) Muted() bool
- func (m MediaElement) Preload() string
- func (m MediaElement) Src() string
- func (m MediaElement) TextTracks() []sobek.Value
- type MetaElement
- type MeterElement
- type ModElement
- type ModuleInstance
- type OListElement
- type ObjectElement
- func (o ObjectElement) Data() string
- func (o ObjectElement) Form() sobek.Value
- func (o ObjectElement) Height() string
- func (o ObjectElement) Name() string
- func (o ObjectElement) TabIndex() int
- func (o ObjectElement) Type() string
- func (o ObjectElement) TypeMustMatch() bool
- func (o ObjectElement) UseMap() string
- func (o ObjectElement) Width() string
- type OptGroupElement
- type OptionElement
- func (o OptionElement) DefaultSelected() bool
- func (o OptionElement) Disabled() bool
- func (o OptionElement) Form() sobek.Value
- func (o OptionElement) Index() int
- func (o OptionElement) Label() string
- func (o OptionElement) Selected() bool
- func (o OptionElement) Text() string
- func (o OptionElement) Value() string
- type OutputElement
- type ParamElement
- type PreElement
- type ProgressElement
- type QuoteElement
- type RootModule
- type ScriptElement
- func (s ScriptElement) Async() bool
- func (s ScriptElement) Charset() string
- func (s ScriptElement) CrossOrigin() string
- func (s ScriptElement) Defer() bool
- func (s ScriptElement) NoModule() bool
- func (s ScriptElement) Src() string
- func (s ScriptElement) Text() string
- func (s ScriptElement) Type() string
- type SelectElement
- func (s SelectElement) Autofocus() bool
- func (s SelectElement) Disabled() bool
- func (s SelectElement) Form() sobek.Value
- func (s SelectElement) Labels() []sobek.Value
- func (s SelectElement) Length() int
- func (s SelectElement) Multiple() bool
- func (s SelectElement) Name() string
- func (s SelectElement) Options() []sobek.Value
- func (s SelectElement) Required() bool
- func (s SelectElement) SelectedIndex() int
- func (s SelectElement) SelectedOptions() []sobek.Value
- func (s SelectElement) Size() int
- func (s SelectElement) TabIndex() int
- func (s SelectElement) Type() string
- func (s SelectElement) Value() string
- type Selection
- func (s Selection) Add(arg any) Selection
- func (s Selection) Attr(name string, def ...sobek.Value) sobek.Value
- func (s Selection) Children(def ...string) Selection
- func (s Selection) Closest(arg any) Selection
- func (s Selection) Contents() Selection
- func (s Selection) Data(def ...string) sobek.Value
- func (s Selection) Each(v sobek.Value) Selection
- func (s Selection) End() Selection
- func (s Selection) Eq(idx int) Selection
- func (s Selection) Filter(v sobek.Value) Selection
- func (s Selection) Find(arg any) Selection
- func (s Selection) First() Selection
- func (s Selection) Get(def ...int) sobek.Value
- func (s Selection) Has(arg any) Selection
- func (s Selection) Html() sobek.Value
- func (s Selection) Index(def ...sobek.Value) int
- func (s Selection) Is(v sobek.Value) bool
- func (s Selection) Last() Selection
- func (s Selection) Map(v sobek.Value) []sobek.Value
- func (s Selection) Next(def ...string) Selection
- func (s Selection) NextAll(def ...string) Selection
- func (s Selection) NextUntil(def ...sobek.Value) Selection
- func (s Selection) Not(v sobek.Value) Selection
- func (s Selection) Parent(def ...string) Selection
- func (s Selection) Parents(def ...string) Selection
- func (s Selection) ParentsUntil(def ...sobek.Value) Selection
- func (s Selection) Prev(def ...string) Selection
- func (s Selection) PrevAll(def ...string) Selection
- func (s Selection) PrevUntil(def ...sobek.Value) Selection
- func (s Selection) Serialize() string
- func (s Selection) SerializeArray() []FormValue
- func (s Selection) SerializeObject() map[string]sobek.Value
- func (s Selection) Siblings(def ...string) Selection
- func (s Selection) Size() int
- func (s Selection) Slice(start int, def ...int) Selection
- func (s Selection) Text() string
- func (s Selection) ToArray() []Selection
- func (s Selection) Val() sobek.Value
- type SourceElement
- type StyleElement
- type TableBodyElement
- type TableCellElement
- type TableColElement
- type TableDataCellElement
- type TableElement
- type TableFootElement
- type TableHeadElement
- type TableHeaderCellElement
- type TableRowElement
- type TableSectionElement
- type TextAreaElement
- func (t TextAreaElement) AccessKey() string
- func (t TextAreaElement) Autocapitalize() string
- func (t TextAreaElement) Autocomplete() string
- func (t TextAreaElement) Cols() int
- func (t TextAreaElement) DefaultValue() string
- func (t TextAreaElement) Form() sobek.Value
- func (t TextAreaElement) Labels() []sobek.Value
- func (t TextAreaElement) Length() int
- func (t TextAreaElement) MaxLength() int
- func (t TextAreaElement) Placeholder() string
- func (t TextAreaElement) ReadOnly() bool
- func (t TextAreaElement) Required() bool
- func (t TextAreaElement) Rows() int
- func (t TextAreaElement) TabIndex() int
- func (t TextAreaElement) Type() string
- func (t TextAreaElement) Value() string
- func (t TextAreaElement) Wrap() string
- type TimeElement
- type TitleElement
- type TrackElement
- type UListElement
- type VideoElement
Constants ¶
const ( ElementNode = 1 TextNode = 3 CommentNode = 8 DocumentNode = 9 DoctypeNode = 10 )
const ( AnchorTagName = "a" AreaTagName = "area" AudioTagName = "audio" BaseTagName = "base" ButtonTagName = "button" CanvasTagName = "canvas" DataTagName = "data" DataListTagName = "datalist" DelTagName = "del" EmbedTagName = "embed" FieldSetTagName = "fieldset" FormTagName = "form" IFrameTagName = "iframe" ImageTagName = "img" InputTagName = "input" InsTagName = "ins" KeygenTagName = "keygen" LabelTagName = "label" LegendTagName = "legend" LiTagName = "li" LinkTagName = "link" MapTagName = "map" MetaTagName = "meta" MeterTagName = "meter" ObjectTagName = "object" OListTagName = "ol" OptGroupTagName = "optgroup" OptionTagName = "option" OutputTagName = "output" ParamTagName = "param" PreTagName = "pre" ProgressTagName = "progress" QuoteTagName = "quote" ScriptTagName = "script" SelectTagName = "select" SourceTagName = "source" StyleTagName = "style" TableTagName = "table" TableHeadTagName = "thead" TableFootTagName = "tfoot" TableBodyTagName = "tbody" TableRowTagName = "tr" TableColTagName = "col" TableDataCellTagName = "td" TableHeaderCellTagName = "th" TextAreaTagName = "textarea" TimeTagName = "time" TitleTagName = "title" TrackTagName = "track" UListTagName = "ul" VideoTagName = "video" )
The code generator depends on the TagName constants being defined before the Element structs
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnchorElement ¶
type AnchorElement struct{ HrefElement }
type AreaElement ¶
type AreaElement struct{ HrefElement }
type Attribute ¶
type Attribute struct {
OwnerElement *Element `json:"owner_element"`
Name string `json:"name"`
Value string `json:"value"`
// contains filtered or unexported fields
}
func (Attribute) NamespaceURI ¶
type AudioElement ¶
type AudioElement struct{ MediaElement }
type BaseElement ¶
type BaseElement struct{ Element }
func (BaseElement) Href ¶
func (b BaseElement) Href() string
func (BaseElement) Target ¶
func (b BaseElement) Target() string
type ButtonElement ¶
type ButtonElement struct{ FormFieldElement }
func (ButtonElement) AccessKey ¶
func (b ButtonElement) AccessKey() string
func (ButtonElement) Autofocus ¶
func (b ButtonElement) Autofocus() bool
func (ButtonElement) Disabled ¶
func (b ButtonElement) Disabled() bool
func (ButtonElement) TabIndex ¶
func (b ButtonElement) TabIndex() int
func (ButtonElement) Type ¶
func (b ButtonElement) Type() string
func (ButtonElement) Value ¶
func (b ButtonElement) Value() string
type CanvasElement ¶
type CanvasElement struct{ Element }
func (CanvasElement) Height ¶
func (c CanvasElement) Height() int
func (CanvasElement) Width ¶
func (c CanvasElement) Width() int
type DataElement ¶
type DataElement struct{ Element }
func (DataElement) Value ¶
func (d DataElement) Value() string
type DataListElement ¶
type DataListElement struct{ Element }
func (DataListElement) Options ¶
func (d DataListElement) Options() []sobek.Value
type DelElement ¶
type DelElement struct{ ModElement }
type Element ¶
type Element struct {
// contains filtered or unexported fields
}
func (Element) Attributes ¶
func (Element) ChildElementCount ¶
func (Element) ChildNodes ¶
func (Element) FirstChild ¶
func (Element) FirstElementChild ¶
func (Element) GetElementsByClassName ¶
func (Element) GetElementsByTagName ¶
func (Element) HasAttribute ¶
func (Element) HasAttributes ¶
func (Element) HasChildNodes ¶
func (Element) IsDefaultNamespace ¶
func (Element) LastElementChild ¶
func (Element) NamespaceURI ¶
func (Element) NextElementSibling ¶
func (Element) NextSibling ¶
func (Element) OwnerDocument ¶
func (Element) ParentElement ¶
func (Element) ParentNode ¶
func (Element) PreviousElementSibling ¶
func (Element) PreviousSibling ¶
func (Element) Selection ¶
Selection returns a Selection object based on the current Element.
This function is used to create a Selection object that represents the same HTML content as the Element. It is useful for performing operations or manipulations on the HTML content within the scope of this Element.
Example: sel := element.Selection()
func (Element) TextContent ¶
type EmbedElement ¶
type EmbedElement struct{ Element }
func (EmbedElement) Height ¶
func (e EmbedElement) Height() string
func (EmbedElement) Src ¶
func (e EmbedElement) Src() string
func (EmbedElement) Type ¶
func (e EmbedElement) Type() string
func (EmbedElement) Width ¶
func (e EmbedElement) Width() string
type FieldSetElement ¶
type FieldSetElement struct{ Element }
func (FieldSetElement) Disabled ¶
func (f FieldSetElement) Disabled() bool
func (FieldSetElement) Elements ¶
func (f FieldSetElement) Elements() []sobek.Value
func (FieldSetElement) Form ¶
func (f FieldSetElement) Form() sobek.Value
func (FieldSetElement) Name ¶
func (f FieldSetElement) Name() string
func (FieldSetElement) Type ¶
func (f FieldSetElement) Type() string
func (FieldSetElement) Validity ¶
func (f FieldSetElement) Validity() sobek.Value
type FormElement ¶
type FormElement struct{ Element }
func (FormElement) AcceptCharset ¶
func (f FormElement) AcceptCharset() string
func (FormElement) Action ¶
func (f FormElement) Action() string
func (FormElement) Autocomplete ¶
func (f FormElement) Autocomplete() string
func (FormElement) Elements ¶
func (f FormElement) Elements() []sobek.Value
func (FormElement) Encoding ¶
func (f FormElement) Encoding() string
func (FormElement) Enctype ¶
func (f FormElement) Enctype() string
func (FormElement) Length ¶
func (f FormElement) Length() int
func (FormElement) Method ¶
func (f FormElement) Method() string
func (FormElement) Name ¶
func (f FormElement) Name() string
func (FormElement) NoValidate ¶
func (f FormElement) NoValidate() bool
func (FormElement) Target ¶
func (f FormElement) Target() string
type FormFieldElement ¶
type FormFieldElement struct{ Element }
func (FormFieldElement) Form ¶
func (f FormFieldElement) Form() sobek.Value
func (FormFieldElement) FormAction ¶
func (f FormFieldElement) FormAction() string
func (FormFieldElement) FormEnctype ¶
func (f FormFieldElement) FormEnctype() string
func (FormFieldElement) FormMethod ¶
func (f FormFieldElement) FormMethod() string
func (FormFieldElement) FormNoValidate ¶
func (f FormFieldElement) FormNoValidate() bool
func (FormFieldElement) FormTarget ¶
func (f FormFieldElement) FormTarget() string
func (FormFieldElement) Labels ¶
func (f FormFieldElement) Labels() []sobek.Value
func (FormFieldElement) Name ¶
func (f FormFieldElement) Name() string
type HrefElement ¶
type HrefElement struct{ Element }
func (HrefElement) AccessKey ¶
func (h HrefElement) AccessKey() string
func (HrefElement) Download ¶
func (h HrefElement) Download() string
func (HrefElement) Hash ¶
func (h HrefElement) Hash() string
func (HrefElement) Host ¶
func (h HrefElement) Host() string
func (HrefElement) Hostname ¶
func (h HrefElement) Hostname() string
func (HrefElement) Href ¶
func (h HrefElement) Href() string
func (HrefElement) HrefLang ¶
func (h HrefElement) HrefLang() string
func (HrefElement) Origin ¶
func (h HrefElement) Origin() string
func (HrefElement) Password ¶
func (h HrefElement) Password() string
func (HrefElement) Pathname ¶
func (h HrefElement) Pathname() string
func (HrefElement) Port ¶
func (h HrefElement) Port() string
func (HrefElement) Protocol ¶
func (h HrefElement) Protocol() string
func (HrefElement) ReferrerPolicy ¶
func (h HrefElement) ReferrerPolicy() string
func (HrefElement) Rel ¶
func (h HrefElement) Rel() string
func (HrefElement) RelList ¶
func (h HrefElement) RelList() []string
func (HrefElement) Search ¶
func (h HrefElement) Search() string
func (HrefElement) Target ¶
func (h HrefElement) Target() string
func (HrefElement) Text ¶
func (h HrefElement) Text() string
func (HrefElement) ToString ¶
func (h HrefElement) ToString() string
func (HrefElement) Type ¶
func (h HrefElement) Type() string
func (HrefElement) Username ¶
func (h HrefElement) Username() string
type IFrameElement ¶
type IFrameElement struct{ Element }
func (IFrameElement) Allowfullscreen ¶
func (i IFrameElement) Allowfullscreen() bool
func (IFrameElement) Height ¶
func (i IFrameElement) Height() string
func (IFrameElement) Name ¶
func (i IFrameElement) Name() string
func (IFrameElement) ReferrerPolicy ¶
func (i IFrameElement) ReferrerPolicy() string
func (IFrameElement) Src ¶
func (i IFrameElement) Src() string
func (IFrameElement) Width ¶
func (i IFrameElement) Width() string
type ImageElement ¶
type ImageElement struct{ Element }
func (ImageElement) Alt ¶
func (i ImageElement) Alt() string
func (ImageElement) CrossOrigin ¶
func (i ImageElement) CrossOrigin() sobek.Value
func (ImageElement) CurrentSrc ¶
func (i ImageElement) CurrentSrc() string
func (ImageElement) Height ¶
func (i ImageElement) Height() int
func (ImageElement) IsMap ¶
func (i ImageElement) IsMap() bool
func (ImageElement) Name ¶
func (i ImageElement) Name() string
func (ImageElement) ReferrerPolicy ¶
func (i ImageElement) ReferrerPolicy() string
func (ImageElement) Sizes ¶
func (i ImageElement) Sizes() string
func (ImageElement) Src ¶
func (i ImageElement) Src() string
func (ImageElement) Srcset ¶
func (i ImageElement) Srcset() string
func (ImageElement) UseMap ¶
func (i ImageElement) UseMap() string
func (ImageElement) Width ¶
func (i ImageElement) Width() int
type InputElement ¶
type InputElement struct{ FormFieldElement }
func (InputElement) Accept ¶
func (i InputElement) Accept() string
func (InputElement) AccessKey ¶
func (i InputElement) AccessKey() string
func (InputElement) Alt ¶
func (i InputElement) Alt() string
func (InputElement) Autocomplete ¶
func (i InputElement) Autocomplete() string
func (InputElement) Autofocus ¶
func (i InputElement) Autofocus() bool
func (InputElement) Checked ¶
func (i InputElement) Checked() bool
func (InputElement) DefaultChecked ¶
func (i InputElement) DefaultChecked() bool
func (InputElement) DefaultValue ¶
func (i InputElement) DefaultValue() string
func (InputElement) DirName ¶
func (i InputElement) DirName() string
func (InputElement) Disabled ¶
func (i InputElement) Disabled() bool
func (InputElement) Height ¶
func (i InputElement) Height() string
func (InputElement) List ¶
func (i InputElement) List() sobek.Value
func (InputElement) Max ¶
func (i InputElement) Max() string
func (InputElement) MaxLength ¶
func (i InputElement) MaxLength() int
func (InputElement) Min ¶
func (i InputElement) Min() string
func (InputElement) Multiple ¶
func (i InputElement) Multiple() bool
func (InputElement) Name ¶
func (i InputElement) Name() string
func (InputElement) Pattern ¶
func (i InputElement) Pattern() string
func (InputElement) Placeholder ¶
func (i InputElement) Placeholder() string
func (InputElement) Readonly ¶
func (i InputElement) Readonly() bool
func (InputElement) Required ¶
func (i InputElement) Required() bool
func (InputElement) Size ¶
func (i InputElement) Size() int
func (InputElement) Src ¶
func (i InputElement) Src() string
func (InputElement) Step ¶
func (i InputElement) Step() string
func (InputElement) TabIndex ¶
func (i InputElement) TabIndex() int
func (InputElement) Type ¶
func (i InputElement) Type() string
func (InputElement) Value ¶
func (i InputElement) Value() string
func (InputElement) Width ¶
func (i InputElement) Width() string
type InsElement ¶
type InsElement struct{ ModElement }
type KeygenElement ¶
type KeygenElement struct{ Element }
func (KeygenElement) Autofocus ¶
func (k KeygenElement) Autofocus() bool
func (KeygenElement) Challenge ¶
func (k KeygenElement) Challenge() string
func (KeygenElement) Disabled ¶
func (k KeygenElement) Disabled() bool
func (KeygenElement) Form ¶
func (k KeygenElement) Form() sobek.Value
func (KeygenElement) Keytype ¶
func (k KeygenElement) Keytype() string
func (KeygenElement) Labels ¶
func (k KeygenElement) Labels() []sobek.Value
func (KeygenElement) Name ¶
func (k KeygenElement) Name() string
func (KeygenElement) Type ¶
func (k KeygenElement) Type() string
type LabelElement ¶
type LabelElement struct{ Element }
func (LabelElement) Control ¶
func (l LabelElement) Control() sobek.Value
func (LabelElement) Form ¶
func (l LabelElement) Form() sobek.Value
func (LabelElement) HtmlFor ¶
func (l LabelElement) HtmlFor() string
type LegendElement ¶
type LegendElement struct{ Element }
func (LegendElement) AccessKey ¶
func (l LegendElement) AccessKey() string
func (LegendElement) Form ¶
func (l LegendElement) Form() sobek.Value
type LinkElement ¶
type LinkElement struct{ Element }
func (LinkElement) CrossOrigin ¶
func (l LinkElement) CrossOrigin() sobek.Value
func (LinkElement) Href ¶
func (l LinkElement) Href() string
func (LinkElement) Hreflang ¶
func (l LinkElement) Hreflang() string
func (LinkElement) Media ¶
func (l LinkElement) Media() string
func (LinkElement) ReferrerPolicy ¶
func (l LinkElement) ReferrerPolicy() string
func (LinkElement) Rel ¶
func (l LinkElement) Rel() string
func (LinkElement) RelList ¶
func (l LinkElement) RelList() []string
func (LinkElement) Target ¶
func (l LinkElement) Target() string
func (LinkElement) Type ¶
func (l LinkElement) Type() string
type MapElement ¶
type MapElement struct{ Element }
func (MapElement) Areas ¶
func (m MapElement) Areas() []sobek.Value
func (MapElement) Images ¶
func (m MapElement) Images() []sobek.Value
func (MapElement) Name ¶
func (m MapElement) Name() string
type MediaElement ¶
type MediaElement struct{ Element }
func (MediaElement) Autoplay ¶
func (m MediaElement) Autoplay() bool
func (MediaElement) Controls ¶
func (m MediaElement) Controls() bool
func (MediaElement) CrossOrigin ¶
func (m MediaElement) CrossOrigin() sobek.Value
func (MediaElement) CurrentSrc ¶
func (m MediaElement) CurrentSrc() string
func (MediaElement) DefaultMuted ¶
func (m MediaElement) DefaultMuted() bool
func (MediaElement) Loop ¶
func (m MediaElement) Loop() bool
func (MediaElement) MediaGroup ¶
func (m MediaElement) MediaGroup() string
func (MediaElement) Muted ¶
func (m MediaElement) Muted() bool
func (MediaElement) Preload ¶
func (m MediaElement) Preload() string
func (MediaElement) Src ¶
func (m MediaElement) Src() string
func (MediaElement) TextTracks ¶
func (m MediaElement) TextTracks() []sobek.Value
type MetaElement ¶
type MetaElement struct{ Element }
func (MetaElement) Content ¶
func (m MetaElement) Content() string
func (MetaElement) HttpEquiv ¶
func (m MetaElement) HttpEquiv() string
func (MetaElement) Name ¶
func (m MetaElement) Name() string
type MeterElement ¶
type MeterElement struct{ Element }
func (MeterElement) High ¶
func (m MeterElement) High() int
func (MeterElement) Labels ¶
func (m MeterElement) Labels() []sobek.Value
func (MeterElement) Low ¶
func (m MeterElement) Low() int
func (MeterElement) Max ¶
func (m MeterElement) Max() int
func (MeterElement) Min ¶
func (m MeterElement) Min() int
func (MeterElement) Optimum ¶
func (m MeterElement) Optimum() int
type ModElement ¶
type ModElement struct{ Element }
func (ModElement) Cite ¶
func (m ModElement) Cite() string
func (ModElement) Datetime ¶
func (m ModElement) Datetime() string
type ModuleInstance ¶
type ModuleInstance struct {
// contains filtered or unexported fields
}
ModuleInstance represents an instance of the HTML module for every VU.
func (*ModuleInstance) Exports ¶
func (mi *ModuleInstance) Exports() modules.Exports
Exports returns the JS values this module exports.
type OListElement ¶
type OListElement struct{ Element }
func (OListElement) Reversed ¶
func (o OListElement) Reversed() bool
func (OListElement) Start ¶
func (o OListElement) Start() int
func (OListElement) Type ¶
func (o OListElement) Type() string
type ObjectElement ¶
type ObjectElement struct{ Element }
func (ObjectElement) Data ¶
func (o ObjectElement) Data() string
func (ObjectElement) Form ¶
func (o ObjectElement) Form() sobek.Value
func (ObjectElement) Height ¶
func (o ObjectElement) Height() string
func (ObjectElement) Name ¶
func (o ObjectElement) Name() string
func (ObjectElement) TabIndex ¶
func (o ObjectElement) TabIndex() int
func (ObjectElement) Type ¶
func (o ObjectElement) Type() string
func (ObjectElement) TypeMustMatch ¶
func (o ObjectElement) TypeMustMatch() bool
func (ObjectElement) UseMap ¶
func (o ObjectElement) UseMap() string
func (ObjectElement) Width ¶
func (o ObjectElement) Width() string
type OptGroupElement ¶
type OptGroupElement struct{ Element }
func (OptGroupElement) Disabled ¶
func (o OptGroupElement) Disabled() bool
func (OptGroupElement) Label ¶
func (o OptGroupElement) Label() string
type OptionElement ¶
type OptionElement struct{ Element }
func (OptionElement) DefaultSelected ¶
func (o OptionElement) DefaultSelected() bool
func (OptionElement) Disabled ¶
func (o OptionElement) Disabled() bool
func (OptionElement) Form ¶
func (o OptionElement) Form() sobek.Value
func (OptionElement) Index ¶
func (o OptionElement) Index() int
func (OptionElement) Label ¶
func (o OptionElement) Label() string
func (OptionElement) Selected ¶
func (o OptionElement) Selected() bool
func (OptionElement) Text ¶
func (o OptionElement) Text() string
func (OptionElement) Value ¶
func (o OptionElement) Value() string
type OutputElement ¶
type OutputElement struct{ Element }
func (OutputElement) DefaultValue ¶
func (o OutputElement) DefaultValue() string
func (OutputElement) Form ¶
func (o OutputElement) Form() sobek.Value
func (OutputElement) HtmlFor ¶
func (o OutputElement) HtmlFor() string
func (OutputElement) Labels ¶
func (o OutputElement) Labels() []sobek.Value
func (OutputElement) Name ¶
func (o OutputElement) Name() string
func (OutputElement) Type ¶
func (o OutputElement) Type() string
func (OutputElement) Value ¶
func (o OutputElement) Value() string
type ParamElement ¶
type ParamElement struct{ Element }
func (ParamElement) Name ¶
func (p ParamElement) Name() string
func (ParamElement) Value ¶
func (p ParamElement) Value() string
type PreElement ¶
type PreElement struct{ Element }
func (PreElement) Name ¶
func (p PreElement) Name() string
func (PreElement) Value ¶
func (p PreElement) Value() string
type ProgressElement ¶
type ProgressElement struct{ Element }
func (ProgressElement) Labels ¶
func (p ProgressElement) Labels() []sobek.Value
func (ProgressElement) Max ¶
func (p ProgressElement) Max() float64
func (ProgressElement) Position ¶
func (p ProgressElement) Position() float64
func (ProgressElement) Value ¶
func (p ProgressElement) Value() float64
type QuoteElement ¶
type QuoteElement struct{ Element }
func (QuoteElement) Cite ¶
func (q QuoteElement) Cite() string
type RootModule ¶
type RootModule struct{}
RootModule is the global module object type. It is instantiated once per test run and will be used to create k6/html module instances for each VU.
func (*RootModule) NewModuleInstance ¶
func (r *RootModule) NewModuleInstance(vu modules.VU) modules.Instance
NewModuleInstance returns an HTML module instance for each VU.
type ScriptElement ¶
type ScriptElement struct{ Element }
func (ScriptElement) Async ¶
func (s ScriptElement) Async() bool
func (ScriptElement) Charset ¶
func (s ScriptElement) Charset() string
func (ScriptElement) CrossOrigin ¶
func (s ScriptElement) CrossOrigin() string
func (ScriptElement) Defer ¶
func (s ScriptElement) Defer() bool
func (ScriptElement) NoModule ¶
func (s ScriptElement) NoModule() bool
func (ScriptElement) Src ¶
func (s ScriptElement) Src() string
func (ScriptElement) Text ¶
func (s ScriptElement) Text() string
func (ScriptElement) Type ¶
func (s ScriptElement) Type() string
type SelectElement ¶
type SelectElement struct{ Element }
func (SelectElement) Autofocus ¶
func (s SelectElement) Autofocus() bool
func (SelectElement) Disabled ¶
func (s SelectElement) Disabled() bool
func (SelectElement) Form ¶
func (s SelectElement) Form() sobek.Value
func (SelectElement) Labels ¶
func (s SelectElement) Labels() []sobek.Value
func (SelectElement) Length ¶
func (s SelectElement) Length() int
func (SelectElement) Multiple ¶
func (s SelectElement) Multiple() bool
func (SelectElement) Name ¶
func (s SelectElement) Name() string
func (SelectElement) Options ¶
func (s SelectElement) Options() []sobek.Value
func (SelectElement) Required ¶
func (s SelectElement) Required() bool
func (SelectElement) SelectedIndex ¶
func (s SelectElement) SelectedIndex() int
func (SelectElement) SelectedOptions ¶
func (s SelectElement) SelectedOptions() []sobek.Value
func (SelectElement) Size ¶
func (s SelectElement) Size() int
func (SelectElement) TabIndex ¶
func (s SelectElement) TabIndex() int
func (SelectElement) Type ¶
func (s SelectElement) Type() string
func (SelectElement) Value ¶
func (s SelectElement) Value() string
type Selection ¶
type Selection struct {
URL string `json:"url"`
// contains filtered or unexported fields
}
func (Selection) Data ¶
Data return the value at the named data store for the first element in the set of matched elements. Mimics jquery.data
When 0 arguments: Read all data from attributes beginning with "data-". When 1 argument: Append argument to "data-" then find for a matching attribute
func (Selection) NextUntil ¶
NextUntil returns all following siblings of each element up to but not including the element matched by the selector. The arguments are: 1st argument is the selector. Either a selector string, a Selection object, or nil 2nd argument is the filter. Either a selector string or nil/undefined
func (Selection) ParentsUntil ¶
ParentsUntil returns the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector The arguments are: 1st argument is the selector. Either a selector string, a Selection object, or nil 2nd argument is the filter. Either a selector string or nil/undefined
func (Selection) PrevUntil ¶
PrevUntil returns all preceding siblings of each element up to but not including the element matched by the selector. The arguments are: 1st argument is the selector. Either a selector string, a Selection object, or nil 2nd argument is the filter. Either a selector string or nil/undefined
func (Selection) SerializeArray ¶
type SourceElement ¶
type SourceElement struct{ Element }
func (SourceElement) KeySystem ¶
func (s SourceElement) KeySystem() string
func (SourceElement) Media ¶
func (s SourceElement) Media() string
func (SourceElement) Sizes ¶
func (s SourceElement) Sizes() string
func (SourceElement) Src ¶
func (s SourceElement) Src() string
func (SourceElement) Srcset ¶
func (s SourceElement) Srcset() string
func (SourceElement) Type ¶
func (s SourceElement) Type() string
type StyleElement ¶
type StyleElement struct{ Element }
func (StyleElement) Media ¶
func (s StyleElement) Media() string
func (StyleElement) Type ¶
func (s StyleElement) Type() string
type TableBodyElement ¶
type TableBodyElement struct{ TableSectionElement }
type TableCellElement ¶
type TableCellElement struct{ Element }
func (TableCellElement) CellIndex ¶
func (t TableCellElement) CellIndex() int
func (TableCellElement) ColSpan ¶
func (t TableCellElement) ColSpan() int
func (TableCellElement) Headers ¶
func (t TableCellElement) Headers() string
func (TableCellElement) RowSpan ¶
func (t TableCellElement) RowSpan() int
type TableColElement ¶
type TableColElement struct{ Element }
func (TableColElement) Span ¶
func (t TableColElement) Span() int
type TableDataCellElement ¶
type TableDataCellElement struct{ TableCellElement }
type TableElement ¶
type TableElement struct{ Element }
func (TableElement) Caption ¶
func (t TableElement) Caption() sobek.Value
func (TableElement) Rows ¶
func (t TableElement) Rows() []sobek.Value
func (TableElement) Sortable ¶
func (t TableElement) Sortable() bool
func (TableElement) TBodies ¶
func (t TableElement) TBodies() []sobek.Value
func (TableElement) TFoot ¶
func (t TableElement) TFoot() sobek.Value
func (TableElement) THead ¶
func (t TableElement) THead() sobek.Value
type TableFootElement ¶
type TableFootElement struct{ TableSectionElement }
type TableHeadElement ¶
type TableHeadElement struct{ TableSectionElement }
type TableHeaderCellElement ¶
type TableHeaderCellElement struct{ TableCellElement }
func (TableHeaderCellElement) Abbr ¶
func (t TableHeaderCellElement) Abbr() string
func (TableHeaderCellElement) Scope ¶
func (t TableHeaderCellElement) Scope() string
func (TableHeaderCellElement) Sorted ¶
func (t TableHeaderCellElement) Sorted() bool
type TableRowElement ¶
type TableRowElement struct{ Element }
func (TableRowElement) Cells ¶
func (t TableRowElement) Cells() []sobek.Value
func (TableRowElement) RowIndex ¶
func (t TableRowElement) RowIndex() int
func (TableRowElement) SectionRowIndex ¶
func (t TableRowElement) SectionRowIndex() int
type TableSectionElement ¶
type TableSectionElement struct{ Element }
func (TableSectionElement) Rows ¶
func (t TableSectionElement) Rows() []sobek.Value
type TextAreaElement ¶
type TextAreaElement struct{ Element }
func (TextAreaElement) AccessKey ¶
func (t TextAreaElement) AccessKey() string
func (TextAreaElement) Autocapitalize ¶
func (t TextAreaElement) Autocapitalize() string
func (TextAreaElement) Autocomplete ¶
func (t TextAreaElement) Autocomplete() string
func (TextAreaElement) Cols ¶
func (t TextAreaElement) Cols() int
func (TextAreaElement) DefaultValue ¶
func (t TextAreaElement) DefaultValue() string
func (TextAreaElement) Form ¶
func (t TextAreaElement) Form() sobek.Value
func (TextAreaElement) Labels ¶
func (t TextAreaElement) Labels() []sobek.Value
func (TextAreaElement) Length ¶
func (t TextAreaElement) Length() int
func (TextAreaElement) MaxLength ¶
func (t TextAreaElement) MaxLength() int
func (TextAreaElement) Placeholder ¶
func (t TextAreaElement) Placeholder() string
func (TextAreaElement) ReadOnly ¶
func (t TextAreaElement) ReadOnly() bool
func (TextAreaElement) Required ¶
func (t TextAreaElement) Required() bool
func (TextAreaElement) Rows ¶
func (t TextAreaElement) Rows() int
func (TextAreaElement) TabIndex ¶
func (t TextAreaElement) TabIndex() int
func (TextAreaElement) Type ¶
func (t TextAreaElement) Type() string
func (TextAreaElement) Value ¶
func (t TextAreaElement) Value() string
func (TextAreaElement) Wrap ¶
func (t TextAreaElement) Wrap() string
type TimeElement ¶
type TimeElement struct{ Element }
func (TimeElement) Datetime ¶
func (t TimeElement) Datetime() string
type TitleElement ¶
type TitleElement struct{ Element }
func (TitleElement) Text ¶
func (t TitleElement) Text() string
type TrackElement ¶
type TrackElement struct{ Element }
func (TrackElement) Default ¶
func (t TrackElement) Default() bool
func (TrackElement) Kind ¶
func (t TrackElement) Kind() string
func (TrackElement) Label ¶
func (t TrackElement) Label() string
func (TrackElement) Src ¶
func (t TrackElement) Src() string
func (TrackElement) Srclang ¶
func (t TrackElement) Srclang() string
type UListElement ¶
type UListElement struct{ Element }
func (UListElement) Type ¶
func (u UListElement) Type() string
type VideoElement ¶
type VideoElement struct{ MediaElement }