Mailingliste - Einträge 2012
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [QF-Test] Selected State of EXTJS Tree Node with Checkbox
Hello Jim,in fact, the current implementation of the internal Extjs-Resolver (1.2.0) redirects events to the tree node so that the checkbox is not resolved (even for check recording). To overcome the problem you can use an 'SUT script' like
def checkSelected(node): cbs = node.getElementsByClassName("INPUT:CHECKBOX") checked = cbs.getAttribute("checked") rc.check(checked == "true" or checked == "1", "Checkbox selected") node = rc.getComponent("myTreeNode") checkSelected(node)Alternatively, you can record the tree node component with all children (i.e. including the INPUT element) using 'Record / Record components' and insert a corresponding 'Check boolean: selected' node by hand.
Best regards, Robert--On Freitag, April 20, 2012 08:28:16 -0500 Jim Zhang <zhangminhua@?.com> wrote:
I was trying to record checks of the selected state of a "extjs tree node with checkbox" but I do not see an option for "selected state" as I get with a regular checkbox component. It seems qf only finds the wrapper of the checkbox but not the checkbox itself. Is there way to work around it? A sample extjs tree node can be found here. http://crepitus.com/misc/ext/tree.html Thanks a lot. Jim Zhang
-- QFS Support - Robert Lahmer Quality First Software GmbH http://www.qfs.de Tulpenstr. 41 Tel: +49 8171 38648-20 DE-82538 Geretsried Fax: +49 8171 38648-16 GF: Gregor Schmid, Karlheinz Kellerer HRB München 140833