Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
20
addition of subitem of menubar
posted

In my application i want to click Requirements Analysis Tool and click Export Requirements and then to click Export as APPLICATION requirements:A

I have written the below code

startApp ("WINWORD");

 

requirementsAnalysisToolmenu().click();

 

 

requirementsAnalysisToolmenu().click(atText("Export Requirements")); 

 

 

 

requirementsAnalysisToolmenu().click(atList(new Subitem[]{atPath("Export Requirements"),atName("Export as APPLICATION requirements:A")}));

it goes and clicks only Export requirements and then fails stating that sub item not found

 

 

Parents
No Data
Reply
  • 6729
    Suggested Answer
    Offline posted

    Hi,

    Assuming that "Export Requirments" and "Export as Application requirements:A" are the visible text of the toolbar tools then you simply can use:

    requirementsAnalysisToolmenu().click(AtPath("Export Requirements->Export Requirements->Export as APPLICATION requirements:A"))

    That should work for your case.

    Regards,

    Ammar

Children
No Data