- GXT does not appear to let you set a constant on the checkbox, such that can you tie it back to an enumerated list easily.  This meant I had to navigate to the text of interest (localized display value of the enum) and then proceed back in the DOM to get the input field such as the following:
 MENU_LOCATOR + //td[.='" + display_str + "']/../td/input[contains(@class,'x-view-item-checkbox')] 
- For closing the menu, the best approach I found was to use the "Escape" key on the menu itself:
 selenium.keyDown(PICKER_LOCATOR, "\u0027"); selenium.keyPress(PICKER_LOCATOR, "\u0027"); selenium.keyUp(PICKER_LOCATOR, "\u0027"); 
- Setting the value of the checkbox turned out to be more than simply using click(). In order for the click to be registered with the underlying GXT models I also needed to emit aDOMActivateevent on the checkbox:
 selenium.check(getCheckboxLocator(str)); selenium.fireEvent(getCheckboxLocator(str),"DOMActivate"); 
Version Info
GXT: 2.1.0
GWT: 2.0.0
 
 


 
 Posts
Posts
 
 
No comments:
Post a Comment