Selenium C# CssSelector using

时间:2016-12-23 09:32:32

标签: c# selenium selenium-webdriver selenium-chromedriver

I'm trying to get element inside other element, but this element is not child.

Example code:

<form action="/Contact/SendContactForm" id="TopContactForm" method="post">
    <div id="contactform" name="contactform">
        <div id="contactformcontainter" class="clearfix">
            <input id="SenderName" name="SenderName" type="text" value="">
        </div>
    </div>
</form>

How can i simply get SenderName inside TopContactForm? I'm asking because there is two contact forms with same input id's and name's.

0 个答案:

没有答案