title: New robot framework function that uses webdriver
body: <p>I have many tests and own functions in RF but till now I didn't need functions that uses <code>webdriver</code> cause all my functions only return value.</p>
  
  <p>Now I need to make a function that paste some text in one not write it.
  How can I implement it into my tests ?</p>
  
  <p>I mean I do not know how to connect that function with <code>webdriver</code> that RF creates.</p>
  
  <p><strong>My own lib:</strong>
  `</p>
  
  <pre><code># -*- coding: utf-8 -*-
  import random
  import os
  from robot.errors import ExecutionFailed
  from robot.libraries.BuiltIn import logger
  from datetime import datetime
  from selenium.webdriver.common.keys import Keys
  
  def get_ID_from_URL(url):
      x = url.split('names/')[-1]
      x = x.split('/')
      return x[0]
  
  def random_number():
      random_num = random.randint(100000, 9000000)  # random integer in range
      return random_num
  
  
  def return_list(input_text):
      x = input_text.split(';')
      return x
  
  .
  .
  .
  
  def paste(locator, text):
      os.system("echo %s| clip" % text.strip())
      element = driver.find_element_by_xpath(locator)
      element.send_keys(Keys.CONTROL, 'v')
  </code></pre>
  
  <p>I need help with that paste function. </p>
  
  <p>Thanks</p>