[英]Hindi text verify which is inside button + selenium
这应该工作
String hindiString = new String("अग्रसर रहें");
Boolean textIsEqual = hindiString.contentEquals(textFromSeleniumWebElement); // this should verify.
//You may also verify the same by checking the byteArray content of both the elements
byte[] hindiBytes = hindiString.getBytes(StandardCharsets.UTF_8);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.