title: I don't want to write driver.findelement(By.xpath("")) again and again
body: <p>Hi this is the code below: What I want to do is this build a function in which i just pass the value of XPath, so i don't have to write <code>driver.findElement(By.xpath(""))</code> again and again.</p>
  
  <pre><code>driver.findElement(By.xpath("//*[@id='lead_source']")).sendKeys("Existing Customer");
  driver.findElement(By.xpath("//*[@id='date_closed']")).sendKeys("08/07/2013");
  driver.findElement(By.xpath("//*[@id='sales_stage']")).sendKeys("Opportuntiy Qualification");
  driver.findElement(By.xpath("//*[@id='opportunity_monthly_volume']")).sendKeys("10895");
  driver.findElement(By.xpath("//*[@id='probability']")).sendKeys("90");
  driver.findElement(By.xpath("//*[@id='opportunity_sales_rep']")).sendKeys("Sales Rep");
  driver.findElement(By.xpath("//*[@id='opportunity_sales_regions']")).sendKeys("Northeast");
  driver.findElement(By.xpath("//*[@id='opportunity_current_lab']")).sendKeys("Current lab");
  driver.findElement(By.cssSelector(Payermixcss +"opportunity_medicare")).sendKeys("5");
  </code></pre>