Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Selenium and MenuItems clicking

    Hi,
    I'm trying to test my app with Selenium RC. All works OK (grids, forms, buttons, ...). But I'm not able to locate MenuItems with SCLocators.

    I'm using latest 4.1p version of SmartGwt.

    I have this code:
    Code:
                    IMenuButton menuButton = new IMenuButton("Title");
    		menuButton.setID("MyMenuButton");
    		menuButton.setIcon("icon.png");
    
                    Menu menu = new Menu();
    		menu.setID("MyMenu"); 
    		menu.setShowIcons(false);
    
                    menu.addItem(new MenuItem("item1"));
    		menu.addItem(new MenuItem("item2"));
    
                    menuButton.setMenu(menu);
    I'm able to handle click on IMenuButton. But I'm not able to locate menuitems. What is the format for SCLocators of menu items "item1" and "item2".

    Thanks.

    Pavel
Working...
X