public void Setup() { Initialize(); Driver.Navigate().GoToUrl("http://google.com"); _googleSearchPage = new GoogleSearchPage(Driver); _word = GoogleSearchFactory.Create(); }
private void Form1_Load(object sender, EventArgs e) { //GoogleSearchFactory.CreateGoogleDesktopSearch(); //ResultTypes Doris; IGoogleSearch MySearch = GoogleSearchFactory.CreateGoogleDesktopSearch(); IGoogleSearchResult MyResult; MyResult = MySearch.Search("Peter"); String path = "C:\\Documents and Settings\\dromischer\\desktop\\GDStest.txt"; StreamWriter sw = File.CreateText(path); sw.Write(MyResult.QueryResult); //dataSet1. = (System.Data.DataSet) MyResult.QueryResult; //MyRichTextBox.Text = MyResult.QueryResult.ToString(); //MyRichTextBox.Lines[0] = "Doris DOris"; }
public void SeleniumSearch() { //Act _action = GoogleSearchFactory.Create(); _googlePage.ActionsForm(_action); //Assert var actualTitle = Driver.Title; Assert.AreEqual("SeleniumHQ Browser Automation", actualTitle); }