Hi Amir, following code snippet shows how to automate google search for a keyword:
driver = Selenium::WebDriver.for :firefox
driver.navigate.to "https://www.google.com"
elem = driver.find_element(:name, 'q') #q is the namespace of searchbox element
elem.send_keys "Ruby Selenium Webdriver" #send_keys method used to write text
elem.submit
driver.quit