while(solo.searchText("Connecting with server", true)){
if(System.currentTimeMillis() < timeout){
if(solo.waitForText(text,1,CommonVariable.TIMEOUT_ONE_SECOND)){
break;
}
}else{
break;
}
}
while(solo.searchText("Connecting with server", true)){
if(System.currentTimeMillis() < timeout){
if(solo.waitForText(text,1,CommonVariable.TIMEOUT_ONE_SECOND)){
break;
}
}else{
break;
}
}