We are currently testing an application that utilizes frames and does not adhere to standards (Image 1-3).
https://i.sstatic.net/M46DG.png
https://i.sstatic.net/v6txq.png
https://i.sstatic.net/l3NP8.png
Issue: I am trying to trigger an onClick()
event within the page because TruClient executes the click()
event, but the onClick()
event does not get triggered. We have resorted to using a "Navigate" step as a workaround for one case, but this approach cannot be applied to other steps.
The code snippet of interest in IE 11 is:
<html>
<head>
<title>Revenue Management System</title>
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
</head>
<frameset rows="43,*" cols="*" frameborder="NO" border="0" framespacing="0">
<frame src="html/top_pannel.htm" name="top" scrolling="NO" noresize >
<frameset cols="153,*" frameborder="auto" border="0" framespacing="0">
<frame src="html/LP_index.htm" name="menu" scrolling="auto" noresize >
<frame src="html/main.htm" name="maindata">
</frameset>
</frameset>
<noframes><body>
</body></noframes>
</html>
While analyzing with Developer tools, we can observe (Picture 4, unable to copy & paste from Internet Exploder Dev Tools.)
https://i.sstatic.net/PoOiw.png
Additionally, attempting to use JavaScript to access the main window, dive into the frames, and utilize getObjectByID()
on the unresponsive links has proven unsuccessful. Even after trying "Evaluate JavaScript on Object", no progress was made.
I am considering utilizing a technique mentioned here -->FrameBreaker to bypass the issue. However, this method does not allow me to access the main window as confirmed by:
var x = window.frameElement;
window.alert(x);
The alert returns "null", indicating it is at a top-level frame level.
I have experimented with jQuery (
window.alert($("#slideMenu_0").text());
failed evaluation in "run step" mode), and
var x = document.getElementsByTagName("a");
window.alert(x);
failed to return any information, just like
var element = document.getElementById('slideMenu_0');
and
var x = document.getElementsByClassName("clA0");
It is important to note that I do not have Admin permissions on the machine, although LoadRunner operates with elevated privileges.
Any guidance would be greatly appreciated. There are currently 4 items that require immediate attention in this regard, and unfortunately, I am the only one available to address them at the moment. ;-)
Please notify if images did not load - due to firewall restrictions imposed by paranoid individuals