public void GetSelectedElement() { HtmlObjects.OtherObjectPage htmlOtherobject = new HtmlObjects.OtherObjectPage(); htmlOtherobject.OpenHtmlPage("MainPage.html"); string selected = htmlOtherobject.listboxObj.GetSelectedElement(); Assert.AreEqual(selected, "apple", "The otherobject GetSelectedElement() was value is wrong: " + selected + " expected: " + "apple"); }
public void Click() { HtmlObjects.OtherObjectPage htmlOtherobject = new HtmlObjects.OtherObjectPage(); htmlOtherobject.OpenHtmlPage("MainPage.html"); htmlOtherobject.buttonObj.Click(); string displaytext = htmlOtherobject.buttonDemoText.GetAttribute("innerHTML"); Assert.AreEqual(displaytext, "Hello World", "The otherobject Click() did not return the correct text: " + displaytext + " expected: " + "Hellow World"); }