How to separate 70 from 70 (100%) where 70 and (100%) are linked by <br>
tag in selenium?
Here's the structure:
<a href="/report/campaigns/698/sent" class=""> 70<br> (100%)</a>
Code that I am using is :
String[] REP=new String[1];
String Repor= driver.findElement(By.xpath("//html[1]/body[1]/section[1]/div[1]/div[1]/div[2]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[1]/div[5]/table[1]/tbody[1]/tr[1]/td[6]")).getText();
REP=Repor.split("");
System.out.println("REP "+REP[0]);
Output that i am getting is : 7