我试图通过XPath定位此页面的Web元素,但我不知道如何。我是第一次使用硒。
<h2>Newsletter</h2>
<form action="" method="post" name="subscribe"><label for="name">Name: </label>
<input class="name" id="name" type="text" placeholder="Enter name..." />
<label for="email">Email: </label> <input class="email" id="email" type="text" placeholder="your@email.com" />
<input class="btn btn-large" type="submit" value="Subscribe" />
</form>
<a title="first link" href="#link1">First Link</a>
<a title="second link" href="#link2">Second Link</a>
</div>