Hi,
I am Loattesting for a web application where initially the page menu gets loaded. After the page is loaded, the javascripts will be triggered which will enable or disable few menu links, based on users profile. How to perform the check operation with delay.
In detail, the page is loaded with following menu.
After users logged in, the javascript will disable the menu like this.
Now i need to test whether the user is eligible to click the menu “leave.jsp”
I am using following code snippet, which is always returning 1, irrespective of whether the user is eligible or not.
check(css(“a[id=leaveMenuLink]”, “href”).count.saveAs(“isLeaveAllowed”))