title: Selenium Fill in all input fields at once Java
body: <p>I wanted to fill in all the Text fields at the same time using selenium. How would i got about doing this in java? With this code when i execute the code, each Text field gets filled in one by one which is pretty slow</p>
  
  <pre><code>JavascriptExecutor js = (JavascriptExecutor) driver;
  
  WebElement fullname = driver.findElement(By.id("order_billing_name"));
  js.executeScript("arguments[0].value='Test Name';", fullname);
  WebElement email = driver.findElement(By.id("order_email"));
  js.executeScript("arguments[0].value='test123@gmail.com';", email);
  WebElement tel = driver.findElement(By.id("order_tel"));
  js.executeScript("arguments[0].value='12345678901';", tel);
  WebElement address = driver.findElement(By.id("bo"));
  js.executeScript("arguments[0].value='123 Main Street';", address);
  WebElement city = driver.findElement(By.id("order_billing_city"));
  js.executeScript("arguments[0].value='London';", city);
  WebElement postcode = driver.findElement(By.id("order_billing_zip"));
  js.executeScript("arguments[0].value='LE1 123';", postcode);
  WebElement number = driver.findElement(By.id("cnb"));
  js.executeScript("arguments[0].value='1234567890123456';", number);
  WebElement cvv = driver.findElement(By.id("vval"));
  js.executeScript("arguments[0].value='123';", cvv);
  </code></pre>