Quality Testing

Quality is delighting customers

Can you  help to fix one selenium issue 
My requirement is to add an item from search , i need to handle already added item from the search list ,
i have used data provider 
if already added then shows a javascript alert
i need to pass second search value 
how can i handle that
any sample code for that
@DataProvider(name = "Searchkeys")

public static Object[][] credentials() {

// The number of times data is repeated, test will be executed the same no. of times

// Here it will execute two times

return new Object[][] { { "search", "blade" }, { "search", "azure" }};

}
it takes first search value blade , how to take next one 

Views: 82

Reply to This

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2019   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service