I am testing a website with HttpUnit.
I have some links within a frame and v r using Javascript for tthe link click.
the html code is
input value="shortcut_2" name="link_id_for_shortcut_proposals" type="hidden"><a id="shortcut_2" name="shortcut_link_proposals" class="ShortcutLink" onmouseout="doMouseOut(this)" onmouseover="doMouseOver(this);" onclick="goMenuShortcut('proposals');return false;" href="#">
and Junit code is
response = conversation.getFrameContents(lst[2]);
WebLink w2[] = response.getLinks();
System.out.println(" no. of hyperlinks =" + w2.length);
response = w2[13].click();
System.out.println("The link we clicked is : " + response.getURL());
this returns me the current page instead of next page .
I saw a link that WebWindow can b used in this context.But I am not able to progress any further.
Is there any solution.
Thank u .
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am testing a website with HttpUnit.
I have some links within a frame and v r using Javascript for tthe link click.
the html code is
input value="shortcut_2" name="link_id_for_shortcut_proposals" type="hidden"><a id="shortcut_2" name="shortcut_link_proposals" class="ShortcutLink" onmouseout="doMouseOut(this)" onmouseover="doMouseOver(this);" onclick="goMenuShortcut('proposals');return false;" href="#">
and Junit code is
response = conversation.getFrameContents(lst[2]);
WebLink w2[] = response.getLinks();
System.out.println(" no. of hyperlinks =" + w2.length);
response = w2[13].click();
System.out.println("The link we clicked is : " + response.getURL());
this returns me the current page instead of next page .
I saw a link that WebWindow can b used in this context.But I am not able to progress any further.
Is there any solution.
Thank u .