public void WhenIEnterIntoSearchBar(string ItemToSearch) { googleHomePage.GetSearchField().Clear(); googleHomePage.GetSearchField().SendKeys(ItemToSearch); logger.Debug("Sent the text '{0}' to the element", ItemToSearch); //Search item stored globally to test Globals mechanism. globals.AddToList(SearchItems.ToString(), ItemToSearch); }