Package org.openqa.selenium.support.ui
Class Quotes
java.lang.Object
org.openqa.selenium.support.ui.Quotes
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Quotes
public Quotes()
-
-
Method Details
-
escape
Convert strings with both quotes and ticks into a valid xpath componentFor example,
foowill be converted to"foo",f"oowill be converted to'f"oo',foo'"barwill be converted toconcat("foo'", '"', "bar")- Parameters:
toEscape- a text to escape quotes in, e.g."f'oo"- Returns:
- the same text with escaped quoted, e.g.
"\"f'oo\""
-