java - notnull checking in selenium -


string uid = selenium.gettable("bc."+i+"."+0);  system.out.println(uid);  int bcid = integer.parseint(uid);  if(uid != "' '"){         selenium.type("bcname", s.getcell(0, i).getcontents());       }else{       system.out.println("not edited");       } 

i need check 'uid' value notnull.but not working,i dnt knw problem.how can check not null value ,pls me

you can use following code check whether string empty

if(!uid.isempty()) 

Comments