Frage

Using WatiN project, how can I modify the InnerHtml of a Para element? That property seems to be read-only for Para and many other elements.

War es hilfreich?

Lösung

when define browser as IE type then use this code

 Frame fram1 = browser.Frame(Find.ById("frame_id"));

 Frame frame = fram1.Frame(Find.By("frameBorder", "0"));

 frame.ElementWithTag("body", Find.Any).SetAttributeValue("innerText","your text");
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top