Hi All!
I have some problems with javascript and dojo.
Here is the script:
lastShownGroup=""
function showGroup(groupId) {
if (lastShownGroup!="") {
dojo.html.hide(dojo.byId(lastShownGroup));
//var lastShownMenuNode = dojo.byId("menu_" +
lastShownGroup);
//dojo.html.setStyleAttributes(lastShownMenuNode,
"font-weight: bold; color: Red;");
}
dojo.html.show(dojo.byId(groupId));
//var menuNodeToShow = dojo.byId("menu_" + groupId);
//dojo.html.setStyleAttributes(menuNodeToShow, "font-weight: bold;
color: Green");
lastShownGroup = groupId;
}
I have got links on left side of my site and when I click on each the page in
the center show what is connected to the link.
After click on:
<dt id="menu_kbGroup_all">
<a href="javascript:showGroup('kbGroup_all');">All
articles<small>(454)</small></a>
</dt>
by clickElement or clickLink there is no result( there is no change on site ).
<clickElement
description="Click on Group Link"
xpath="//dt[2][contains(@id,'menu_kbGroup')]/a[contains(@href,'showGroup')]"
/>
Here is the result
"*Click on Group number 2*"
taskName "*clickElement*"
xpath
"*//dt[2][contains(@id,'menu_kbGroup')]/a[contains(@href,'showGroup')]*"
47 Passed
The page is not shown.
Thanks for all suggestion.
Marek
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest