selenium - How to convert a sample vb script code to java code -
i want convert below vb script code java in should check var2
should present in var1
var1=test123 var2=test if instring (ucase(var1),ucase(var2)) <> 0 print "pass" end if
this should qualify solution
string var1 = "test123"; string var2 = "test"; if(var1.touppercase().contains(var2.touppercase())){ system.out.println("pass"); }
Comments
Post a Comment