mhartman_1
15 years agoNew Contributor
Help with javascript menus
NOTE: I tried emailing this to support a few times but each time received an error message, so I'm posting it here also.
I'm using vbscript to test a web based app written in dot net. I am having troubles handling the menus in my product and need some help.
The menu for the product is presented in a tabbed fashion and does not use standard html links. Rather, it uses a dojo class of javascript. When I use the object properties window to explore the menu tabs it shows me that the menu is created as a set of nested panels.
For example, one of the menu tabs I would like to access is the Organization tab.
Here is its FullName:
Sys.Process("iexplore", 2).Page("http://localhost/CAS/enu/Index.aspx").Form("indexForm").Panel("layout").Table("MagicTable").Cell(0, 0).Panel("content").Panel(0).Panel(1).Panel(0).Panel("MainTabsContainer_MainTabs").Panel("MainTabsContainer_Directory_Tab").Panel(0).Panel(0)
innerHTML:
<DIV class="dijitReset dijitInline veraTabNode" dojoAttachPoint="centerNode">
<DIV class=hidden dojoAttachPoint="arrowNode"></DIV>
<TABLE cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD>Organization</TD></TR></TBODY></TABLE></DIV>
The innerText of the object looks promising to search for because it is just Organization, but when I created a function to click on the menu item the TestComplete log tells me the object was clicked on, but it never actually is.
I'm using vbscript to test a web based app written in dot net. I am having troubles handling the menus in my product and need some help.
The menu for the product is presented in a tabbed fashion and does not use standard html links. Rather, it uses a dojo class of javascript. When I use the object properties window to explore the menu tabs it shows me that the menu is created as a set of nested panels.
For example, one of the menu tabs I would like to access is the Organization tab.
Here is its FullName:
Sys.Process("iexplore", 2).Page("http://localhost/CAS/enu/Index.aspx").Form("indexForm").Panel("layout").Table("MagicTable").Cell(0, 0).Panel("content").Panel(0).Panel(1).Panel(0).Panel("MainTabsContainer_MainTabs").Panel("MainTabsContainer_Directory_Tab").Panel(0).Panel(0)
innerHTML:
<DIV class="dijitReset dijitInline veraTabNode" dojoAttachPoint="centerNode">
<DIV class=hidden dojoAttachPoint="arrowNode"></DIV>
<TABLE cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD>Organization</TD></TR></TBODY></TABLE></DIV>
The innerText of the object looks promising to search for because it is just Organization, but when I created a function to click on the menu item the TestComplete log tells me the object was clicked on, but it never actually is.