Question

I have following html code :

<html>
    <iframe title='xyz'>

    <html>

        <body id='123'>
            <p><\p>
        </body>

    </html>

    </iframe>
</html>

I want to set value "test" in the p tag. Please let me know How can I do this?

Was it helpful?

Solution

WatiN doesn't have a setters like you are looking for. You can do it via javascript. See my answere at this link on how I did it for a bold tag; it isn't the cleanest but it works. Same idea would apply to a p tag.

How do I set a value for an element?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top