SelenideElement setValue(string): 输入字符串
SelenideElement val():
t要附加到文本字段中的任何文本。
String val()
Get the “value” attribute of the element
Returns: attribute “value” value or null if attribute is missing
获取元素的“value”属性
返回: 属性“value”值,如果缺少属性,则为null
SelenideElement append(String text); 可追加value
Get the text of the element WITHOUT children.
Get the text code of the element with children.
It can be used to get the text of a hidden element.
Get the attribute of the element. Synonym for getAttribute(String)
attribute “name” value or null if attribute is missing
Get content of the pseudo-element
Params:
pseudoElementName – pseudo-element name of the element, “:before”, “:after”
Returns:
the content value or “none” if the content is missing
Select radio button
Params:
value – value of radio button to select
Returns:
selected “input type=radio” element
获取属性信息
Get the value of a given CSS property;
exisits() : Check if this element exists and visible.
isDisplayed: 没有等待时间
如果元素与给定条件匹配,则立即返回true。方法不等待!警告:此方法有助于实现crooks,但对于典型的ui测试不需要此方法。
Checks that given element meets all of given conditions.
返回element元素 有默认等待时间,可以加等待时间;
可以多条件同时使用;
$("#errorMessage").should(exist);
可以自定义等待时间