18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Read Menu items in EXTJS application

chandu4244chandu4244 Members
edited September 2013 in Sahi - Open Source
Hi,
Good Morning. I need small help to read the menu items.
My application was developed in EXTJS. Now i am trying to select the menu items.
here is the script:

click(_link("criteria-search-btn")); //menu
_click(_span("Aircraft[1]")); //Menu Item
_click(_div("x-trigger-index-0 x-form-trigger x-form-arrow-trigger x-form-trigger-last x-unselectable x-form-trigger-over x-form-arrow-trigger-over")); //dropdown boxes
_click(_listItem("Adam"));
_click(_div("x-trigger-index-0 x-form-trigger x-form-arrow-trigger x-form-trigger-last x-unselectable x-form-trigger-over x-form-arrow-trigger-over"));
_click(_div("A700"));

Sahi is failing at second step. I dont know how to verify this? so please let me know. how to click on the Menu item and how to select dropdownlist
Thanks,
Chandu

Answers

  • Hi,
    the following code may help you to select a item from the drop down in ExtJs applications

    _setStrictVisibilityCheck(true);
    _click(_image("/x-form-trigger x-form-arrow-/",_near(_label("State"))));
    _click(_div("AndhraPradesh"),_in("/x-layer x-combo-list /"));
    _setStrictVisibilityCheck(true);

    "/x-form-trigger x-form-arrow-/" ---> Class Name of the drop down image(V shaped image)

    "/ <>/" is to represent in identifiers in Regular Expressions

    State=label name of drop down

    AndhraPradesh=drop down item

    "/x-layer x-combo-list/"=class name of drop down item

    Regards,
    Venkatesh@highradius




Sign In or Register to comment.