A
Size: a a a
A
A
A
A
VB
VB
//*[text()[contains(.,'Закрыть')]]//parent::button
VB
BO
BO
BO
/**
* Find element that has given text (the whole text, not a substring).
*
* This method ignores difference between space, \n, \r, \t and
* This method ignores multiple spaces.
*
* @param elementText Text that searched element should have
* @return standard selenium By criteria
*/
public static By byText(String elementText) {
BO
VB
VB
BO
E
VB
E
E
AV
E