I use appium method:
assertEquals("Bestätigungscode erhalten",driver.findElementByAccessibilityId("Bestätigungscode erhalten").getText());
It report error as below:
org.junit.ComparisonFailure: expected:<Best[ä]tigungscode erhalten> but was:<Best[ä]tigungscode erhalten>at org.junit.Assert.assertEquals(Assert.java:115)at org.junit.Assert.as
I try to use appium inspector to get name,and it’s equal to String by using getText();
But when I use name got by inspector and findElementByAccessibilityId(name), it will report can not find element error.
it that iOS bug or getText() method in iOS will make superscript different from original text.
How can I fix this problem?
appium 1.5.3
iOS 9.3
iPhone 5