Class LocatorAssertions.HasTextOptions
java.lang.Object
com.microsoft.playwright.assertions.LocatorAssertions.HasTextOptions
- Enclosing interface:
LocatorAssertions
-
Field Summary
FieldsModifier and TypeFieldDescriptionWhether to perform case-insensitive match.Time to retry the assertion for in milliseconds.Whether to useelement.innerTextinstead ofelement.textContentwhen retrieving DOM node text. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetIgnoreCase(boolean ignoreCase) Whether to perform case-insensitive match.setTimeout(double timeout) Time to retry the assertion for in milliseconds.setUseInnerText(boolean useInnerText) Whether to useelement.innerTextinstead ofelement.textContentwhen retrieving DOM node text.
-
Field Details
-
ignoreCase
Whether to perform case-insensitive match.ignoreCaseoption takes precedence over the corresponding regular expression flag if specified. -
timeout
Time to retry the assertion for in milliseconds. Defaults to5000. -
useInnerText
Whether to useelement.innerTextinstead ofelement.textContentwhen retrieving DOM node text.
-
-
Constructor Details
-
HasTextOptions
public HasTextOptions()
-
-
Method Details
-
setIgnoreCase
Whether to perform case-insensitive match.ignoreCaseoption takes precedence over the corresponding regular expression flag if specified. -
setTimeout
Time to retry the assertion for in milliseconds. Defaults to5000. -
setUseInnerText
Whether to useelement.innerTextinstead ofelement.textContentwhen retrieving DOM node text.
-