I have two form in same page like below
<form method="get">
<input type="submit">
</form>
<form method="post">
<input type="submit">
</form>
I am able to get last input field like
//input[last()]
I need to track the input field if it's a post method form input.