These two lines are working independently. If I commented one and run it works. But it is not working together.
line1:driver.findElement(By.id("MemberNo")).sendKeys("1");
line2:driver.findElement(By.xpath("//*[@id=\"VoucherNo\"]")).sendKeys("20201001");
Getting no Exception. UI Scenario:
Advise and suggestions as I am new to selenium java.
Things you can try:
driver.findElement(By.xpath("//*[@id='VoucherNo']")).sendKeys("20201001");Since both of the lines are performing action on different UI elements and as they are working independently, I don't see a possible scenario of why they wont work combinely.