BDD with PageObject

Search by keyword

Type element = driver.find_element :name => "q" to locate the element of search field;

alt text

Then use element.send_keys "Cheese!" to send keyword "Cheese!" to search field;

alt text

We can start searching using element.submit.

alt text