i am using java to write Appium test script & now i want to compare two emails, but before comparison i have to fetch the email id from a text by splitting the string. Ex: i have text like this in my application "your account email associated with pankaj@gmail.com" so i want split & capture this email id only from this text & compare it with other email id which is showing in a text box. how can i do this ?? Currently i am doing it like this:
WebElement email_id= driver.findElement(By.xpath("//UIAApplication[1]/UIAWindow[1]/UIATextField[1]"));
String edit_email=email_id.getText();
System.out.println(edit_email);
But getting the Full text.How can i split it.