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

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -