I have a text field to input voucher code, and I already tried this;
driver.findElement(By.id("voucher_code")).sendKeys("AL982", "OK992", "PO982", "SX982", "LQ925");
In the text field it become like this:
AL982OK992PO982SX982LQ925
What I want is to be like this:
AL982
OK992
PO982
SX982
LQ925
Because the system read, 1 row = 1 voucher code.
How do I use sendKeys to input multiple value in different rows?
And is it possible to shorten my code for multiple random value like above?, (in real case we have 1000 voucher code)