Have used the split n to add the text to the new line but is not adding can i get a solution

0 votes
public static void inputvalue(WebDriver driver,Map<String, String> formEntryMap,String colKey)

{

if(formEntryMap.containsKey(colKey))

{

String [] input= formEntryMap.get(colKey).trim().split("\n");

for(String inputItem:input)

{

String xPath = xpath of the input field

inputEntry(driver, xPath,inputItem);

}

}

}

There are 2 values in the feature file : 121414  52323434 but these values are getting added in the text box without adding the values in the new line i.e first value should be 121414 and second value should come below the first value.

Can i get a solution pls
Jul 6, 2021 in Java by sandy

edited 5 days ago 8 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP