diff --git a/html5.html b/html5.html index 0db91f66..b7c8572a 100644 --- a/html5.html +++ b/html5.html @@ -65,13 +65,14 @@

Tag button

Button

-

W3C: https://www.w3schools.com/tags/tag_a.asp

-

MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a

-

click() - Click on link

-

getText() - Get link's text

-

getRef() - Get link's "ref" attribute

-

getUrl() - Get link's "ref" attribute as URL

-

getAlt() - Get link's "alt" attribute

+

W3C: https://www.w3schools.com/tags/tag_button.asp

+

W3C: https://www.w3schools.com/tags/tag_input.asp

+

MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button

+

MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/button

+

click() - Click the button

+

getText() - Get button text

+

is() - Assert action

+

assertThat() - Assert action

@@ -81,13 +82,15 @@

Link element

Link

-

W3C: https://www.w3schools.com/tags/tag_a.asp

-

MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a

-

click() - Click on link

-

getText() - Get link's text

-

ref() - Get link's "ref" attribute

-

url() - Get link's "ref" attribute as URL

-

alt() - Get link's "alt" attribute

+

W3C: https://www.w3schools.com/tags/tag_link.asp

+

MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link

+

click() - Follow the link

+

getText() - Returns the link text

+

ref() - Returns the reference

+

url() - Returns the URL

+

alt() - Returns the alternate text

+

is() - Returns object for work with assertions

+

assertThat() - Returns object for work with assertions

@@ -111,6 +114,7 @@

Textfield

label() - Returns label element associated with textfield

getText() - Get textfield's text

+
@@ -124,13 +128,16 @@

Textarea

Multi-line text input

W3C: https://www.w3schools.com/tags/tag_textarea.asp

MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea

-

clear() - Clear text in textarea

-

input(value) - Set textarea with value text. Clear previously entered text

-

inputLines(value) - Clear textarea and Input several lines of text in textarea

-

addNewLine(value) - Add text in textarea from new line (without clearing previous)

-

getLines() - Get lines of text in textarea

-

label() - Returns label element assosiated with textarea

-

focus() - Just focus cursor to textfield

+

setLines(String... lines) - sets lines (text)

+

getLines() - returns lines (text) from the text area

+

rows() - returns value of rows attribute

+

cols() - returns value of cols attribute

+

minlength() - returns value of minlength attribute

+

maxlength() - returns value of maxlength attribute

+

placeholder() - returns value of placeholder attribute

+

addNewLine(String line) - add line to the already existing

+

is() - returns object for work with assertions

+

assertThat() - returns object for work with assertions

@@ -146,10 +153,8 @@

Input FileUpload

Let the user choose one or more files from their device storage

W3C: https://www.w3schools.com/jsref/dom_obj_fileupload.asp

MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input/file

-

setValueAction(value) - Clear and input value

-

focus() - Just focus cursor to uploader

-

clear() - Clear value in uploader

-

label() - Returns label element assosiated with uploader

+

uploadFile(String) - Select file to upload

+
@@ -163,9 +168,13 @@

Image

Image in an HTML page

W3C: https://www.w3schools.com/tags/tag_img.asp

MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img

-

getAlt() - Get image's "alt" attribute

-

getSource() - Get image source

-

click() - Click on the element

+

click() - click on the image

+

src() - get value of src attribute

+

height() - get value of height attribute

+

width() - get value of width attribute

+

alt() - get value of alt attribute

+

is() - method for building assertions

+

assertThat() - method for building

@@ -188,12 +197,8 @@

Selector

Drop-down list

W3C: https://www.w3schools.com/tags/tag_select.asp

MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select

-

select(value) - Select Element with name from list

-

getSelected() - Get name of the selected Element

-

getSelectedIndex() - Get index of the selected Element

-

isSelectedAction(value) - Verifies selected text with value

-

isHidden() - Check is Element hidden

-

waitDisplayed() - Waits while Element becomes visible

+

select(value) - Select dropdown by value/index

+

selected() - Get selected dropdown value

@@ -213,13 +218,10 @@

Multiple selector

List with multiple options can be selected at once

W3C: https://www.w3schools.com/tags/att_select_multiple.asp

MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select

-

clearAction() - Clear options

-

select(values) - Select multiple values

-

uncheck(values) - Uncheck only specified options

-

areSelected() - Get names of checked options

-

isHidden() - Check is Element hidden

-

waitSelected(values) - Wait while all options with values selected

-

areDeselected() - Get names of unchecked options

+

check(String/String.../Enum.../int...) - Select values in multi dropdown

+

uncheck(String.../Enum.../int...) - Unselect values in multi dropdown

+

selected() - Get selected value by default

+

checked() - Get selected values

@@ -239,11 +241,10 @@

Multi dropdown

List with multiple dropdown options

W3C: https://www.w3schools.com/tags/att_select_multiple.asp

MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select

-

expand() - Expand DropDown

-

close() - Close DropDown

-

getTextAction() - Get first selected option

-

select(values) - Select options with values from list

-

clear() - Deselect all options

+

check(String/String.../Enum.../int...) - Select values in multi dropdown

+

uncheck(String.../Enum.../int...) - Unselect values in multi dropdown

+

selected() - Get selected value by default

+

checked() - Get selected values

@@ -265,10 +266,11 @@

Datalist

List of pre-defined options for input

W3C: https://www.w3schools.com/tags/tag_datalist.asp

MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist

-

expand() - Expand DropDown

-

getValue() - Get value of Element

-

clearAction() - Clear value

-

input(value) - Input text in textfield

+

select(String/Enum/int) - Select datalist option by value or index

+

selected() - Get selected option value

+

values() - Get all option values from datalist

+

listEnabled() - Return list of values of enabled options

+

listDisabled() - Return list of values of disabled options

@@ -282,9 +284,11 @@

Checkbox

MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox

click() - Click on checkbox

check() - Set checkbox checked

+

check(String) - Set to checked on "true" (case insensitive) or unchecked otherwise

uncheck() - Set checkbox unchecked

-

isChecked() - Verify is checkbox checked

-

getValue() - Get value of Element

+

isSelected() - Verify is checkbox checked

+

assertThat() - Assert action checkbox

+

is() - Assert action checkbox

@@ -308,13 +312,23 @@

Checkbox

Checklist

W3C: https://www.w3schools.com/tags/att_input_type_checkbox.asp

MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox

-

check(String... values) - Check only specified values. All other values make unchecked

-

check(TEnum... values) - Same as above for values in Enum

-

check(int... values) - Same as above but for indexes

-

uncheck(int... indexes) - Uncheck only specified values. All other values make unchecked

-

uncheck(TEnum... values) - Same as above for values in Enum

-

uncheck(int... values) - Same as above but for indexes

-

List checked() - List of checked values

+

check(String... values) - Check only specified values. All other values make unchecked

+

check(TEnum... values) - Same as above for values in Enum

+

check(int... values) - Same as above but for indexes

+

uncheck(int... indexes) - Uncheck only specified values. All other values make unchecked

+

uncheck(TEnum... values) - Same as above for values in Enum

+

uncheck(int... values) - Same as above but for indexes

+

uncheckAll() - Uncheck all checkboxes from checklist

+

checkAll() - Check all checkboxes from checklist

+

checked() - Get selected checkbox values

+

values() - Get checklist values

+

listEnabled() - Get enabled checkboxes

+

listDisabled() - Get disabled checkboxes

+

size() - Get checklist size

+

is() - Get select assert

+

assertThat() - Get select assert

+

has() - Get select assert

+

selected() - Get selected checkbox

@@ -335,9 +349,8 @@

Checklist

Radio

W3C: https://www.w3schools.com/tags/att_input_type_radio.asp

MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input/radio

-

select(value) - Select Element with value from list

-

getSelected() - Get name of the selected Element

-

isSelectedAction(value) - Verify checked value

+

select(String/int/Enum) - Select radiobutton by value/index

+

selected() - Get selected radiobutton value

@@ -351,10 +364,10 @@

Input type color

Defines a color picker

W3C: https://www.w3schools.com/tags/att_input_type_color.asp

MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/color

-

click() - Click on input

-

setValue(value) - Set value to Element

-

getValue - Get value of Element

-

ok() - Click on ok button

+

color() - Returns color code in hexadecimal format ("#rrggbb")

+

setColor(String) - Set color from string hex representation ("#rrggbb")

+

is() - Assert acton color

+

assertThat() - Assert acton

@@ -382,7 +395,13 @@

Input type color

Input type range

W3C: https://www.w3schools.com/tags/att_input_type_range.asp

MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/range

-

sendKeys(value) - Specify value to send

+

setVolume(int volume) - Sets the value

+

volume() - Returns the value

+

max() - Returns the max value

+

min() - Returns the min value

+

step() - Returns the step value

+

is() - Returns object for work with assertions

+

assertThat() - Returns object for work with assertions

@@ -396,7 +415,10 @@

Progress

Represents the progress of a task

W3C: https://www.w3schools.com/tags/tag_progress.asp

MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress

-

getValue() - Get value of Element

+

value() - Get current progress value

+

max() - Get progressbar maximum possible value

+

is() - Various assert actions for Progress bar

+

assertThat() - Various assert actions for Progress bar

@@ -410,8 +432,12 @@

Progress

Input type date

W3C: https://www.w3schools.com/tags/att_input_type_date.asp

MDN: https://developer.mozilla.org/ru/docs/Web/HTML/Element/Input/date

-

setValue(value) - Set value to Element

-

getValue() - Get value from Element

+

setDateTime(string value) - Sets a date or time

+

value() - Returns the set date or time

+

min() - Gets attribute with name min

+

max() - Gets attribute with name max

+

is() - Assertion

+

assertThat() - Assertion

@@ -424,8 +450,12 @@

Input type date

Input type month

W3C: https://www.w3schools.com/tags/att_input_type_month.asp

MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/month

-

setValue(value) - Set value to Element

-

getValue() - Get value from Element

+

setDateTime(string value) - Sets a date or time

+

value() - Returns the set date or time

+

min() - Gets attribute with name min

+

max() - Gets attribute with name max

+

is() - Assertion

+

assertThat() - Assertion

@@ -438,8 +468,12 @@

Input type month

Input type datetime-local

W3C: https://www.w3schools.com/tags/att_input_type_datetime-local.asp

MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input/datetime-local

-

setValue(value) - Set value to Element

-

getValue() - Get value from Element

+

setDateTime(string value) - Sets a date or time

+

value() - Returns the set date or time

+

min() - Gets attribute with name min

+

max() - Gets attribute with name max

+

is() - Assertion

+

assertThat() - Assertion

@@ -452,8 +486,12 @@

Input type datetime-local

Input type time

W3C: https://www.w3schools.com/tags/att_input_type_time.asp

MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/time

-

setValue(value) - Set value to Element

-

getValue() - Get value from Element

+

setDateTime(string value) - Sets a date or time

+

value() - Returns the set date or time

+

min() - Gets attribute with name min

+

max() - Gets attribute with name max

+

is() - Assertion

+

assertThat() - Assertion

@@ -466,8 +504,12 @@

Input type time

Input type week

W3C: https://www.w3schools.com/tags/att_input_type_week.asp

MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/week

-

setValue(value) - Set value to Element

-

getValue() - Get value from Element

+

setDateTime(string value) - Sets a date or time

+

value() - Returns the set date or time

+

min() - Gets attribute with name min

+

max() - Gets attribute with name max

+

is() - Assertion

+

assertThat() - Assertion

@@ -480,8 +522,14 @@

Input type week

Input type number

W3C: https://www.w3schools.com/tags/att_input_type_number.asp

MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/number

-

setValue(value) - Set value to Element

-

getValue() - Get value from Element

+

placeholder() - Returns the placeholder text

+

value() - Returns the set date or time

+

min() - Gets attribute with name min

+

max() - Gets attribute with name max

+

step() - Returns the step value

+

setNumber(String) - Sets the value

+

is() - Assertion

+

assertThat() - Assertion