Exemplo n.º 1
0
        public void CanCreateFromInMemoryHtmlTest()
        {
            const string Html = @"
            <html>
            <head />
            <body>
            <form name='Test'>
            <select name='Data'>
               <option>1</option>
            </select>
            </form>
            </body>
            </html>";

            using (var browser = new Browser())
            {
                var target = new MemoryHtmlPage(browser, Html);

                target.Find<HtmlForm>().Singular();
            }
        }
Exemplo n.º 2
0
        public void CanCreateFromInMemoryHtmlTest()
        {
            const string Html = @"
<html>
    <head />
    <body>
        <form name='Test'>
            <select name='Data'>
               <option>1</option>
            </select>
        </form>
    </body>
</html>";

            using (var browser = new Browser())
            {
                var target = new MemoryHtmlPage(browser, Html);

                target.Find <HtmlForm>().Singular();
            }
        }