In the web app I am testing against I've got the element:
<form name="aspnetForm" id="aspnetForm" onsubmit="javascript:return WebForm_OnSubmit();" action="default.aspx" method="post" sizcache="10" sizset="0">
The following code:
Element element1 = Find.ById("aspnetForm");
Element element2 = Find.ByXPath("//form[@id='aspnetForm']");
Element element3 = Find.ByXPath("//form[@name='aspnetForm']");
returns element1 as correct found element, wheras element2 and element3 are nulls. What is the reason for that?
IE8, WinXP.
<form name="aspnetForm" id="aspnetForm" onsubmit="javascript:return WebForm_OnSubmit();" action="default.aspx" method="post" sizcache="10" sizset="0">
The following code:
Element element1 = Find.ById("aspnetForm");
Element element2 = Find.ByXPath("//form[@id='aspnetForm']");
Element element3 = Find.ByXPath("//form[@name='aspnetForm']");
returns element1 as correct found element, wheras element2 and element3 are nulls. What is the reason for that?
IE8, WinXP.