public void ShareOnCreateCourse() { selenium.WaitForPageToLoad("40000"); selenium.Click("link=Create New"); selenium.WaitForPageToLoad("40000"); selenium.Type("id=Name", "Test"); selenium.WaitForPageToLoad("40000"); selenium.MouseDown("/html/body/div/div[2]/form/fieldset/div[3]/div[2]/p[2]"); selenium.MouseUp("/html/body/div/div[2]/form/fieldset/div[3]/div[2]/p[2]"); // selenium.Click("css=p.AddAll"); // selenium.WaitForPageToLoad("40000"); selenium.Click("css=input[value=\"Create\"]"); selenium.WaitForPageToLoad("40000"); bool isPresent = selenium.IsElementPresent("//table[@id='myCourses']//tr//td[contains(.,'Test')]"); Assert.IsTrue(isPresent); }
public void MouseUp(string locator) { selenium.MouseUp(locator); }