Selenium Java - TestNG Integration
What will be the output when the following test runs?
@DataProvider(name = "words")
public Object[][] data() {
return new Object[][] { {"apple"}, {"banana"} };
}
@Test(dataProvider = "words")
public void printWord(String word) {
System.out.println(word.length());
}